Forums

Page Template & Sidebar Issues (2 posts)

  1. ohamanda
    Member
    Posted 3 years ago #

    I have some ads on my right sidebar. According to my agreement with my ads, I can only do reviews/etc. on my site if I do NOT display my ads on that page.

    So. Even tho' I have no idea what I'm doing, I successfully installed a new custom page template. The problem is the sidebar...it's still the same...and that's where those ads are. (I did upload a new sidebar & pointed my new template to that sidebar nothing happened.)

    My question(s):
    1. My ads are in a widget. Can I just delete the widgets out of my NEW sidebar? If so, where & how?

    2. Is there some other way to make my NEW sidebar "blank"?

    3. Did that make ANY sense?

    TIA!
    a

  2. lizhenry
    Member
    Posted 3 years ago #

    Hey ohmanda! In your custom page template, which might be named something like review-page.php, you need to replace any references to the sidebar with a reference to a new review sidebar. So, make a new sidebar called something like review-sidebar.php.

    Since your ad code isn't in the sidebar but is in a widget, you will need to take out the "dynamic sidebar" bits of the code as well, just in that review-sidebar.php file. Delete this line:
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>
    and then near the end of your review-sidebar.php file, delete this line:
    <?php endif; ?>

    So, I am doing this and think it should work, and it's working on some blogs, but on others I'm having a whole different problem that my page template doesn't stick.

Topic Closed

This topic has been closed to new replies.

About this Topic