Feeds

Using Widgets breaks CSS

PerformancingAds
Submitted by cerebralmum on December 18, 2007 - 10:19am in

Hi, I have actually installed the Courtney Tuttle's SEO version but I'm having a problem with it and was hoping you could help.

When I use the sidebar widgets, my CSS styles for the sidebar don't work. I'm not sure if this is due to Court's editing or the original theme. I'm fairly competent at playing around with template files but I'm not sure exactly what I need to do to fix this. Can anyone point me in the right direction?

Thank you.


Fixed: functions.php edit

My main problem was the default settings for wordpress widgets so I have edited functions.php and it now reads as follows.

<?php
if ( function_exists('register_sidebars') )
register_sidebars(2, array(
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));

?>

So I now have a css class that I can build on and most importantly, I have overwritten the default h2 title so that it is h3. Yay!

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <h2> <h3> <h4> <img> <div> <a> <em> <strong> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <span> <table> <td> <tr> <caption> <th> <hr> <pre> <br> <p> <object> <param> <embed> <strike>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
8 + 4 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.