Support » Fixing WordPress » Theme Widgets Not Using Correct Title

  • Hi everyone,

    Just got done installing my first WordPress installation. I found a theme I really liked, but then found it wasn’t Widget ready despite the theme having indicated that it was. Anyways, I went about making the changes to the best of my ability and now the site will accept and display widgets properly, but there is still a problem. Please take a look:

    As you can see, the sidebar has the header “categories” used for the blogroll, categories, and the third list (which is supposed to be recent comments). I’m not sure what is wrong but I figure it has to be something between my functions.php or sidebar.php…or css page.

    Any ideas on how this is messing up? I know that I am very close to getting it to work correctly. The original theme I grabbed was:

    Hopefully one of you pros can help me figure this out.


Viewing 3 replies - 1 through 3 (of 3 total)
  • Any ideas anyone? I want to let people have a look at my problem before I mess with it and possibly change it (or start wigitizing the theme from scratch again).

    I think that I am close, but something is clearly not quite right.

    Thanks for any help.

    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    … Wow.

    That is one seriously screwed up theme. I don’t even know where to begin.

    All those headers in the sidebar are image files. And he defined them through CSS of all things, by using h2, h3, h4, and h5. I mean, look at this:

    #rightPan h2{
    	background:url(images/categories.gif) ...
    #rightPan h3{
    	background:url(images/arch.gif) ...

    I don’t even know how to begin telling you how to fix that theme. Frankly, I’d trash it and get another one instead.

    However, if you feel like modifying the hell out of it, you can get started at making it widget compatible like so:

    At the start of functions.php:

    if ( function_exists('register_sidebar') )
            'before_widget' => '<div id="%1$s" class="widget %2$s">',
            'after_widget' => '</div>',
            'before_title' => '<h2 class="widgettitle">',
            'after_title' => '</h2>',

    Replace the whole bloody sidebar file with this:

    <div id="rightSide">
    	<div id="rightPan">
    		<?php dynamic_sidebar();?>

    And then expect to spend hours fixing the CSS file. Mostly by removing stuff.

    Well at least I’m glad to see I’m not going crazy. I’ve never used WordPress before but do have some HTML/CSS experience (though no PHP). Frustrating, I really liked some personal modifications I was going to make after getting the sidebar widgets fixed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Theme Widgets Not Using Correct Title’ is closed to new replies.