WordPress.org

Ready to get started?Download WordPress

Forums

Custom Login
[resolved] Hide Custom Login on specific page (3 posts)

  1. R_Hemingway
    Member
    Posted 10 months ago #

    Hi all,

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

    http://wordpress.org/plugins/display-widgets/

    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.

    http://wordpress.org/plugins/custom-login/

  2. lettergrade
    Member
    Posted 10 months ago #

    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
        </div>
    <?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?

  3. Austin Passy
    Member
    Plugin Author

    Posted 10 months ago #

    There is no Custom Login widget built into this plugin.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.