• Resolved Brian B

    (@duetit)


    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.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @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

    (@duetit)

    @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.