• I’m just wondering what i should be looking out for in the css to add a font-size statement. I want to alter JUST the main blog font size.

Viewing 15 replies - 1 through 15 (of 17 total)
  • I want to alter JUST the main blog font size.

    look for a body statement/section
    #body
    or similar

    if that is what you want – “main blog font size” doesn’t tell anyone much

    Thread Starter chriscrinkle

    (@chriscrinkle)

    lol sorry, i meant the size of the font used in the actual blog post, not the title or footer, the meaty bit!

    Thread Starter chriscrinkle

    (@chriscrinkle)

    Also, i tried putting the font statement into a body section, it just made the top menu really large, the blog text remained the same.

    You need to link your website. Many of the people answering questions here can edit your CSS in real time and help tell you exactly what to do.

    Thread Starter chriscrinkle

    (@chriscrinkle)

    Here is the website link : https://margaretdrinkall.co.uk/MD/

    Although how you get the CSS from that is beyond me!

    You’ve got the following code overriding your CSS styling:

    <span style="font-size: small; font-family: Times New Roman;">

    This line of code would be located in index.php. Notice how it specifies a font-size of small. Your post content is wrapped in this code.

    After making backup copies of the file, what you could try is removing the <span...> and </span> surrounding the_content() in your index.php file. Then add the following to the entry_content section of your style.css:

    font-size: 1.2em;

    You can adjust that number as you see fit.

    The problem is that <span> section hard-coded into your php file.

    Thread Starter chriscrinkle

    (@chriscrinkle)

    Can you be more specific where that line is? I have checked index.php, rtl.css and style.css and that line of code isn’t in any of them!

    Thread Starter chriscrinkle

    (@chriscrinkle)

    ALSO “the_content” does not appear at all in the style.css file!

    Paste the contents of your index.php and style.css at https://wordpress.pastebin.ca.

    Then link back here.

    Thread Starter chriscrinkle

    (@chriscrinkle)

    Ok, have done: https://wordpress.pastebin.ca./1442562

    Hope that helps! :S

    entry_content is there, line 573 in the pastebin.

    …but, you’re right, the <span> isn’t there and I’m not sure where it’s coming from. You can even see it when you view your source. I can see it in Firebug, but I don’t see it in index.php.

    Thread Starter chriscrinkle

    (@chriscrinkle)

    does that mean i cannot alter the blog content font size? It’s not terrible, but it’s a little on the small size. Is there a colour statement i could change? It might not look so bad if it was in high contrast and arial?

    1. Don’t paste content from Microsoft Word into WordPress as the pasted text will also contain Word’s own formatting. Sooner or later, this formatting will stop your pages from being displayed correctly (if at all) in Internet Explorer. If you cannot possibly manage without Word, paste your text into NotePad (or another text editor) first, then copy from NotePad into WordPress.

    https://www.getwordpressed.com/learning-wordpress/paste-easily-to-wordpress-from-ms-word/

    The <span> that’s causing all of the problems is almost certainly within your post’s content and was probably pasted in from Word.

    Ahhh, thanks Esmi. That hadn’t occurred to me. Thanks for the assist.

    See if you can assist with this one. I offered the correct code but can’t seem to get it to tie in with her current template without pushing the sidebar to the bottom. Tried playing around with it in Firebug.

    I’m 0 for 2 today. ??

    Thread Starter chriscrinkle

    (@chriscrinkle)

    Ok, shoulda checked that but it’s the simple things we miss. However now the blog text is arial, really big, and bold. Does anyone know what lines of code i should be changing?

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘how to alter blog font size?’ is closed to new replies.