How can I set the class of anchors?
-
Hey there,
I am using a theme (not one I designed, but I’m closer every day to have what it takes) which places a 1px border under any links in an entry. That’s just fine. What it also does is places that border under any images that are links. I don’t like that so much.
I can’t turn it off with CSS by setting the img border-bottom to 0px (or no color, on anything else) because the CSS applies to the link NOT the image. If I set a border on the image, it adds it to the image, not the anchor. So, after doing my homework, I’ve found that the only workaround to this problem is to have images which are links have their own class.
This is where my knowledge of PHP and the WordPress software hits the bricks. I don’t see anywhere to set anchor classes.
Can anybody help me out? Is this something I change in the php of the theme or does it involve changing how the WordPress software assigns html?
Thanks!
Anthony
- The topic ‘How can I set the class of anchors?’ is closed to new replies.