Reputation:
I recently created a blog. The site looks fine when I open it(apart from a small problem that it shows me http://apptech.net.previewdns.com/
in the url instead of http://www.apptec.net
.
When someone else opens the site, it showsthe url apptec.net
and the .css
files are not loaded on the browser as a result he sees the site without the css
files.
I have tried to log out as the admin and then see the site but it shows the site with the .css
files to me in both cases.
I don't get what is wrong. I would be very thankful if anyone could help me out.
Thanks
Upvotes: 0
Views: 414
Reputation: 11211
Looks like Wordpress thinks it is installed at the previewdns domain. Log into your admin, go to settings (wp-admin/options-general.php) and check your WordPress address (URL) and Site address (URL) are correctly set to the main domain.
EDIT
It seems that you've done that now, and have a different problem - it looks like your chosen theme - 'Genesis' - is not active on the live server. Again, you should be able to fix this in your Wordpress admin panel, in Appearance.
Upvotes: 2
Reputation: 2387
Your css files are going to a 404 page: http://apptech.net/wp-content/themes/genesis/style.css
My theory is that your site is using a <?php get_template_directory(); ?>
to set the path to your theme files.
Try changing your WordPress Address and Site URL under Settings to apptech.net
Alternately, you could go into your theme's header.php and find any <?php get_template_directory(); ?>
and replace them with absolute paths to your css, images, and javascript.
Upvotes: 0
Reputation: 1003
Your css link is incorrect.
Change it to a relative link and that should work fine. When I type in the address
http://apptech.net/wp-content/themes/genesis/style.css
I get a page not found error.
Upvotes: 2