This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

How to exclude the “ad above content” widget area on certain pages

  • Creator
    Topic
  • #8054
    scooch
    Member

    Hi, is there a way to NOT show the “ad above content” on certain pages?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #8059
    Jason Bobich
    Keymaster

    Hello,

    So you’ve placed a widget into the default widget area location “Ads Above Content” but now you don’t want that widget displayed across your entire website. —

    There’s no direct feature for this. By design, the default widget area locations will show across the entire website, and allow you to swap in your custom widget areas into these locations for specific pages.

    http://dev.themeblvd.com/tutorial/widget-areas-for-the-end-user/

    However, since this is a collapsible widget area location we’re talking about, it’s default location can be left blank by not including any widget in it.

    So, the alternate approach to what you’re trying to do that would work is to create a custom widget area, and then assign it to the pages you want it displayed, leaving the default one blank.

    Now if it turns out this really doesn’t work for you, the only other thing I can think of is that you could just manually hide the widget area with Custom CSS on certain pages. WordPress gives us classes on the <body> tag that allow us to target specific pages. So, you could do something like this:

    .page-id-1 .main-top,
    .page-id-2 .main-top,
    .page-id-3 .main-top {
    	display: none;
    }

    ============

    For CSS changes, it’s a good idea to use a tool like firebug or Google Chrome’s built-in developer tools to locate them and then put the edits either in your child theme or in the “Custom CSS” option on your theme options page.

    Also, here’s a helpful tutorial on how to use Firebug – http://vimeo.com/20917974. The only thing I’d suggest not doing is actually making edits to the theme’s CSS files, as it shows at the end of that video. However, the video serves as a good introduction to Firebug and how it can be used to find what CSS is effecting certain areas of your site without ever digging around in any files.

    #8069
    scooch
    Member

    The custom widget area worked like a charm! Just what I was looking for.

    have a validation form in that area, and didn’t want it to show on the next page when they click through.

    thanks Jason!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The forum ‘Akita Responsive WordPress Theme’ is closed to new topics and replies.