Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How can you display the search box only on certain pages

darbeeydarbeey New
edited March 2012 in Vanilla 2.0 - 2.8

Hi on the default template there is a search box on the top right. I have moved it to another location and i would only like it displayed on the homepage, the discussion topics and posts pages and not on any other pages like the register, activity and search pages. Is there any way i can do this. thanks :)

Tagged:

Best Answer

  • whu606whu606 MVP
    Answer ✓

    @darbeey

    You can set css rules for different page 'types'.

    So, to prevent the search box displaying on the profile pages, add

    .Profile .Search {display:none}

    to your theme's custom.css file.

    To remove it from both the profile and activity pages:

    .Activity .Search, .Profile .Search {display:none}

    and so on.

Answers

  • whu606whu606 MVP
    Answer ✓

    @darbeey

    You can set css rules for different page 'types'.

    So, to prevent the search box displaying on the profile pages, add

    .Profile .Search {display:none}

    to your theme's custom.css file.

    To remove it from both the profile and activity pages:

    .Activity .Search, .Profile .Search {display:none}

    and so on.

  • Cool thanks buddy, thats a great way of implementing css into the overall design, nice :D

Sign In or Register to comment.