Support » Fixing WordPress » how NOT to change to ?
6 years, 1 month 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?
<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:
Killer hacks to enhance WordPress editor
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(
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> =(
6 years ago