Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #27772

    Hello,

    Is there any restriction on the content that go into a toggle. The reason I ask is that for the second time a problem has occurred.

    I added some images and a couple of icon boxes to the toggle content via the html editor of the toggle option. All worked fine, however, when i went back in to edit some of the content and then saved all of the toggle content was deleted and only the default options were there (toggle 1, toggle 2) etc.

    This has happened twice so far and has lost me time as I have to go back and try it all again.

    So, is there any restriction on what elements of the avia framework can be used in a toggle.

    Thanks

    Andrew

    #135316

    Hi Andrew,

    No hard restriction but generally other shortcodes will not work within toggles or tabs as its all for fairly static data. You could copy and paste the raw html for the items but the stacking of shortcodes inside of one another has limited support for now.

    Regards,

    Devin

    #135317

    Hi,

    First, upgrade your theme to 1.9.1. Then switch the Advance Layout Editor to debug mode.

    Edit functions.php, find this code:

    if(isset($avia_config['use_child_theme_functions_only'])) return;

    Below, add this code:

    //set builder mode to debug
    add_action('avia_builder_mode', "builder_set_debug");
    function builder_set_debug()
    {
    return "debug";
    }

    You can now see the actual shortcode below the Advance Editor. You can combine shortcodes like this:

    [av_tab_container position='sidebar_tab sidebar_tab_left' boxed='border_tabs' initial='1']
    [av_tab title='Tab 1' icon_select='no' icon='1']
    Tab Content goes here
    [av_button label='Click me' link='' link_target='' color='theme-color' custom_bg='#444444' custom_font='#ffffff' size='small' position='center' icon_select='yes' icon='25']
    [/av_tab]
    [av_tab title='Tab 2' icon_select='no' icon='1']
    Tab Content goes here
    [av_button label='Click me' link='' link_target='' color='theme-color' custom_bg='#000000' custom_font='#ffffff' size='small' position='center' icon_select='yes' icon='25']
    [/av_tab]
    [/av_tab_container]

    The code above is the tab shortcode with button shortcode inside the toggles.

    Regards,

    Ismael

    #135318

    Thanks guys.

    I was doing that Ismael but the same thing happened again this morning so I have decided to use a toggle plugin for now which is working ok at the moment.

    Andrew

    #135319

    Glad you were able to find a workable solution.

    Let us know if you have any other questions or issues.

    Regards,

    Devin

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Toggles content’ is closed to new replies.