Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Forum: Hacks
    In reply to: Remove sidebar
    Thread Starter Arbiz

    (@arbiz)

    well that’s very strange, I’ve added the code in functions.php as suggested. Again the list of widgets is returned but the sidebar is not removed. I tested with twenty-eleven theme.
    I’m lost here…

    Forum: Hacks
    In reply to: Remove sidebar
    Thread Starter Arbiz

    (@arbiz)

    Hi
    That sounded great…however when I run the code, my sidebar is still there…wp_get_sidebars_widgets() does return the list of widgets but unregister_sidebar() doesn’t seem to do anything.
    Did you actually manage to remove your sidebar using unregister_sidebar?
    Thanks for your help.

    Forum: Hacks
    In reply to: Remove sidebar
    Thread Starter Arbiz

    (@arbiz)

    Hi
    Thanks for your reply but I’m trying to remove the sidebar from within a plugin so i can’t create a template page.
    Let me try to explain: the main plugin page includes some php code (linked to mysql). Depending on content received from database the sidebar should be removed and replaced. I was hoping there was a filter or action hook to do this from within my plugin page..

Viewing 3 replies - 1 through 3 (of 3 total)