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.
Displaying New Discussion Button only on Certain Pages?
Nanosmo
New
Hello!
I'm starting a theme and would like that theme to only display the "New Discussion" button when in a category. Not while editing, posting, viewing front page and so forth. Any way to do this?
I'm fairly new to theming for Vanilla and tried to search but came up empty. Any help would greatly be appreciated.
Thanks!
Tagged:
0
Best Answer
-
Shadowdare MVP
Welcome to the community! Make sure you have a custom theme set up and ready be styled with a custom.css file. <http://vanillawiki.homebrewforums.net/index.php/Themes>
These are the CSS rules for having the "New Discussion" button only show up when viewing a category that you would put in custom.css in the order shown:
.BoxNewDiscussion { display: none; } body.Vanilla.Categories.Discussions .BoxNewDiscussion { display: block; }
Add Pages to Vanilla with the Basic Pages app
7
Answers
Welcome to the community! Make sure you have a custom theme set up and ready be styled with a custom.css file. <http://vanillawiki.homebrewforums.net/index.php/Themes>
These are the CSS rules for having the "New Discussion" button only show up when viewing a category that you would put in custom.css in the order shown:
Add Pages to Vanilla with the Basic Pages app