• 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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

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

    Thread Starter acknowledged74

    (@acknowledged74)

    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

    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.

    Thread Starter acknowledged74

    (@acknowledged74)

    That definitely a little better thanks

    looks slightly different in IE than FF though.

    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.

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Removing <h2> Pages</h2> from sidebar ?’ is closed to new replies.