WordPress.org

Ready to get started?Download WordPress

Forums

CSS/Widget query (3 posts)

  1. eyeonthetigers
    Member
    Posted 6 years ago #

    Hi,

    On my website at http://www.eyeonthetigers.co.uk whenever I add something new to the sidebar (for example, I'm currently trying to add a plugin which will show the most recent forum posts, but it'd be the same for a simple text widget), the text is bigger and not in the same format (links are underlined, and it gets put in large italics) as the text currently in the sidebar for Categories, Pages and Archives.

    What do I need to add to the CSS so that a list will appear in a new widget in the same format as what's currently in the sidebar?

    The CSS is at http://wordpress.pastebin.ca/682747

    Thanks for your time.

  2. moshu
    Member
    Posted 6 years ago #

    Usually, you don't need to add anything to the CSS.
    However, you will have to keep in mind that almost every sidebar is a huge nested lists... so the text inside text widgets often has to be inside li or ul and li tags.
    Try to validate your site after adding a text widget and it will tell your where do you miss the proper tags.

  3. eyeonthetigers
    Member
    Posted 6 years ago #

    Here's basically what I'm trying to show in the sidebar (using the Samsarin PHP Widget).

    echo "<ul><a href=\"$host"."/viewtopic.php?t=$resultsow[topic_id]\">$topics_title</a></ul>";

    Any ideas?

    Whenever I've tried it (I've tried
    <li> and
    <ol> tags too), it's always displayed in the same size font as the 'Categories', 'Pages' and 'Archives' headings in the sidebar.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic