Title: Cannot add around the code
Last modified: January 18, 2019

---

# Cannot add around the code

 *  Resolved [barrelleaf](https://wordpress.org/support/users/barrelleaf/)
 * (@barrelleaf)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/cannot-add-around-the-code/)
 * Hi,
 * I just got a problem adding <div>…. </div> around the recipe code.
    Every time
   I added them in the HTML mold, the <div> will disappear once I change back to
   preview mold.
 * The reason I need to add <div> is that I want to prevent auto ads inserted in
   the recipe template. The <div> is provided by the ads agent, who told me that
   it’s due to the plugin setting.
 * I’m wondering if there is a way to fix this.
 * Thank you for the amazing plugin and the custom function is really great.
 * Nora
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcannot-add-around-the-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Brecht](https://wordpress.org/support/users/brechtvds/)
 * (@brechtvds)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/cannot-add-around-the-code/#post-11103566)
 * Hi there,
 * You should be able to add this div using the “Edit HTML” option in the [Template Editor](https://help.bootstrapped.ventures/article/53-template-editor):
   
   [https://help.bootstrapped.ventures/article/120-adding-text-html-or-3rd-party-shortcodes](https://help.bootstrapped.ventures/article/120-adding-text-html-or-3rd-party-shortcodes)
 *  Thread Starter [barrelleaf](https://wordpress.org/support/users/barrelleaf/)
 * (@barrelleaf)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/cannot-add-around-the-code/#post-11129508)
 * Hi Brecht,
 * I didn’t think of that.
    I’ve edited the HTML and it works. Thank you 🙂

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

The topic ‘Cannot add around the code’ is closed to new replies.

 * ![](https://ps.w.org/wp-recipe-maker/assets/icon-256x256.png?rev=2967063)
 * [WP Recipe Maker](https://wordpress.org/plugins/wp-recipe-maker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-recipe-maker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-recipe-maker/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-recipe-maker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-recipe-maker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-recipe-maker/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [barrelleaf](https://wordpress.org/support/users/barrelleaf/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/cannot-add-around-the-code/#post-11129508)
 * Status: resolved