Title: Adding Javascript carousel without breaking Widgets: is it possible?
Last modified: August 19, 2016

---

# Adding Javascript carousel without breaking Widgets: is it possible?

 *  Resolved [turqoisehex](https://wordpress.org/support/users/turqoisehex/)
 * (@turqoisehex)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/adding-javascript-carousel-without-breaking-widgets-is-it-possible/)
 * I’m a long time wordpress user, newbie hacker 🙂
 * I modified my theme (motion) to add a javascript carousel. I want it to show 
   up after the header, and before the posts of my home.php page. I tried just directly
   adding the script, and it worked great, but the sidebar was, as I would expect,
   in line with the posts not the carousel.
 * So I moved the <?php get_sidebar(); ?> function up to just below
    however… it
   broke my sidebar widgets. They show up, but are unclickable. I’ve tried inserting
   the function into other areas, but never works properly.
 * If there is a cleaner way of inserting the code, I would love to hear it.
 * you can see it’s current state here:
 * [http://linux-vancouver.com/](http://linux-vancouver.com/)
 * Thanks very much for the help.

Viewing 1 replies (of 1 total)

 *  Thread Starter [turqoisehex](https://wordpress.org/support/users/turqoisehex/)
 * (@turqoisehex)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/adding-javascript-carousel-without-breaking-widgets-is-it-possible/#post-1775196)
 * I figured it out!
 * I moved the carousel to just under, <div id=”content”>, and it lined up perfectly
   with the rest of the page while keeping it’s own style (The CSS seemed to get
   disrupted if I posted it lower)

Viewing 1 replies (of 1 total)

The topic ‘Adding Javascript carousel without breaking Widgets: is it possible?’
is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [turqoisehex](https://wordpress.org/support/users/turqoisehex/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/adding-javascript-carousel-without-breaking-widgets-is-it-possible/#post-1775196)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
