Announcement

Collapse
No announcement yet.

How to reset text formatting in posts in Search Result module

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Official - Free How to reset text formatting in posts in Search Result module

    When displaying the first few characters in the posts in a Search Results module (e.g. Latest Topics module), the text formatting is applied. If you want to reset the formatting in the module, you would add this in css_additional or via Sitebuilder > Style > CSS Editor.
    Code:
    .search-widget .b-post-sm__post-content.post-content * {
        font: {vb:stylevar body_font} !important;
        color: {vb:stylevar body_text_color} !important;
    }
    NOTE:
    Adding stylevars in css_additional template had stopped working at some point up until now (as of this writing). So you have to hardcode the font and color values from the corresponding stylevars in the Style Variable Editor.

    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    #2
    glennrocksvb
    Founder/Coder
    glennrocksvb
    Thanks a lot working with small modification since Im running on 5.6.0 for search below modification since the body_font has been changed with global_text_font

    Code:
    .search-widget .b-post-sm__post-content.post-content * {
        font: {vb:stylevar global_text_font} !important;
        color: {vb:stylevar body_text_color} !important;
    }
    my website link is www.ienajah.com

    however I have an Issue with other areas "article channel display module" and "content slider module" and "Blog home module" , I do have customized font, its working everywhere with the font size I already put in the stylevar inside the adminCP exept in the above areas, please see below screenshots


    appreciate if you could customize the above CSS to to work in these three areas
    Attached Files

    Comment

    Latest Topics

    Collapse

    Working...
    X