WordPress.org

Ready to get started?Download WordPress

Forums

Sidebar Issues (3 posts)

  1. mpawsey
    Member
    Posted 5 years ago #

    I have had this problem for ages and nobody seems to know why, I hope someone here might have an idea!

    I created a theme with a generator, and use widgets in my sidebar for navigation. The problem is, the headers of each widget are indented when I view it in Internet Explorer (not Firefox though). It is definitely not anything to do with the style sheet as I have temporarily deleted it before and the bland page still has the indents. When I view the source code of the site it seems to just have loads of spaces before the headers.

    It is very frustrating as obviously it looks messy, and I just can't work out what could be causing it!

    The site is http://www.paniconline.co.uk - any help would be very much appreciated.

  2. @mercime
    Volunteer Moderator
    Posted 5 years ago #

    Indentation of the headers on the sidebar has everything to do with the stylesheet at wpthemegen/style.css. Check out the CSS below where there's padding all around h4:

    #secondary h4, #third h4{
    	color: #FFFFFF;
    	font-family: Trebuchet MS, arial, sans-serif;
    	margin-top: 5px;
    	padding: 3px;
    	text-align:left;
    }

    Add this below ...

    #secondary h4 { padding-left: 0; margin-left: 0; }
    #secondary ul li { list-style: none; }
  3. mpawsey
    Member
    Posted 5 years ago #

    Hi - thanks for the response, I tried adding that code but the problem still exists. The reason I thought it wasn't a style issue was because I deleted the css file completely a while ago (after backing up) and the indentation was still there, albeit on a white page.

Topic Closed

This topic has been closed to new replies.

About this Topic