Support » Themes and Templates » Displace » functions.php – no closing tag

  • likefilthyrags

    (@likefilthyrags)


    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.

Viewing 1 replies (of 1 total)
  • Theme Author ak

    (@awesome110)


    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.

Viewing 1 replies (of 1 total)
  • The topic ‘functions.php – no closing tag’ is closed to new replies.