Jump to content


Photo
- - - - -

Search Results

widget logic search results

Best Answer Simon_P , 17 April 2013 - 04:08 PM

You can use is_search() There are a lot of template conditionals http://codex.wordpre...onditional_Tags Sent from my iPad using Tapatalk HD Go to the full post


  • Please log in to reply
5 replies to this topic

#1 suzyo

suzyo

    Super Member

  • Members
  • 105 posts
  • Country: Country Flag

Posted 17 April 2013 - 01:11 AM

I can't exclude a widget from search results using Widget Logic, because search results is not exactly a page with an ID, is this correct?

 

Or does it have an ID? 



#2 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 17 April 2013 - 01:32 AM

Hi Suzy,

 

I've not used widget logic before, so I'm not sure what it excepts but, if it's a text widget then that will have an li ID. Like

 

Please Login or Register to see this Hidden Content

 

Otherwise you can hide the widget on the search page using css and the class .search setting the widget to display:none


  • suzyo likes this

#3 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 17 April 2013 - 04:08 PM   Best Answer

You can use is_search() There are a lot of template conditionals

Please Login or Register to see this Hidden Content

Sent from my iPad using Tapatalk HD
  • suzyo likes this

#4 suzyo

suzyo

    Super Member

  • Members
  • 105 posts
  • Country: Country Flag

Posted 17 April 2013 - 04:27 PM

thanks, fellas!



#5 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 17 April 2013 - 04:44 PM

Do you need further assistance with this issue or can this topic be marked as resolved?



#6 suzyo

suzyo

    Super Member

  • Members
  • 105 posts
  • Country: Country Flag

Posted 17 April 2013 - 04:45 PM

all done, thank you!







Also tagged with one or more of these keywords: widget logic, search results