Title: sidebar widgets error
Last modified: August 20, 2016

---

# sidebar widgets error

 *  [gswartz](https://wordpress.org/support/users/gswartz/)
 * (@gswartz)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/sidebar-widgets-error/)
 * We have modified the wordpress page editor a bit so it opens in a colorbox pop
   up window and we also used css to hide certain fields. The problem we ran into
   was that some of the remaining elements on the page weren’t in a div structure
   that made it easy to layout without resorting to absolute positioning for everything.
   So, instead I took jquery to target the elements we wanted and move them to a
   new container div structure. This worked fine for styling and layout, but since
   then it looks like something broke because now when I drag a widget into a sidebar
   on the page the widget shows the default content for like a half second and then
   changes the content to a -1. I have no idea why it’s doing this. Anyone have 
   any ideas? Thanks.

Viewing 1 replies (of 1 total)

 *  Thread Starter [gswartz](https://wordpress.org/support/users/gswartz/)
 * (@gswartz)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/sidebar-widgets-error/#post-2797738)
 * I figured out the problem. I was taking the elements and putting them inside 
   the post form. When comparing the generated code before I did the manipulation
   and after, I realized that the original had all of the page options (editor, 
   title, sidebars, widgets) outside the post form. I just changed the jquery from
   $(“#post”).append(newcontent) to $(newcontent).insertAfter(“#post”) and it’s 
   all working now. Hopefully this will be helpful for anyone else doing page editor
   customization.

Viewing 1 replies (of 1 total)

The topic ‘sidebar widgets error’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 1 participant
 * Last reply from: [gswartz](https://wordpress.org/support/users/gswartz/)
 * Last activity: [13 years, 12 months ago](https://wordpress.org/support/topic/sidebar-widgets-error/#post-2797738)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
