ThemeShaper Forums » Power Blog

Selectively remove widget areas - Crown Aside

(6 posts)
  1. I'd like to remove the Crown Aside widget area on specific pages. I was using the Widget Logic (http://freakytrigger.co.uk/wordpress-setup/) plugin but this only removes the content that would be added into the Crown Aside area. Is there a way to selectively remove, per Page, Category etc, the Crown Aside area and content via Functions.php?

    Posted 5 years ago #
  2. Anyone?

    Posted 5 years ago #
  3. If it's a few pages you could remove it with CSS, targeting one of the body classes.

    And, I haven't tried this, but you could probably use a custom field to selectively filter and add a new class to the body classes, like, .no-crown. Then edit the CSS to hide the crown aside on .no-crown pages.

    Posted 5 years ago #
  4. Thanks Ian - I thought there might be a way to do it like Chris' post here -http://www.wupperpiraten.de/2009/03/how-to-remove-the-sidebar-from-a-certain-page/

    I'll try with this CSS approach first, but if anyone has a more longterm/flexible solution, I'd love to hear it.

    Thanks again!

    Posted 5 years ago #
  5. Along the same lines of this post, I would like to remove the Crown Aside from every page except the page that will be for my Blog.

    Is there a way to do this in the functions.php

    Posted 5 years ago #
  6. FYI, I figured out a way to remove Crown Aside from all pages other than the Blog area of my site.

    body.page #crown {
    display: none;
    }

    For good measure I also used Widget Logic on the Crown Aside so that the hidden widget content wouldn't show in the source potentially hurting SEO.

    !is_page()

    Posted 5 years ago #

RSS feed for this topic

Reply

You must log in to post.