This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Remove Wrapper Div’s

9 years ago · Last reply by Andrew Misplon 9 years ago

Hello all,

Whats the most convenient way to remove the closing wrapper divs which are rendered, when retriebing the content of a Panels page?
In specific, i mean those 3, which are wrapped around my templates.

<div id="pl-603"><div class="panel-grid" id="pg-603-0" >
<div class="panel-grid-cell" id="pgc-603-0-0" >
<div class="so-panel widget widget_sow-slider widget_sow-slider panel-first-child panel-last-child" id="panel-603-0-0-0"><div class="so-widget-sow-slider so-widget-sow-slider-default-d75171398898">

Thanks for any hints

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

7
  1. Andrew Misplon Staff 9 years, 10 months ago

    Hi sebs

    Thanks for your question.

    At the moment there, unfortunately, is no way to accomplish this from within Page Builder settings. At SettingsPage BuilderWidgets you can change the Widget Title HTML. At the moment, that’s the only setting of this nature included in Page Builder. Technically, anything is possible with Page Builder but the custom development required to achieve what you’re looking to do is, unfortunately, beyond the scope of support we’re able to offer here on the forums, sorry.

  2. sebs 9 years, 10 months ago

    Hi Andrew,

    Many thanks for your reply.
    I simply changed function siteorigin_panels_render in the source code to get rid of the wrappers.

  3. Andrew Misplon Staff 9 years, 10 months ago

    Glad to hear you’ve made progress. A quick reminder that all WordPress themes and plugins completely overwrite their own folder during updates so you’ll need to stick with this version of Page Builder to keep your change or reapply it after updates.

    All the best :)

  4. CiT 9 years, 9 months ago

    Hey Sebs,

    can you give me a hint?
    Looks like it don’t get it :/

  5. sebs 9 years, 9 months ago

    Hey CiT,

    You may find the heavily modified siteorigin_panels_render function attached, hope this helps to understand what we did. In the original function you find many echos which print the wrappers.

    As mentioned, we changed plugin core files, therefore we will not be able to use any updates of the plugin.

    panels_render

  6. sebs 9 years, 9 months ago

    Seems like its not possible to upload txt files here. Please check https://gist.github.com/anonymous/63c78e5db2463ff9cd00441112f7a50b

  7. Andrew Misplon Staff 9 years, 9 months ago

    Thanks sebs, appreciate it.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread