Jump to content


Photo
- - - - -

Individual classes for anchor tags


This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1 davidcosgrove

davidcosgrove

    Advanced Member

  • Members

  • 34 posts

Posted 24 January 2011 - 01:53 AM

Hi,

I want to control the anchor tag within the h2 on my Blog page

Please Login or Register to see this Hidden Content



Please Login or Register to see this Hidden Content


I set the site anchor tags like this:

Please Login or Register to see this Hidden Content

and I cannot find a way to apply a separate class to the anchor that is enclosed by the <h2> tag.

Thank you for your help.

Posted Image

#2 Kate

Kate

    Advocate

  • Members
  • 3039 posts

Posted 24 January 2011 - 12:26 PM

Hi David - Just the h2s with a class of "entry-title", correct? You can use this:

Please Login or Register to see this Hidden Content


If you notice your styles aren't being picked up, trying using the "!important" declaration. For instance:

Please Login or Register to see this Hidden Content



#3 davidcosgrove

davidcosgrove

    Advanced Member

  • Members

  • 34 posts

Posted 24 January 2011 - 01:43 PM

Hi Kate - perfect! Thank you very much!