WordPress.org

Ready to get started?Download WordPress

Forums

Custom Community
Sidebar Issue With Gallery Plugin (2 posts)

  1. lenglish01
    Member
    Posted 1 year ago #

    I am using your theme with a plugin called Gallery Plugin by BestWebSoft.

    So far, I've been very happy with everything about the theme up until now.

    The plugin, when installed, copies 2 template files to the theme directory which are used to display the gallery pages. On said pages, the sidebars are pushed way down on the page and I simply wish to remove the sidebar from those 2 template pages, but display it on every other page.

    I removed the function call that gets the sidebar on the 2 gallery templates, yet the sidebar STILL renders on those pages (not posts).

    I suspect that the theme is overriding the template pages and inserting the sidebar for me.

    How can I stop this?

    Any insight is much appreciated!

  2. konradS
    Member
    Posted 1 year ago #

    hi lenglish01,

    try to deregister the sidebar via a remove_action in the first line of the template,
    that should work..

    like this:

    <?php remove_action( 'sidebar_left', 'sidebar_left', 2 ); ?>

    or this one for the right sidebar:

    <?php remove_action( 'sidebar_right', 'sidebar_right', 2 ); ?>

    let me know if it works! :)
    cheers, konrad

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic