WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] turn sidebar off on certain pages (7 posts)

  1. promitech
    Member
    Posted 1 year ago #

    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

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    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/

  3. promitech
    Member
    Posted 1 year ago #

    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

  4. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    a way to control the sidebar on a page by page level

    the theme seems to have a 'full-width-template'

  5. promitech
    Member
    Posted 1 year ago #

    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

  6. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    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')

  7. promitech
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic