WordPress.org

Ready to get started?Download WordPress

Forums

Displace
functions.php - no closing tag (2 posts)

  1. likefilthyrags
    Member
    Posted 6 months ago #

    functions.php does not have a php close tag ?>

    I received a 404 warning about a resource not being found. It was the result of:
    wp_enqueue_style( 'roboto-slab', '://fonts.googleapis.com/css?family=Roboto+Slab:400,700,300&subset=latin,cyrillic', array(), null );
    "/fonts.googleapis.com/css?fam...etc" was being appended to my domain name, so it was looking for "likefilthyrags.com/fonts.googleapis.com/css?fam...etc" Adding the php close tag to the end of the document resolved it.

  2. ak
    Member
    Theme Author

    Posted 6 months ago #

    I wouldn't really like to add a closing php tag, you can google the reasons. It's possible that theme reviewers wouldn't allow me, too.

    Maybe changing '://fonts' to '//fonts' would also be a fix? I'd appreciate if you tried that, and shared the results.

Reply

You must log in to post.

About this Theme

About this Topic