Support » Plugins and Hacks » [Resolved] Hide Custom Login on specific page

[Resolved] Hide Custom Login on specific page

  • Hi all,

    I am using the ‘Display Widgets’ plugin to hide a number of widgets on specific pages.


    Unfortunately it does not give me the checkbox options to hide the ‘Custom Login’ widget.

    It does state in the FAQ:

    Why aren’t the options showing up on my widget?

    This is a known limitation. Widgets written in the pre-2.8 format don’t work the same way, and don’t have the hooks. Sorry.”

    I wondered if anyone knew how to use the PageID in a piece of code the the widget for a specific page. I’m sure it can be done, but I’m certainly no coder I’m afraid.

    Thansk in advance.


Viewing 2 replies - 1 through 2 (of 2 total)
  • If the widget display on the page is wrapped in a div, you can use css to hide it: display: none;

    But that won’t help you hide it for just one page, that’ll hide it for every page. However! If you write a conditional around that sidebar widget, you could add another css div that could be manipulated that way.

    <?php if ( is_page( 5 )) { ?>
        <div class = "hideable-class">
          // sidebar widget code
    <?php } else { ?>
          // sidebar widget code
    <?php } ?>

    (where 5 is the page ID, for example)

    Clearly, that only works if you only have one widget in that particular sidebar. But it’s as specific as I can be without seeing your setup. 🙂 An idea to start from, anyway?

    Plugin Author Austin Passy


    There is no Custom Login widget built into this plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Hide Custom Login on specific page’ is closed to new replies.