This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • in reply to: Search Results Relevancy Settings #51978
    KimberlyAllenKimberlyAllen
    Participant

    Hi Ernest,

    You are correct I did ask about prioritising results but thought I had removed them all. I will go back and check. Thanks for your help. Please feel free to close this ticket

    Kind regards

    in reply to: Prioritising Search Results #51927
    KimberlyAllenKimberlyAllen
    Participant

    This is great thank you Ernest, works perfectly

    in reply to: Hiding Search Bar #51708
    KimberlyAllenKimberlyAllen
    Participant

    not header.php or page.php

    in reply to: Hiding Search Bar #51707
    KimberlyAllenKimberlyAllen
    Participant

    and to confirm this is adding the code into functions.php

    in reply to: Hiding Search Bar #51705
    KimberlyAllenKimberlyAllen
    Participant

    is it possible to write a piece of code that tells the system to always display [wd_asp id=1] (header search) unless on page ID’s 13702 and 2428 then instead display [wd_asp id=3] and [wd_asp id=5] respectively?

    in reply to: Hiding Search Bar #51702
    KimberlyAllenKimberlyAllen
    Participant

    Thanks Ernest, can you think of reasons why both searches are being removed from page ID 2428 when using this code?

    in reply to: Hiding Search Bar #51700
    KimberlyAllenKimberlyAllen
    Participant

    That is correct, the search that sits within the header is ID 1, the search that sits on page ID 2428 is 5 and the search that sits on page ID 13702 is wd-asp id=5

    in reply to: Hiding Search Bar #51698
    KimberlyAllenKimberlyAllen
    Participant

    Hi Ernest,

    We have tried the above code but it doesn’t seem to remove any search boxes from any of the pages.

    Is it because on every page the first part of the if statement will always be true?

    I did try flipping the if statements as below but that again hides all search boxes on the 2 pages (13702 and 2428)

    if ( get_the_ID() == 13702 || get_the_ID() == 2428 ) {
    		return '';
    	}
    	if ( $id != 1 ) {
    		return $output;
    	}
    	
    	return $output;
    }, 10, 2 );
    in reply to: Hiding Search Bar #51696
    KimberlyAllenKimberlyAllen
    Participant

    Hi Ernest,

    I am so sorry for this query, before I start looking into plugins can you check one thing for me, is it possible for the main header search to stay visible through the site apart from pages 13702, and 2428?

    On these pages instead I need their individual searches as shown on the last screenshot?

    in reply to: Hiding Search Bar #51694
    KimberlyAllenKimberlyAllen
    Participant

    Thanks Ernest, I have tried this new code and nothing changes.

    I am just wondering if it would be easier to have header search appear everywhere on the site except from two pages that have other ajax searches on. Is this possible?

    So for example from the web link sent before the only pages I wouldn’t want the header menu search to be visible would be on the All courses and Video Help Guides pages.

    Can this be done?

    in reply to: Hiding Search Bar #51691
    KimberlyAllenKimberlyAllen
    Participant

    Hi Ernest,

    Thank you for the code. I have tested added this to functions.php and it seemed to work ok in terms of hiding the search box from all pages other than the home page. However, the side affect to this was that it also hid my other search boxes.

    Please see attached screenshot for one of my pages which has 2 search boxes. https://sla.thespencergroup.co.uk/video-tutorials/

    Would it be possible to tweak the code so the 2nd search box still remains active?

    Thanks

    in reply to: Hiding Search Bar #51685
    KimberlyAllenKimberlyAllen
    Participant

    Sorry to clarify my last message, is it possible for the widget to only show on the homepage?

    • This reply was modified 1 year, 7 months ago by KimberlyAllen.
Viewing 12 posts - 1 through 12 (of 12 total)