Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #204328

    Mods,

    I am trying to embed a different page in my current page within a Accordian element (with a single item). I am using wordpress api in php to query and grab contents of the page, using a php embed plugin through a shortcode. However it yields the following results:

    <div class="togglecontainer toggle_close_all  avia-builder-el-8  el_after_av_one_third  avia-builder-el-last">
      <section class="av_toggle_section"  itemscope="itemscope" itemtype="http://schema.org/CreativeWork" >    
        <div class="single_toggle" data-tags="{All} " >        
          <p data-fake-id="#toggle-id-1" class="toggler"  itemprop="headline" >Features Overview<span class="toggle_icon">        <span class="vert_icon"></span><span class="hor_icon"></span></span></p>
          <div id="toggle-id-1-container" class="toggle_wrap" >
             <div class="toggle_content invers-color"  itemprop="text" ></div>
          </div>
        </div><!-- close content main div -->
      </div>
    </div>
    <div id='features' class='avia-section main_color avia-section-no-padding avia-no-shadow  avia-builder-el-9  el_after_av_section  container_wrap fullsize'   >

    i expected the ‘features’ page to be embedded within the ‘toggle_content’, but it was put after it. Is this a defect with the accordian control? any ideas as to a quick fix?

    thanks in advance :)

    • This topic was modified 11 years, 4 months ago by pbodalia.
    #204342

    Hey pbodalia!

    I would suggest not using the shortcode accordian and just hard coding the whole thing or writing something custom. It wouldn’t be something we could support helping with this way but in general its a very dirty hack of a way to get it done.

    Just making a shortcode that outputs the whole thing would be a lot cleaner and really not much work since you already have it most of the way there.

    If you need more assistance then a freelance developer from either Microlancer, Codeable or http://kriesi.at/contact/customization would be your best route.

    Regards,
    Devin

    #205110

    Thanks Devin. I’ll hardcode it — but for the record I don’t think I was doing a hack. I wanted content produced by the shortcode to be inserted into the accordian, not outside of it. I would call this more of a defect in the eyes of a customer. Any way of pushing this to the theme developers?

    #205204

    Its just a bit messy in using a plugin to add in php via a shortcode to a shortcode that is loading in another container and another container on that.

    Nothing we could do on the theme side to address that.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Avia Accordian doesn't handle shortcode well?’ is closed to new replies.