Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAlexander Samokhin
9,647 PointsIssue with color picker
Well, I followed all the steps in tutorial but my color for heading still not changing. In style.css I have style for all links, like this:
a { color: #111111; }
And when I change the color for headings there is new style added.
h1 a { color: 444444; }
But the color of link is stronger and it overrides the h1 a. How is it possible?
2 Answers
Alexander Samokhin
9,647 PointsThe solution that fixed my problem. I've added third argument (priority) to this function, which means that new styles will be generated after existed styles. add_action( 'wp_enqueue_scripts', 'my_styles_method', 21 );
Mike Henry
Courses Plus Student 5,373 PointsHi Alexander, I think it is the --- h1 a { color: 444444; } --- needs the # like --- h1 a { color: #444444; } --- I hope this helps Mike
Alexander Samokhin
9,647 PointsHi Mike. My value generated from customizer is color: #444444; I just forgot to put hashtag in the first post. Anyway thanks for your help, but the problem still exist. The a is stronger than h1 a