Phone space text format
-
Hi Armin!
Thanks for always being so responsive on here. I have a question about phone spacing for text formats.
I'm trying to get consistent padding around paragraph style text boxes in my projects, but no matter how I adjust the Phone Space Top and Phone Space Bottom values, my text boxes appear the same on mobile - a bit of extra space on top, none on the bottom. Any idea how to remedy this across an entire text style?
(had trouble uploading screenshots - see all text boxes after the first one here on mobile for an example)
-
hey!
the "space bottom" settings for textformats are the space that is below a paragraph.
however, if a paragraph is the last one in the text element.
then it has no space bottom.otherwise you'd always have a extra space below a text.
customizing spacing can be done for example when u right click a text

or when u select a text and do the settings in the sidebar

so usually, if you only wanted to have different spacing for the texts in your phone layout,
i would say use a custom phone layout.
https://laytheme.com/documentation/custom-phone-layouts.htmlbut is probably easier to use custom css.
this for example would change all spacings below text elements in projects:
body.type-project .type-text{
margin-bottom: 100px!important;
}add this in:
lay options -> custom css & html -> custom css for mobile -

but the margin-left: 40px is applied
if you dont want the space for some texts,
right click the text elementclick set html class and id. for class enter:
nospace
then instead of the css u use now, use:
body.type-project .type-text:not(.nospace){ margin-left: 40px!important; } body.type-project .type-text:not(.nospace){ width: 285px!important; }
For paid 1-on-1 Lay Theme Coaching, contact Audrey (audrey@cyberslayers.work) or me (info@laytheme.com).
We also code custom websites or bespoke Lay features. Drop me a line at info@laytheme.com or check out my work at arminunruh.com.
Want to support my work? paypal.me/arminunruh
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it
