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

    Free Mod 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
    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

    Users Viewing This Page

    Collapse

    There is 1 user viewing this forum topic.

    • Guest Guest

    Latest Posts

    Collapse

    Working...
    X
    Searching...Please wait.
    An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

    Please push the back button and reload the previous window.'
    An unexpected error was returned: 'Your submission could not be processed because the token has expired.

    Please push the back button and reload the previous window.'
    An internal error has occurred and the module cannot be displayed.
    There are no results that meet this criteria.
    Search Result for "|||"