Wordpress issue please help

ritafairclough

Senior Member
Joined
Apr 7, 2009
Messages
1,149
Reaction score
664
Hi,

I cant for the life of me fix this. Please help.

My issue is this that Wordpress is automatically changing the "x" letter to a character set multiplication sign. X.

For example if I type out: 6x4 , in the source code Wordpress outputs this as:
6×4 but I just want: 6x4 to show in my source code.

I have checked, every other character is fine and I have <meta charset="UTF-8" /> in my theme header.

Has anyone got any suggestions? Thanks!
 
Probably coming from some kind of plugin/your theme. This is not normal. Should be able to be fixed. Try hiring someone.
 
Hi,

I cant for the life of me fix this. Please help.

My issue is this that Wordpress is automatically changing the "x" letter to a character set multiplication sign. X.

For example if I type out: 6x4 , in the source code Wordpress outputs this as:
6&#215;4 but I just want: 6x4 to show in my source code.

I have checked, every other character is fine and I have <meta charset="UTF-8" /> in my theme header.

Has anyone got any suggestions? Thanks!
Switch back to default theme, is it still doing it?
 
  1. In your Dashboard, Goto -> Appearance -> Editor.
  2. Open the Theme Functions "functions.php" page.
  3. Paste the following code just under the starting line <?php

Code:
add_filter( 'run_wptexturize', '__return_false' );

Now whenever you enter the letter small "x", wordpress won't convert it into the multiplication sign.

Give it a try and update your result.
 
  1. In your Dashboard, Goto -> Appearance -> Editor.
  2. Open the Theme Functions "functions.php" page.
  3. Paste the following code just under the starting line <?php
Code:
add_filter( 'run_wptexturize', '__return_false' );

Now whenever you enter the letter small "x", wordpress won't convert it into the multiplication sign.

Give it a try and update your result.
Of course it has to be done in a child theme, or the next update it will be lost and he'll have to do it all over again.
Go here to learn about why you should do it in a child theme
https://codex.wordpress.org/Child_Themes
 
Of course it has to be done in a child theme, or the next update it will be lost and he'll have to do it all over again.
Go here to learn about why you should do it in a child theme
https://codex.wordpress.org/Child_Themes

That's what I would have suggested next as well when/if the OP says the code fixed the issue.

As a SpoonFeeder, I like to take them through baby-steps instead of pushing everything down to their throat. :D

Also, there are much easier ways to create a child_theme than the one you linked. I'll post one easy method later.
 
Last edited:
Guys thanks for your help - I'm going try these fixes out. Will report back. !!

Edit: I did find a semi fix I just replaced the lower case "x" with a capital X.
 
  1. In your Dashboard, Goto -> Appearance -> Editor.
  2. Open the Theme Functions "functions.php" page.
  3. Paste the following code just under the starting line <?php
Code:
add_filter( 'run_wptexturize', '__return_false' );

Now whenever you enter the letter small "x", wordpress won't convert it into the multiplication sign.

Give it a try and update your result.

Thank you @SpoonFeeder !! This fix worked and even better, I placed it in the child theme functions.php file :-)

I love BHW, you guys are the best!
 
Thank you @SpoonFeeder !! This fix worked and even better, I placed it in the child theme functions.php file :)

I love BHW, you guys are the best!
gatsby.1497548146.gif
 
Back
Top