Wordpress Blog page aand category tags invisible 'white'

I've built a wordpress theme from scratch however style the bootstrap navigation to white text and brown text on selection - this appears to be overiding the a: visit and a: hover on everything i've tried to add a separate new a class for the H1 tags on the blog post page but it doesn't appear to work I've used.

.h1blog{
    font-size: 22px;
    font-family:"Lato", arial, helvetica, sans serif;
    color:#674922;
    line-height:120%;
}

a.h1blog:link{ color: #674922; text-decoration: none; }

a.h1blog:visited{ color: #666666; text-decoration: none; }

any help would be greatly appreciated i've even tried some class styling against the preset classes in wordpress but this doesn't work either?

http://creative-media.info/WarringtonBonsai/latest-news-offers/

cheers

Paul

Solutions

Here's the problem:

<h1 class="h1blog"><a href="http://creative-media.info/WarringtonBonsai/test-3/">TEST 3</a></h1>

You have an <h1> element with the h1blog class, containing an <a> element that you're trying to style with this rule:

a.h1blog:link{ color: #674922; text-decoration: none; }

That won't work, because the <a> element doesn't have the h1blog class applied to it. Try this instead:

.h1blog a:link{ color: #674922; text-decoration: none; }
Tags: Css / Wordpress / Class

Similar questions

page view count increments by 2 every time wordpress page is visited in Chrome
I have a simple function that should add 1 to the page views in the wp_postmeta table every time a user visits the page. The problem is that in chrome, the number increments by two each time the page is visited. I had initially done this on a taxonomy page and the number was actually incrementing by four on each visit. The code I used is below and ...
The admin-ajax page is the most visited page on the website
I run a small blog. And recently I started having my hosting resources limited quite often. I tried to see what is causing the problem, and I find it very suspicious that the wp-admin/admin-ajax page is the most visited page in the last few months. I already have heartbeat control. When I run a Gtmetrix test as people suggest in the response tab al...
How to stop page from redirecting to the previous visited page?
The issue i have is that when i click on any page in my menu, it loads and then goes back to the previous page i visited. I contacted my hosting provider and they said there must be some code somewhere inside the website or database. But i know for sure i didnt put any code in there. Does anyone know where i could find this code or where the proble...
White text on white background in TinyMCE when wp_editor is called in WP 3.9
One of the features of my plugin is to add a TinyMCE editor instance inside a meta box on the Edit Post screen. This has worked great up until 3.9 and I'm not clear as to what's going wrong. Here are the relevant files containing the code for the meta box editor (links to files inside Github commit): What am I missing? This is what I'm given when I...
Why does Wordpress mysteriously run and additional invisible time (Twice with one output)
So. I decided to remake my previous question for clarification. Background: Problem: When one clicks on the link from the email that the user recieve they get to the correct page, get no php errors. But the account is already activated. That is everything works exactly like the page is first run through but no output, then run through again and it ...
Wordpress "WP Google Plus Connect" Plugin > Options page invisible
So, I installed the WP Google Plus Connect plugin, v 1.0.5.1. When I go to the settings page of the plugin, however, what I see is The settings page is not displayed. I use Wordpress v 3.1.

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.