WordPress styles not being loaded on localhost
-
I have got IIS and WAMP running simultaneously. They listen to different ports and everything was fine until I moved a wordpress website from localhost to godaddy. Now when I load http://localhost:8080/wordpress/# (this is the wamp server) all styles are not being loaded. The wordpress website is located in the www folder. I am loading the style sheets with:
<link type=”text/css” rel=”stylesheet” href=”<?php echo trailingslashit( get_bloginfo(‘template_url’) ); ?>style.css” media=”screen” />
And the browser renders:
<link type=”text/css” rel=”stylesheet” href=”localhost:8080/wordpress/#/wp-content/themes/ParvanTheme/style.css” media=”screen”>
The path is correct.
Any idea how to fix that?
I have tried creating a virtual host on apache.
<VirtualHost *:8080> …
Even though IIS listens to 80 and WAMP to 8080 the virtual host still opens IIS.
The topic ‘WordPress styles not being loaded on localhost’ is closed to new replies.