0

I have a multisite setup. One of the sites is having an issue linking to the stylesheet and JavaScript resources. For some reason, the URL to those resources add the page url to the link.

For example, if I'm on the about us page (/about-us), then the url to the CSS changes to mysite.com/about-us/wp-content........ when it should just be mysite.com/wp-content...

That URL changes based on the page I'm on. It was working before, the wp_enqueue looks like this:

wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css', array('font-awesome'));
wp_register_style( 'child-responsive', get_stylesheet_directory_uri() . '/css/responsive.css' );

This site hasn't been touched in a while and we're not sure what's going on.

It is a multisite and they all share the same plugins, and none of the other pages are having this issue.

Thoughts?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.