• How do I with inline styles, change the font throughout this page?

    I’ve tried, <!-- body,td,tr { font-family: "Courier New", Courier, Monospace; font-size: 14px; } --> which as I understand it is an “internal style”, but it doesn’t work.

    https://atxre.com/newsletter-1/

    Help?

Viewing 10 replies - 1 through 10 (of 10 total)
  • In short – you can’t. Even if you added inline style to every bit of post content text, it wouldn’t affect the post title or the post meta information. If your theme used the body_class() function, you could add external CSS that targeted just that post.

    Thread Starter mpustka

    (@mpustka)

    what is meant by post meta information?

    I’m not trying to change the post title, just the font style on the remaining text on the page.

    Thread Starter mpustka

    (@mpustka)

    could I add the body_class() function to my theme?

    what is meant by post meta information?

    The “posted on”, category and tag details for each post.

    could I add the body_class() function to my theme?

    Certainly. Edit header.php and replace <body> with <body <?php if (function_exists('body_class')) body_class(); ?>>

    Thread Starter mpustka

    (@mpustka)

    ok, well it’s a page and not a post but not sure if that matters.

    After editing the header.php, what do I do next in order to change the singular page?

    call the class and then write the changes?

    it’s a page and not a post but not sure if that matters

    It doesn’t. The whole point of the body_class() function is that it automatically adds a whole range of classes to the body tag that allows you to target just posts, or page or specific pages etc. etc.

    However, I can’t see any sign of those classes on your newsletter page.

    Thread Starter mpustka

    (@mpustka)

    ok, so I’ve made the change to body on the header.php

    how do i code the page to change something like font?

    Sorry – still can’t see the body_class() classes and without seeing what classes are being generated, I can’t advise you. Perhaps you need to turn off your caching plugin?

    Thread Starter mpustka

    (@mpustka)

    which code did you want to see, from my header.php file?

    <?php } else { ?><link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <?php } ?>
    </head>
    <body <?php if (function_exists('body_class')) body_class(); ?>>
    
    <div id="wrap">
    
    <div id="stripe"></div>

    I need to see the body classes on the displayed page. They’re still not there. ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Change Font on Single Page?’ is closed to new replies.