WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Which font? - 2010 sidebar title (5 posts)

  1. clarer1
    Member
    Posted 3 years ago #

    What html code do I need to format something to look the same as the widget titles in the sidebar in theme twenty ten?

    I'm using miniposts plugin which puts posts in the sidebar. It gives the option of formatting how they post. I looked in style.css and have tried something, but I don't know if I'm looking in the wrong place. Or maybe the code I need is in another file? I'm fairly new with WP.

    I tried <p class="minipost"><font face="Helvetica Neue, Arial, Helvetica, Nimbus Sans L", sans-serif>%title%</font>
    %post% %more%</p>

    It has formatted the text from how it was before, but the title doesn't match the other widgets yet. See http://www.hphl.org.uk In the sidebar, I want "FAQ for discussion group" to look the same as "Recent posts."

    Where is the code I need?

    Thank you.

    Clare

  2. clarer1
    Member
    Posted 3 years ago #

    Hi.
    anyone able to advise me about this please?
    Thanks.

  3. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    Yuohave the right font stack, but these also apply to widget titles:

    .widget-title {
    	color: #222;
    	font-weight: bold;
    }

    Along with a bump up in font size I'm sure

  4. clarer1
    Member
    Posted 3 years ago #

    Thanks. It's good to know I'd been looking in the right place.

    I'd seen those so had used the strong for bold. The colour seemed right anyway. And I'd seen elsewhere in the CSS file that I needed size 14px but am still having trouble writing the actual code. It goes in the widget control panel, so I'm not editing a php file directly so thought I need html code? Is that a bit different?

    ..... pause while I go hunting round the web again for html .....

    ah! I've just found "span style" in html. Playing around trying to work out where the = " and : go ......

    Got it! Will try to write it here in case anyone is looking in the future. Hope I can write it here so it shows and doesn't code.

    <p class="minipost"><font face="Helvetica Neue, Arial, Helvetica, Nimbus Sans L, sans-serif"><span style="color: black; font-size: 14px"><strong>%title%</strong></span><br/> %post% %more%</p>

  5. clarer1
    Member
    Posted 3 years ago #

    Whoops! There's a missing bit. I forgot to end the font face command.

    I think corrected is

    <p class="minipost"><font face="Helvetica Neue, Arial, Helvetica, Nimbus Sans L, sans-serif"><span style="color: black; font-size: 14px"><strong>%title%</strong></span></font face><br/> %post% %more%</p>

    Clare

Topic Closed

This topic has been closed to new replies.

About this Topic