Title: Help &#8211; Embed Code for Bannner
Last modified: October 17, 2024

---

# Help – Embed Code for Bannner

 *  [0mair](https://wordpress.org/support/users/0mair/)
 * (@0mair)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/help-embed-code-for-bannner/)
 * Hi there, we built a code, for particles moving that will interact as you scroll
   or hover over it. The code’s in HTML and JS. I want to place it as a banner on
   my website. I can’t, or none of my developers can figure out, on how to add this
   into Word Press. Has anyone done it? Can you kindly suggest?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhelp-embed-code-for-bannner%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/help-embed-code-for-bannner/#post-18079947)
 * The solution depends on what type of theme you use (classic or block) and where
   you want the banner to appear (page content, widget area, header, footer, etc.)
 * Your main challenge is JS code cannot be reliably inserted into WP content, it
   is likely to become corrupted on output. One way to get around this is to implement
   everything [as a shortcode](https://developer.wordpress.org/plugins/shortcodes/).
   You can then add the shortcode to where you want it to appear. Depending on where
   that is, if it’s not automatically expanded to your embed code, you may need 
   to explicitly expand it with PHP like so:
    `<?php echo do_shortcode('[your-shortcode-
   name]'); ?>`

Viewing 1 replies (of 1 total)

The topic ‘Help – Embed Code for Bannner’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [interactive](https://wordpress.org/support/topic-tag/interactive/)
 * [urgent](https://wordpress.org/support/topic-tag/urgent/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/help-embed-code-for-bannner/#post-18079947)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
