[NSFW] URL in main stylesheet is incorrect
-
Hi,
I made a new copy of my live site as my staging site.
In my staging site wpDiscuz plugin acts horribly. See https://drive.google.com/file/d/1snEH8qQQ-XNNSjFbiHpxZEgNxLokjHTY/view?usp=sharing.It turns out that the url in the main stylesheet is not found and is incorrect.
The page is trying to load it like:
<link rel=”stylesheet” id=”wpdiscuz-frontend-css-css” href=”https://digitopress.staging.wpmudev.host/fans/style.css?ver=7.3.4″ type=”text/css” media=”all”>when actually it should be:
<link rel=”stylesheet” id=”wpdiscuz-frontend-css-css” href=”https://digitopress.staging.wpmudev.host/wp-content/plugins/wpdiscuz/themes/default/style.css” type=”text/css” media=”all”>`I have corrected it with a mu-plugin:
<?php function wpdiscuz_scripts() { wp_register_style( 'wpdiscuz-frontend-css', 'https://digitopress.staging.wpmudev.host/wp-content/plugins/wpdiscuz/themes/default/style.css' ); wp_enqueue_style( 'wpdiscuz-frontend-css' ); } add_action( 'wp_enqueue_scripts', 'wpdiscuz_scripts' );But I think better solve it at your end.
Fyi: I have a multisite installation.
The topic ‘[NSFW] URL in main stylesheet is incorrect’ is closed to new replies.