Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #23932

    Hi there,

    I’d like to remove the default side bar that appears when a search is performed that is related to posts, archive, catagory, tag etc.

    Thanks

    #121673

    Sorry, I’d like to replace the default sidebar widgets in the above with my own selection, is this possible?

    Thanks

    #121674

    Hi,

    you can use Widget logic: http://wordpress.org/plugins/widget-logic/ to show or hide widgets with conditionals. Eg the is_archive() conditional will be true on archive pages, the is_search() conditional will be true search pages. Afaik it’s not easily possible to show/hide widgets based on the user search because this would require some coding (eg a function which checks the user input and based on the search terms it displays certain widgets).

    #121675

    Thanks Dude, the widget looks great but my head hurts looking at all the WP code stuff, I’m not that hot on coding and I’m scared I might destroy everything! Looking at widget logic, if I just wanted to exclude widgets on the search page for posts what do you think I could try?

    Just to make sure I’m looking at the right search result page you can conduct a search using the Areas of Law drop down here – http://www.northeastbarristers.com/homepage

    Thanks in advance, and if i’m in Vienna any time soon I’ll get you a beer. :)

    #121676

    Hey!

    If you just want to change the widgets on the search page use:

    is_search()

    But again – you can’t restrict it to “posts” or “page” searches, etc.

    Best regards,

    Peter

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

The topic ‘REMOVE DEFAULT SIDEBAR IN ARCHIVE / CATAGORY OR TAG SEARCH’ is closed to new replies.