Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1459895

    On this mockup site:

    I have separate layout items for mobile and desktop in two places on the home page .On the desktop they look fine, but on the mobile there is a large gap above and below these sections. Question being how do I change that space specifically only on those two instances for those specific layout items? You can see the top section that says ‘Resources to Help Entrepreneurs Succeed’ looks good on desktop, huge gap on mobile. Same thing to some extent on the div holding the layer slider with the three animated thumbnails in it.

    Much appreciated.

    #1459917

    Hey tonyiatridis,

    Thank you for the inquiry.

    You can add this css code to adjust the margin above and below the column or section.

    @media only screen and (max-width: 768px) {
    
      /* Add your Mobile Styles here */
      #top .flex_column.av-lxxntb3b-96793073ee8d9b43abc1bef7251d9ab3 {
        margin-top: -100px !important;
        margin-bottom: -100px !important;
      }
    }
    

    Best regards,
    Ismael

    #1459928

    That worked like a charm, thanks.

    I’ll need to do this in other places as well, how do you determine the string of characters in this line?
    #top .flex_column.av-lxxntb3b-96793073ee8d9b43abc1bef7251d9ab3

    Not sure where to look

    #1459964

    Hi,

    You need to inspect the element in question using your brower, right click on the element and select Inspect. If you need further help with that, then please let us know.

    Best regards,
    Rikard

    #1460831

    I’m having trouble duplicating the process for other items, the code on inspect is very long and complex but upon finding the same string of characters in the same approx spot in the code yields no results. Can you show me how to target some other items, for instance on the mobile version of the home page the layer slider that makes the three large buttons come into the page has too much space above and below it, see url to example below:

    https://anthonyi28.sg-host.com/wp-content/uploads/2024/07/temp.jpg

    does this part change depending on the item? #top .flex_column.

    I tied it also on the desktop version with a single image graphic like the one you provided the code for but had no. luck there either.

    Thanks so much for your excellent help as always

    If there is another way to target individual items let me know that as well.

    #1460872

    Hi,

    Thank you for the update.

    If there is another way to target individual items let me know that as well.

    The theme automatically adds unique IDs (e.g., av-lxxntb3b-96793073ee8d9b43abc1bef7251d9ab3) to the elements, which can be used to adjust their styles or run scripts. Besides this, you can also add custom CSS class names or IDs to the elements by editing them and applying the values in the Advanced > Developer Settings toggle. Look for the Custom CSS Class Name or Custom ID Attribute fields. For more info, please check the links below:

    // https://kriesi.at/documentation/enfold/add-custom-css/#enable-custom-css-class-name-support

    Here’s how to inspect the elements:

    // https://kriesi.at/documentation/enfold/add-custom-css/#how-to-inspect-an-element-on-the-page

    Best regards,
    Ismael

    #1461081

    Having more trouble with this than I expected. Perhaps the way to go about this is with some css in the advanced > developer settings > custom css. Here I would just need css that calls back to that column. So If I wanted to lessen the space above and below the layer slider on the home page for the mobile version, see attached url below for visual, forgive me but could you give me an example of how to pull this off so I can do it elsewhere throughout the site with this method? I wrote some css for margin and padding and entire the css class into that custom css field, but it seemed to have no effect.

    https://anthonyi28.sg-host.com/wp-content/uploads/2024/07/temp-example-scaled.jpg

    Thanks so much

    #1461122

    Hi,
    Thank you for the link to your site, when I check on mobile the space doesn’t seen as much as in your screenshot:
    Enfold Support 6255
    But to make it less try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    @media only screen and (max-width: 767px) { 
    	#top.home .avia-builder-el-8 {
    		margin-bottom: 0px !important;
    	}
    	#top.home .avia-builder-el-11 {
    		margin-bottom: 0px !important;
    	}
    }

    After applying the css, please clear your browser cache and check.
    This is the expected results:
    Enfold Support 6257

    Best regards,
    Mike

    #1461242

    Thanks that did work nicely!. Oddly that extra space appeared on one phone we looked at and not another after all, but in both cases it looks fine now. So, great.

    I have a more general question though in terms of applying css with the advance developer options :

    I have this in that Custom CSS field under developer settings: remove-space

    and this css in general styling to move the div up:

    @media only screen and (max-width: 767px) {
    .remove-space{
    margin-top: -40px !important;
    }
    }

    which is working nicely on another place where the spacing needed a tweak. My only question is is there any issue when targeting only the mobile version in using a negative number for the top margin? If this is kosher which I think it is I can stop asking for help targeting things as we have been one at a time when I can’t figure out the right place win the code to target when the inspecting the element.

    Again thank you for your excellent support and patience as always.

    Tony

    #1461246

    Hi,
    Glad that this helped, your css rule remove-space should not cause any issues.

    Best regards,
    Mike

    #1461252

    Mike,

    Awesome! You guys are so helpful it’s amazing the tech support. whyI use no other theme anymore.

    Thanks

    #1461257

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Alter space above and below a specific layout item’ is closed to new replies.