• Resolved clarer1

    (@clarer1)


    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 https://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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter clarer1

    (@clarer1)

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

    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

    Thread Starter clarer1

    (@clarer1)

    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>

    Thread Starter clarer1

    (@clarer1)

    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Which font? – 2010 sidebar title’ is closed to new replies.