WordPress.org

Forums

how NOT to change to ? (7 posts)

  1. vigilant_spb
    Member
    Posted 4 years ago #

    Hello! The problem is that I need WP not to change <b> tag to <strong>.

    When I make smth bold in WYSIWYG WP puts <strong> tag, than I go to html-view and change it to <b> but...
    If I go back to WYSIWYG WP changes all the <b> tags back to <strong>

    that's not so good for SEO, cause not all what is bold is actually strong))

    How can I figure it out?

  2. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 4 years ago #

    <strong> adds extra semantic meaning to your content. It happens to also a bold style to the text.

    <b> only applies font styling and is no longer be used because you are supposed to format with CSS. If the text was actually important then you would probably make it "strong".

    If you really want the ability use <b> tags you can probably use a modified version of the first code tip here:

    http://www.catswhocode.com/blog/killer-hacks-to-enhance-wordpress-editor

  3. vigilant_spb
    Member
    Posted 4 years ago #

    unfortunately this doesn't work ( when I put the code to functions.php I get

    "Parse error: syntax error, unexpected T_STRING in /public_html/wp/wp-content/themes/rockinbizred-20/functions.php on line 1"

    so example code isn't correct or I have some problem with my hands)

    ufortunately I don't understand where can I fix it(

  4. vigilant_spb
    Member
    Posted 4 years ago #

    that was my folt.. smth wrong with notepad++ - not correct file format
    well, I used this code, it works, but it's not what I want

    it changes all the tags to <b>, so there're no <strong> tags any more.. all became <b> =(

  5. vigilant_spb
    Member
    Posted 4 years ago #

    up

  6. vigilant_spb
    Member
    Posted 4 years ago #

    up

  7. vigilant_spb
    Member
    Posted 4 years ago #

    uuup ((

Topic Closed

This topic has been closed to new replies.

About this Topic