WordPress.org

Ready to get started?Download WordPress

Forums

Removing <h2> Pages</h2> from sidebar ? (7 posts)

  1. acknowledged74
    Member
    Posted 5 years ago #

    Hi

    This question is concerning the 'Pages' widget.

    I've set #sidebar h2 {} to 0px font-size etc which is fine on FF but in IE (though you can't see the word 'Pages') its still leaving the space as though it us.

    On IE there is about an inch gap above the page navigation, which looks lets say a little weird.

    Is there a way to remove the <h2>Pages</h2> from the 'sidebar widget', there is nothing in the title field.

    Just to be clear, not from the sidebar.php

    A

  2. Shane G
    Member
    Posted 5 years ago #

    Hello,

    You can modify the widget from sidebar.php file..where you can find all widget function which you have installed into your blog.

  3. acknowledged74
    Member
    Posted 5 years ago #

    My sidebar.php looks like

    <div id="sidebar">

      <?php /* Widgetized sidebar, if you have the plugin installed. */
      if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) :
      ?>

      <?php endif; ?>

    </div>

    I am using the widget editor on the control panel, as the person the site is for can update it there.

    so the <h2> still remains, is this a theme problem ?

    Thx

  4. alanft
    Member
    Posted 5 years ago #

    use

    #sidebar h2 {display: none}

    in your CSS instead to remove all the h2 headings, or narrow it down with the id of just the pages widget -- something like #sidebar #pages-widget h2 (though i'm not sure that IS the id of the pages widget, but that'll be easy for you to find out.

  5. acknowledged74
    Member
    Posted 5 years ago #

    That definitely a little better thanks

    looks slightly different in IE than FF though.

  6. rotarjen
    Member
    Posted 4 years ago #

    You can also add &nbsp; in the blank Title section of the widget - that will override the "Pages" reference with a blank space and allow you to continue using your normal H2 for other widgets in the sidebar.

  7. Shane G
    Member
    Posted 4 years ago #

    Hi,

    I think it is better to remove from sidebar.php instead of going to style.css and creates a problem to the site layout..however it is depends on your theme when you remove the widgets from the sidebar..if your theme is wel designed then there should not be an issue with the style..

    Thanks,

    Shane G.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.