Title: Can WPCode target a specific div/class?
Last modified: November 18, 2022

---

# Can WPCode target a specific div/class?

 *  Resolved [Brian B](https://wordpress.org/support/users/duetit/)
 * (@duetit)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/can-wpcode-target-a-specific-div-class/)
 * Hello WPCode,
 * Is this plugin able to insert code before/after a specific div class on a website?
   Basically we have a lot of subpages that is built like this:
 *     ```
       <div class="hero-section">Content</div>
       <div class="section-1">Content</div>
       <div class="section-2">Content</div>
       <div class="section-3">Content</div>
       ```
   
 * We’d like a plugin that’ll allow us to easily add a code snippet after the first
   hero-div on all pages, like this:
 *     ```
       <div class="hero-section">Content</div>
       <div class="newdiv">New Content</div>
       <div class="section-1">Content</div>
       <div class="section-2">Content</div>
       <div class="section-3">Content</div>
       ```
   
 * I hope my question makes sense. I’ve tried reading the documentation, but we’re
   not that technical, so I am unsure if it’ll fit our needs. Thank you in advance!
    -  This topic was modified 3 years, 6 months ago by [Brian B](https://wordpress.org/support/users/duetit/).

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

 *  Plugin Author [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * (@gripgrip)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/can-wpcode-target-a-specific-div-class/#post-16211310)
 * Hi [@duetit](https://wordpress.org/support/users/duetit/),
 * Thank you for your interest in WPCode. There’s no option to target specific CSS
   classes in WPCode at the moment, but I will add that to our list of features 
   for our roadmap to look into it.
 * At the moment, we have a few pre-defined locations which are related to PHP hooks
   so if you are using a page builder or similar there’s no straight-forward way
   to target a div, only paragraphs.
 *  Thread Starter [Brian B](https://wordpress.org/support/users/duetit/)
 * (@duetit)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/can-wpcode-target-a-specific-div-class/#post-16211698)
 * [@gripgrip](https://wordpress.org/support/users/gripgrip/)
 * Hi Mircea,
 * Thanks for the swift reply! I appreciate it although I was hoping for a different
   answer. 🙂
 * Looks like we have to look into some custom coding then.
 * Have a great day!

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

The topic ‘Can WPCode target a specific div/class?’ is closed to new replies.

 * ![](https://ps.w.org/insert-headers-and-footers/assets/icon-256x256.png?rev=2758516)
 * [WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager](https://wordpress.org/plugins/insert-headers-and-footers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-headers-and-footers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-headers-and-footers/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-headers-and-footers/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Brian B](https://wordpress.org/support/users/duetit/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/can-wpcode-target-a-specific-div-class/#post-16211698)
 * Status: resolved