WordPress.org

Ready to get started?Download WordPress

Forums

Widget title colours - Very strange (5 posts)

  1. macca_andy
    Member
    Posted 1 year ago #

    Hi,

    I am trying to work out why some of my widget titles appear as white and some appear as black. I've tried searching my style.css file for the font colour #2C2B2B, but there's nothing in there. I have no idea what's causing some titles to be that colour. Any idea?

    http://tredwell.myds.me/ehctest2/

  2. macca_andy
    Member
    Posted 1 year ago #

    Oh, and by the way, the colour problems seem to be in Chrome, but not IE - haven't checked FF

  3. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    you seem to have quite few unclosed <font> and <strong> tags in the sidebar widgets; particular in the 'ladies events' widget.

    also reflected in the validation report:
    http://validator.w3.org/check?uri=http%3A%2F%2Ftredwell.myds.me%2Fehctest2%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

    http://codex.wordpress.org/Validating_a_Website

    also, try to use a browser inspection tool such as Firbug to investigate what does the styling of the widget titles.

  4. macca_andy
    Member
    Posted 1 year ago #

    Thanks for this, but how do i change the font tags? I thought it was all done by PHP. Also, why would it work in IE, and not Chrome?

    I am using Chrome's developer tools to identify the styling, but having problems identifying it.

  5. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    how do i change the font tags?

    difficult to tell from the outside;

    - how is the content of the 'ladies events' widget done?

    look at that first ...

    typical section (how it shows in the browser):

    <div><span>Starts:</span> October 27, 2012 - 6:00 pm</div>
    <div><span>Ends:</span> October 28, 2012 - 12:00 am</div><br>
    <div><span><font color="#2C2B2B"> <strong><a href="http://www.epsomhockeyclub.org/category/social-events/"> Click here to read more</a><strong> </span></div>

    this section should read with the tags closed properly:

    <div><span>Starts:</span> October 27, 2012 - 6:00 pm</div>
    <div><span>Ends:</span> October 28, 2012 - 12:00 am</div><br>
    <div><span><font color="#2C2B2B"> <strong><a href="http://www.epsomhockeyclub.org/category/social-events/"> Click here to read more</a></strong></font> </span></div>

    keep in mind that you have to close many of the html tags yourself - there is nothing 'done by PHP'.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.