WordPress.org

Ready to get started?Download WordPress

Forums

Changing <strong> to <b> and making it stick (5 posts)

  1. mkirkwag
    Member
    Posted 4 years ago #

    I'm working with the Skinpress theme "Orangy." I like it quite a lot, but it has some problems. One of them is that the bold text is quite odd - it's substantially smaller than the normal text and may be a different font - it looks completely wrong. If I go into HTML view and change the < strong > designation to < b >, it changes to normal bolding of the existing font. (I've added spaces into coding in the hope that it won't change the font in this post! There are no spaces in the original)

    Problem solved? Not quite. It changes back after a few days. I assume it's referencing something like the style sheet and self-correcting. I want to change the theme to solve the basic problem, but I don't know how to tell the theme that the code < strong > is normal bolding of the existing font.

    What I've tried:
    Changing the only three instances of the word "strong" (which had no carets) in the style sheet to the letter 'b.' That didn't do anything.

    Changing the page template mentions of < strong > to < b >. This made the most sense, because the problem only happens in pages, not posts but that change had no results either.

    I did try writing to the theme creator, but no response. Any suggestions appreciated!

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    If you're using an XHTML theme, you shouldn't be using <b> - it's a deprecated tag. The problem may simply lie in your CSS but without seeing a page on your site that includes text marked up with <strong>, I couldn't day for sure. Or provide a solution.

  3. mkirkwag
    Member
    Posted 4 years ago #

    I've published a test page, rather than corrupt the rest of the bold font on the site. It's here: http://tribeofadmins.com/test-page
    If you look at other pages, you can see what the font should look like when it's bold; this one is a good example:
    http://tribeofadmins.com/home/outlook-wiki/outlook-faq

    How can you tell that it's an XHTML theme? Because he's used the strong rather than the b code? It doesn't say that it's an XHTML theme on the site. Whichever it is, it's somehow giving the theme the wrong information about what a font should look like when it's coded 'strong.'

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    Most WordPress themes are XHTML. The line that confirms it is at the top of your header.php file:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    As I suspected, it's your theme's stylesheet. Try editing style.css and change:

    .post-page .entry strong, .post-page .entry h1, .post-page .entry h2, .post-page .entry h3, .post-page .entry h4, .post-page .entry h5, .post-page .entry h6 {
    color:#000000;
    display:block;
    font-family:Tahoma,Geneva,sans-serif;
    font-weight:normal;
    }

    to:

    .post-page .entry h1, .post-page .entry h2, .post-page .entry h3, .post-page .entry h4, .post-page .entry h5, .post-page .entry h6 {
    color:#000000;
    display:block;
    font-family:Tahoma,Geneva,sans-serif;
    font-weight:normal;
    }
  5. mkirkwag
    Member
    Posted 4 years ago #

    Ah! That explains that.

    OK - thanks! I figured it was probably the style sheet, but couldn't figure out what the instruction was. I did that and changed the entry below that from 11pt to 12pt and it's much better.

    Wow, I can't tell you how happy I am to have the resolved. Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic