• bogo

    (@bogo)


    Hello,

    Just a quick, simple question – how can I get it so that the links in the WYSIWYG post editor default to a certain class?

    Thanks!

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

    (@bogo)

    anyone?

    Kafkaesqui

    (@kafkaesqui)

    If this is for *all* links in a post, there’s no need to assign a class to them. Merely let them inherit the properties of the (in your case) main class, like so:

    .main p a {
    ...
    }

    Thread Starter bogo

    (@bogo)

    Yes, you are correct, but it’s for the purpose of integrating a javascript which affects class members, which isn’t affected by inheritance.

    I to would like a way to accomplish this for my blog. Of course you can always change from “visual” to “code” and insert a class on a link but there has to be an easier way.

    What would be ideal for me is a mod or update to the standard WP “write a post” link button that has a 4th input box for class.

    In my case I am using the thickbox.js to make lightbox style image links on my site and this requires you to add a specific class to links you want to activate thickbox on.

    Any tips would be appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Modifying Link Class’ is closed to new replies.