-
AuthorPosts
-
March 13, 2019 at 10:02 am #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,
ArtemMarch 16, 2019 at 6:28 pm #1079469Hey 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,
MikeMarch 18, 2019 at 12:20 pm #1079850Hi 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:
March 19, 2019 at 2:13 am #1080166Hi,
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,
MikeMarch 19, 2019 at 11:29 am #1080301Hi 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,
ArtemMarch 19, 2019 at 1:48 pm #1080338Hi,
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,
MikeMarch 19, 2019 at 2:54 pm #1080349Thanks, 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.
March 20, 2019 at 6:47 am #1080666Hi,
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,
MikeMarch 21, 2019 at 12:15 pm #1081350Hi 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.
March 21, 2019 at 1:04 pm #1081361Hi,
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,
MikeMarch 21, 2019 at 1:25 pm #1081375Now worked like a charm ;)
Thanks a lot, Mike!!!
Have a great day!
Best regards,
ArtemMarch 22, 2019 at 3:41 am #1081702Hi,
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 -
AuthorPosts
- The topic ‘Font size changes with "no sidebar" layout’ is closed to new replies.