• Hi,

    I’m struggling to how fix this issue, its triple spaces between id and href, I want to have single space between id and href e.g id="" href=""

    At my page source (triple spaces) see below:

    <link rel='stylesheet' id='style-css' href='https://localhost/sentry4/wp-content/themes/testing/style.css?ver=4.9.2' type='text/css' media='all' />

    I would like to have like this:

    <link rel='stylesheet' id='style-css' href='https://localhost/sentry4/wp-content/themes/testing/style.css?ver=4.9.2' type='text/css' media='all' />`

    How do I fix this?

    Thanks,

    Shaun.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You would fix this by editing the theme template files in your theme directory.
    You should be doing this in a child theme as your changes will otherwise get lot in a theme update, still this is a trivial enough change that maybe you do not bother.

    Thread Starter outsourcenow

    (@outsourcenow)

    Hi @rossmitchell

    I build website from scratch via https://underscores.me/

    I added styles in Enqueue scripts and styles.

    functions.php:

    /**
     * Enqueue scripts and styles.
     */
    function _s_scripts() {
    	wp_enqueue_style( '_s-style', get_stylesheet_uri() );
            wp_enqueue_style( 'style-css', get_stylesheet_directory_uri() . '/style.min.css', array());
    	}
    }
    add_action( 'wp_enqueue_scripts', '_s_scripts' );

    Thanks,

    Shaun.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Triple spaces between id and href’ is closed to new replies.