• 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

    (@gswartz)

    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.