WordPress is changing “-” into “—”

Rate this post

I’m trying to write guitar tabs in WordPress, but I’m having a problem.

I input a line of a tab like so (I’ve tried the visual editor, text editor, and Elementor):


But the browser renders it as


I think it’s converting “-” to “—”.

I’ve tried using a monospace font which fixes it, but it messes up my spacing



Try to add this to your theme’s functions.phpor add it as a new snippet using Code Snippets plugin

remove_filter( 'the_content', 'wptexturize' );

Leave a Reply

Your email address will not be published.

Back to top button