Skip to content
Home » General » WORDPRESS DOUBLE DASH ISSUE 2021 [SOLVED]

WORDPRESS DOUBLE DASH ISSUE 2021 [SOLVED]

  • General

The dreaded double dash issue is back in wordpress. This issue is where wordpress automatically reformats two dashes, into a single long dash. It needs to be removed in blogs like this ome, where many of the commands you see are infact double dashes. This is the quick fix for it.

Login into your site

Go to: Dashboard

Click Appearance

Select Theme Editor

Choose functions.php

Scroll to the bottom of the page and paste

add_filter( ‘run_wptexturize’, ‘__return_false’ );

Click Update

The issue is fixed

Make sure the ‘ symbol above is correct, if it is the apostrophe that slants forward it will not work. it has to the be the apostrophe character that is straight up/down

You will probably need to do this everytime you update your wordpress theme. So bookmark this page and come back when you need to fix it next time.