Hi @imcobarn ,
The CSS code can’t read the WordPress variables from the browser, so it does use relative paths to get to the locations it needs.
Can you check your Network tab to make sure that fonts folder is loading, even if it’s coming into a different path?
I also noticed you are setting both the _DIR and _URL constants for content and plugins. May I ask what those are set to? I wanted to double check, because of this:
I also use “WP_CONTENT_URL” and “WP_CONTENT_DIR” constant set to “custom-content” so it recognizes that apparently but not plugins URL/DIR.
I just wanted to confirm that WP_CONTENT_URL
isn’t set to just custom-content
as it should be set to the full URL of the content folder with no trailing slash.
Based on what you’re describing, the constants should be something like this:
define( 'WP_CONTENT_DIR', dirname(__FILE__) . '/path/to/custom-content' );
define( 'WP_CONTENT_URL', 'https://mywebsite.com/custom-content' );
define( 'WP_PLUGIN_DIR', dirname(__FILE__) . 'path/to/your-plugins-folder' );
define( 'WP_PLUGIN_URL', 'https://mywebsite.com/your-plugins-folder' );
Are your constants set this way? If you wouldn’t mind sharing what those are set to, I can try reproducing this locally to track where the issue is occurring.
I also noticed that there is a PLUGINDIR
option to handle some compatibility issues. Do you have that constant set? If not, can you try setting it to see if it makes a difference? That’ll help see what’s happening, as well.
Thanks!