• Resolved rainroom

    (@rainroom)


    Hi there and thank you for this beautiful theme.
    I apologize for my terrible english but I will try to be clear as possible.

    When I try to validate my website, the w3c validator give me two errors that can be easily fixed with few modifications in the file functions.php :

    1/ Bad value template for attribue name on element meta.
    add

    function remove_hybrid_meta_template() {
        remove_action( 'wp_head', 'hybrid_meta_template', 1 );
    }
    add_action( 'init', 'remove_hybrid_meta_template' );

    2/ No space between attributes (related to the featured image)

    line 375 replace

    echo "<div class='featured-image' style=\"background-image: url('" . $image . "')\")></div>";

    by

    echo "<div class='featured-image' style=\"background-image: url('" . $image . "')\"></div>";

    Is it possible to make these changes on the next theme update?

    Thanks for the answer!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Ben Sibley

    (@bensibley)

    Thanks for using Tracks!

    #1 The validator does not like the “template” meta tag, but this is included automatically in all WordPress sites so I don’t think it is an issue.

    It’s not a good idea to remove the wp_head action as this will break the site.

    #2 This can certainly be done, and I will add a fix in the next update.

    Thread Starter rainroom

    (@rainroom)

    Thanks for your rapid answer Ben!

    Theme Author Ben Sibley

    (@bensibley)

    You’re welcome 🙂

    Next version is being submitted tomorrow with the fix.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Validator W3c & functions.php’ is closed to new replies.