Ajax Search Pro not appearing & changing Font Style

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Ajax Search Pro not appearing & changing Font Style

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 7 years, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9878
    curtisgazza
    curtisgazza
    Participant

    Good Afternoon

    I have been attempting to solve an issue with the plugin to no avail. I have disabled plugins; this has not worked either.

    Unfortunately, the search bar simply does not appear. There are no error messages I have seen as of yet. I have inputted the search bar short-code within the widget header (Appearance > Widget > Header) , but does not appear:

    <p style=”text-align: right;”>TLS Home <span style=”color: #dc9018;”>| </span>TLS Events <span style=”color: #dc9018;”>| </span>FastLane <span style=”color: #dc9018;”>| </span>Labour <span style=”color: #dc9018;”>| </span>Specialist Labour <span style=”color: #dc9018;”>|</span></p>
    <p style=”text-align: right;”>The TLS Training Centre <span style=”color: #dc9018;”>| </span>About Us <span style=”color: #dc9018;”>| </span>Contact Us</p>
    <div style=”margin-left: auto; margin-right: auto; width: 80px;”>[wd_asp id=1]</div> <p style=”text-align: left;”>[social_icons_group id=”1178″]</p>

    Also, the plugin seems to interfere with the fonts. If you turn on the plugin and compare the fonts to when it was turned off, the font seems to become more bold. This is typically for the navigation/menu bar fonts and widget header fonts; an example for this is in the attachment. If you are able to revert it back to the original font that would be greatly appreciated.

    Email me at [email protected] if you have further questions.

    Best Regards,
    Curtis

    #9879
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    Thank you very much for the details, I was able to find the source of both issues.

    1. Invisible search – On the search Theme Options -> Overall box layout panel the search width was set to 1px, therefore it was there, but not visible at all: https://i.imgur.com/hTdthwF.png

    I have changed that back to the original 100%. The container element in which the search is placed in the header widget code is set to 80px, now the search respects that.

    2. The font problem is more interesting. The menu font width was set to bold, and the font family to “open sans”. By default this font was loaded, but not the “bold” version (at least I could not find it anywhere), only the simple one – so the browser kind of fixed that it’s own way I guess. Ajax search pro uses the same font, but loads it separately with different parameters, both normal and bold widths, so it kind of “changed” it. I’ve added the following code to the theme functions.php file to prevent the plugin font loader:

    add_filter('asp_custom_fonts', 'asp_dequeue_all_fonts', 1, 1);
    
    function asp_dequeue_all_fonts($args) {  
        return array();
    }

    I hope it’s working correctly now 🙂

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #9886
    curtisgazza
    curtisgazza
    Participant
    You cannot access this content.
    #9887
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Ajax Search Pro not appearing & changing Font Style’ is closed to new replies.