Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter crazytonyi

    (@crazytonyi)

    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>

    Thread Starter crazytonyi

    (@crazytonyi)

    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:

    <img src=”picture.png” />

    I don’t see why it can’t just insert:

    <img src=”picture.png” />

    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.

    Thread Starter crazytonyi

    (@crazytonyi)

    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?

    Thread Starter crazytonyi

    (@crazytonyi)

    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!

Viewing 4 replies - 1 through 4 (of 4 total)