Margins on Posts for Mobile

edited July 2022 in Theme Options

Hello,

I have not technically made this blog live yet but will soon. Before I do, I need to make sure it looks good on mobile too: https://www.costellolawfirm.com/blog

The margins on the post are at 100px – I have tried to write CCS to change this and it works while am using the browser Developer Tools to test it, but it is not working when I publish the site and view it live on my mobile devices. (I did empty the cache but it still did not work)

Appreciate any advice you can give. Thanks so much!

Comments

  • Hi,

    Can you attach a screenshot showing it, please?

    I do not want to misunderstand you.


    Thanks

  • I think this will make it clearer/easier: https://www.loom.com/share/ee23c569fd5d4c1ba16c5552d0ff9b1e

    Thank you!

  • The padding is the same for all devices, so if you set it for desktop on mobile it will be the same.

    You need to create a copy of this section, and the one with the padding set should be visible for desktops and tablets, and the one without the padding for mobile.

    Thanks

  • I don't have Responsive Options in any of my dialog boxes.

    I also don't know how this would apply to the individual posts since this is a global setting. Post pages are created to fit in the template and aren't individually styled like my other pages content so I don't know how I have control over that without writing custom CSS.

  • Please, put the following CSS code in Betheme -> Theme options -> Custom CSS & JS -> CSS.

    @media only screen and (max-width: 767px){
       .wpb_wrapper .vc_custom_1657567125511{
          padding: 20px 0!important;
       }   
    }
    

    Thanks

  • That worked! I did have to add a Custom ID tag to the blog landing page for that to work but all is fixed now.

    Thanks so much for all of your help!

  • You are welcome.

    Please, let me know if I can help you with anything else.

    I also strongly recommend checking out BeBuilder. Already thousands of our customers moved from other builders in favor of Be one.


    Best regards

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.