functions.php - no closing tag (2 posts)

  1. likefilthyrags
    Posted 1 year 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
    Theme Author

    Posted 1 year 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.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic