Title: Modifying Link Class
Last modified: August 18, 2016

---

# Modifying Link Class

 *  [bogo](https://wordpress.org/support/users/bogo/)
 * (@bogo)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/modifying-link-class/)
 * 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](https://wordpress.org/support/users/bogo/)
 * (@bogo)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/modifying-link-class/#post-483452)
 * anyone?
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/modifying-link-class/#post-483462)
 * 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](https://wordpress.org/support/users/bogo/)
 * (@bogo)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/modifying-link-class/#post-483485)
 * Yes, you are correct, but it’s for the purpose of integrating a javascript which
   affects class members, which isn’t affected by inheritance.
 *  [sendusout](https://wordpress.org/support/users/sendusout/)
 * (@sendusout)
 * [19 years ago](https://wordpress.org/support/topic/modifying-link-class/#post-483717)
 * 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.

## Tags

 * [class](https://wordpress.org/support/topic-tag/class/)

 * 4 replies
 * 3 participants
 * Last reply from: [sendusout](https://wordpress.org/support/users/sendusout/)
 * Last activity: [19 years ago](https://wordpress.org/support/topic/modifying-link-class/#post-483717)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
