• Resolved AdamTassle

    (@adamtassle)


    I’ve built most of my site by learning on the job and at some point I appear to have screwed up some part of the style.css file. My site still works fine, but the body text has reverted back to Times New Roman and my attempts to input new fonts do nothing. The current code in style.css reads:

    body {
        font-family:Tahoma;
        font-size:13px;
        background:url(images/bg.png);
        padding-bottom:20px;
        color:#504f4f;

    I’m talking to a number of prospective employers this week so this is the worst possible time for this to happen. I’d really appreciate someone having a quick look to spot any obvious errors before I attempt a restore.

    With thanks,
    Adam

Viewing 5 replies - 1 through 5 (of 5 total)
  • Try using Firefox with the Firebug add-on for this kind of CSS troubleshooting. Or use whatever developer tool is available in your web browser.

    @adamtassle If you view your page’s source you’ll see this code that overrides the font-family property.

    <!-- Custom Styling -->
    <style type="text/css">
    p, a{
    font-family:georgia;
    }
    .
    .
    .

    You’ve probably added that through a custom css plugin.
    Learn to use firebug to pinpoint issues like this.
    https://ronangelo.com/use-firebug-to-modify-wordpress-theme-css/

    Thread Starter AdamTassle

    (@adamtassle)

    Thank you @ronangelo and @esmi. I’ve downloaded firebug and will learn to use it asap. In the short term, I’m struggling to locate the file that contains the above text. Is it possible for either of you to point me in the correct direction? It will take me a while to understand the wealth of information firebug is presently showing me.

    Thanks again,
    The wordpress community is awesome.

    Adam

    Are you running a custom CSS plugin – such as Jetpack?

    Thread Starter AdamTassle

    (@adamtassle)

    After some digging I found the reference to Georgia in a ‘Custom CSS’ text box deep in the menu tree of my theme. Now solved. Thank you both for your help.

    Adam

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Font error in style.css – help really appreciated!’ is closed to new replies.