crazytonyi
Forum Replies Created
-
Forum: Themes and Templates
In reply to: How can I set the class of anchors?oops. you probably get the idea….
<a href="somepicture.png><img src="picture.png" /></a>
<a class="link-image" href="somepicture.png><img src="picture.png" /></a>Forum: Themes and Templates
In reply to: How can I set the class of anchors?Oh I know all about how it’s two separate elements, that’s what finally brought me here. And it’s not the visual editor that’s the problem.
basically, if i insert an image, through the image editor, it automatically sets it as a link to that image file. that’s no big deal. I even think it’s kind of neat. But if it is inserting the code:
I don’t see why it can’t just insert:
and, if it can do that, I should also be able to set what the actual name of that class is. and if it is possible, i could then make a theme that chooses that class (and maybe other classes) in the dashboard.
Basically, I don’t know where in all the code the visual editor pulls the html code from and thus how to make it a variable.
Forum: Themes and Templates
In reply to: How can I set the class of anchors?But is there some easy way to say “make all linked images have this anchor class”? Instead of having to hand code it myself every time? Which I did, by the way, and updated the css. it totally worked, thanks!
I didn’t know I could set the anchor class in the post itself (I use the wysiwyg editor usually) but if it auto-populates a link when i insert an image, surely it can auto-populate a link class as well, right?
Forum: Themes and Templates
In reply to: How can I set the class of anchors?That’s a pretty good suggestion. But I’d like to know if there is another way, because on some of the other themes I’ve looked at they do dashed border. Plus, can I set the color of an underline?
Good quick fix though, thanks!