Not replacing top search

This topic contains 5 replies, has 2 voices, and was last updated by

 
Keymaster
1 year, 4 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #27511

    Hello: the plugin is working here https://cpcbsa.org/search/ but it is not replacing the top navigation (default) search. Please advise.

    #27517

    Hi,

    Thank you very much for the details, it helps a lot.

    The search is integrated directly into the site header template, so it is not possible to automatically replace it. Since you shared FTP access, I logged in to check, and found that the header.php file in the theme directory contains the header search bar.
    I have made a programatical replacement for you. I strongly suggest creating a child theme, and copying the header.php file there, so future theme updates don’t revert the changes back.

    I also noticed that the positioning may require some changes to get the replaced container right. For that, I recommend using this custom CSS:

    .et_search_outer .asp_m {
        width: 50% !important;
        position: absolute;
        right: 80px;
        top: 32px;
    }
    
    .asp_r_2 {
        z-index: 99999 !important;
    }

    This will adjust the search position a bit, but further adjusments might be required.

    Best,
    Ernest Marcinko

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


    #27525

    Thank you so much! This is great!

    #27543
    You cannot access this content. Best,
    Ernest Marcinko

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


    #29205

    Hello: this is broken again. Can you make the change and tell me the code you placed in the header.php file so I can fix it next time? Thanks!

    #29216

    Hi,

    Sure, I made the replacement, and this is the changed header.php file.

    Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.