Yintii
Yintii

Reputation: 43

Removing the trailing '.' from my wordpress directory URI

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.

Upvotes: 0

Views: 83

Answers (2)

Yintii
Yintii

Reputation: 43

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.

Upvotes: 0

charan kumar
charan kumar

Reputation: 2157

You need to use like

get_stylesheet_directory_uri().'/style.css'

it seems you are missing '.' while concatenating

Upvotes: 1

Related Questions