Tagged: , ,

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

    Hi dear support,

    I’d like to switch some posts to layout without sidebar. But when I’m doing it, the font size of the body text becomes bigger.

    How can I get the same font size that is used for any other regular posts with sidebars?

    Regards,
    Artem

    #1079469

    Hey artemtik,
    Sorry for the late reply, I was not able to reproduce this on my install, were these advanced layout builder posts or Classic Editor posts? Was this for the paragraph font size? Can you link to an example post, we could write some css to force a certain size but we should take a look to see what could be causing this.

    Best regards,
    Mike

    #1079850

    Hi Mike,

    No worries reg. late reply ;)

    It’s Classic Editor posts. And yes – it’s for the paragraph font size.

    Sure, here is all the detailed information:

    #1080166

    Hi,
    Thank you for the login, I added this css to your WordPress > Customize > Additional CSS:

    #top.single.no_sidebar_border .container_wrap.fullsize p {
    font-size: 17px !important;
    }

    I found that added the css to your Enfold Theme Options > General Styling > Quick CSS field it didn’t seem to work correctly and I believe this is because you have this function in your Quick CSS field:

    add_filter('avia_masonry_entries_query','avia_masonry_entries_query_mod', 10, 2);
    function avia_masonry_entries_query_mod($query, $params)
    {
        if(is_singular('post')) {
            $query['post__not_in'] = array(avia_get_the_ID());
        }
        return $query;
    }

    This function will not work correctly there, it belongs in your functions.php file in Appearance > Editor
    For it to work you may wish to move it.
    Please clear your browser cache and check the font size issue.

    Best regards,
    Mike

    #1080301

    Hi Mike,

    First of all, a big THANK YOU for pointing me at my mistake with the “add_filter” code – I moved it into functions.php now, and after that moved your code from Additional CSS to Quick CSS and now it works fine there.

    Regarding the font size – your code changed the font size for all paragraph fonts, but is it possible to also change all the text that’s inside any shortcodes (like promoboxes, [su_row][/su_row], etc.)

    You can check this post to see what I mean (in private content)

    So I would like to make it looks absolutely the same as any other posts with sidebars.

    Regards,
    Artem

    #1080338

    Hi,
    It looks like your “su-row” font sizes are hardcoded in the shortcode at 20px, but this css seems to be working:

    #top.single.no_sidebar_border .container_wrap.fullsize .su-row div { font-size: 17px !important;}

    Please clear your browser cache and site cache and then check.

    Best regards,
    Mike

    #1080349

    Thanks, Mike! Latest code changed “su-row” fonts, but the text inside “promobox” and also the paragraph that sits right after “[av_hr class..” shortcode still have bigger font size.

    #1080666

    Hi,
    For the promo box, please try:

    #top.single.no_sidebar_border .container_wrap.fullsize .avia-promocontent p { 
    font-size: 17px !important;
    }

    Which paragraph that sits right after “[av_hr class..” ? Is that a heading? Please include the first line of text so I can search for it.

    Best regards,
    Mike

    #1081350

    Hi Mike,

    Thanks for the new code, but for some reason it didn’t work (checked after clearing the site’s and browser’s caches). You can check it from your side – the promobox is “Quick Navigation” section.

    #1081361

    Hi,
    Oh I see now, please try:

    #top.single.no_sidebar_border .entry-content > strong,#top.single.no_sidebar_border .entry-content  { 
    font-size: 17px !important;
    }
    
    

    Best regards,
    Mike

    #1081375

    Now worked like a charm ;)

    Thanks a lot, Mike!!!

    Have a great day!

    Best regards,
    Artem

    #1081702

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Font size changes with "no sidebar" layout’ is closed to new replies.