My Theme renders differently on lcalhost and webserver
-
Hello!
I am currently working on my own WP theme. I haven’t done that before, so it’s my beginning with css and wordpress layout. I encountered a very strange problem. The website is here: https://marztest.net63.net/ (it might change, so I will paste some code here).When I view this theme on the free hosting server (the address I pasted): it looks exactly as I wanted. But when I view it on my localhost server – the colors of the links are screwed.
What I want now:
-links in the menu: white
-post header links: orange
-rest: not set – blueBut on localhost all links are orange. For example, HTML:
<div class="entry"> <p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p> <p class="postmetadata"> Filed under: <a href="https://localhost/wordpress/?cat=1" title="View all posts in Uncategorized" rel="category">Uncategorized</a> by admin<br /> <a href="https://localhost/wordpress/?p=1#comments" title="Comment on Hello world!">1 Comment »</a> </p> </div>
When I inspect that link in Firefox it shows no CSS rules set. The computed rule is RGB(0,0,238). But rendered color is orange (#ef4c1f).The only place I set that color in my CSS is:
.post-header { text-align:center; color: #ef4c1f; } .post-header a:link, a:visited { font-family: Gabriola, sans-serif; font-weight: bold; color: #ef4c1f; text-decoration: none; } .post-header hr { color: #ef4c1f; background-color: #ef4c1f; height: 1px; }
and post-header in HTML is used only here:
<div class="post-header"> <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1> <p><?php the_time('H:i, j.m.Y'); ?></p> <hr/> </div>
What might be causing this?
- The topic ‘My Theme renders differently on lcalhost and webserver’ is closed to new replies.