Title: Adding attributes to IDs
Last modified: September 1, 2016

---

# Adding attributes to IDs

 *  [Jack](https://wordpress.org/support/users/moxie/)
 * (@moxie)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/adding-attributes-to-ids/)
 * I’m trying to add Salvattore masonry to my Genesis front page, but I’m already
   stuck on this: <div id=”grid” data-columns>
    In Genesis this would mean my markup
   should read as <main class=”content” id=”genesis-content” data-columns> How can
   I do this? As you can see data-columns is neither a class nor an ID.
 * [http://salvattore.com/](http://salvattore.com/)
 * By the way, I tried Sridhar Katakams code but can’t get it to work.

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

 *  [Jacob Peattie](https://wordpress.org/support/users/jakept/)
 * (@jakept)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/adding-attributes-to-ids/#post-7639631)
 * This is a Genesis specific issue, and Genesis is a commercial theme. You’ll need
   to contact their support.
    [https://codex.wordpress.org/Forum_Welcome#Commercial_Products](https://codex.wordpress.org/Forum_Welcome#Commercial_Products)
 *  Thread Starter [Jack](https://wordpress.org/support/users/moxie/)
 * (@moxie)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/adding-attributes-to-ids/#post-7639635)
 * Is it? I thought that there would be a rather general way to do this, being a
   markup thing, but I will ask them.
 *  [Jacob Peattie](https://wordpress.org/support/users/jakept/)
 * (@jakept)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/adding-attributes-to-ids/#post-7639637)
 * Markup is pretty much entirely the domain of the theme. But I do know that Genesis
   does a lot of things through hooks and it might not be as simple as just editing
   a template.

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

The topic ‘Adding attributes to IDs’ is closed to new replies.

## Tags

 * [attributes](https://wordpress.org/support/topic-tag/attributes/)
 * [classes](https://wordpress.org/support/topic-tag/classes/)
 * [IDs](https://wordpress.org/support/topic-tag/ids/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Jacob Peattie](https://wordpress.org/support/users/jakept/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/adding-attributes-to-ids/#post-7639637)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
