August 14, 2013 at 10:46 am #27772
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.
AndrewAugust 15, 2013 at 2:47 am #135316
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.
DevinAugust 15, 2013 at 2:53 am #135317
First, upgrade your theme to 1.9.1. Then switch the Advance Layout Editor to debug mode.
Edit functions.php, find this code:
Below, add this code:
//set builder mode to 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 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']
The code above is the tab shortcode with button shortcode inside the toggles.
IsmaelAugust 15, 2013 at 11:30 am #135318
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.
AndrewAugust 16, 2013 at 8:27 pm #135319
- The topic ‘Toggles content’ is closed to new replies.