turn sidebar off on certain pages
-
I am new to WP , I have been able to hack most of what I needed to get the look wanted. I have a calendar installed and on its pages I do not want the sidebar to show. I am looking for a way to control the sidebar on a page by page level. the site I am learning on is http://mackinacisland-mi.us/event/fort-mackinac-opens/ this page shows the sidebar out of normal location. I need either to turn it off on some pages or be able to fix it so it does not end up at the bottom. Any help would be appreciated.
Rick
-
I do not want the sidebar to show
Create a custom page template.
I am looking for a way to control the sidebar on a page by page level
Have a look at http://wordpress.org/extend/plugins/widget-logic/
I have installed the widget logic and see how it could work with the right tag. I have looked at the wp conditional tags, I tried this one has_tag( ‘event’ ) but it has the opposite affect, I need to exclude it from certain pages. My programming is limited but I am looking for a if not statement.
Thanks again
a way to control the sidebar on a page by page level
the theme seems to have a ‘full-width-template’
I am tiring to exclude the widget from less pages than I want to include it in. so I am looking if exists a exclude snip . I want to exclude the widget on any page that has a tag of event, so what I am asking is there an opposite of ” has_tag(‘event’) “
Thanks
exclude the widget on any page that has a tag of event,
as pages do not have tags, do you possibly mean ‘single post’ ?
if so:
the php logic negation is the exclamation mark:
!example:
!has_tag('event')thats what I am looking for but, your right the events do not have a tag thats the same on all events so that wont work either. I have to find something unique to the event pages. this is the page with the problem. http://mackinacisland-mi.us/event/calamity-jane-band/ or any event detail page generated by the plugin.
Can I exclude a plugins pages from showing a widget?
Thanks
The topic ‘turn sidebar off on certain pages’ is closed to new replies.