skip to Main Content

I recently developed my own wordpress theme. I’m having an issue with it not working correctly. The style.css sheet cannot be found, though they are in fact in there. My template is a child of the twentyseventeen template and both style sheets are coming up as missing in my client log, because for some reason it looks like there’s a trailing ‘.’ in the directory path that gets spit out at me.

enter image description here

It’s part of the path on the server end for some reason? Even though it doesn’t have the ‘.’ in it’s directory file name that I can see on the server end here. Any insight is appreciated.

2

Answers


  1. Chosen as BEST ANSWER

    Issue seems to be with the configuration of the server and not the code itself, going to re-instantiate my droplet and try other methods here.


  2. You need to use like

    get_stylesheet_directory_uri().'/style.css'
    

    it seems you are missing ‘.’ while concatenating

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search