Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Deleting a single tab – tab content is NOT DELETED – BUT MIGRATED to other tabs?
New Landing › How can we help? › Themeforest Theme Support › Dante › Deleting a single tab – tab content is NOT DELETED – BUT MIGRATED to other tabs?
- This topic has 8 replies, 2 voices, and was last updated 9 years by Rui Guerreiro – SUPPORT.
-
Posted in: Dante
-
July 27, 2015 at 12:38 pm #198075
Hi there,
got an issue with the Tabs “Delete” function within the Swift Page Builder.************* IMPORTANT **************
Please note that I am showing you this issue on a COMPLETELY clean UNMODIFIED install of the DANTE theme using your imported demo content.
**************************************Problem:
a) I have a page with 4 custom named tabs.
b) Each tab has its own differing content.
c) When you delete the 4th Tab, the content contained within that tab is NOT DELETED but migrated to the other tabs? AFTER clicking the WordPress “Update” page button.I ran a few tests and noticed that this problem ONLY seems to occur when the INDIVIDUAL TABS get a custom user defined name. IE: NOT the default “Tab 1″, Tab 2” etc …
You can see this issue by logging in to the admin (details supplied) and go to the page named “Tabs Delete Issue”. Once you are looking at the page in the admin – Delete the 4th Tab, then click “Update”. You will notice the content from the 4th Tab is now contained within the first 3 Tabs? This unwanted content then has to be manually deleted, which in a lot of pages is very time consuming!
I need to prevent this from happening.
Many thanks in advance ๐
July 27, 2015 at 1:56 pm #198124Hi,
Made some modifications on your site.
Can you clear your browser cache and try again to check if it’s all fine?-Rui
July 27, 2015 at 2:03 pm #198126Hi,
Just realized now that you are not using yet the latest version. That version already has this Tabs deletion fixed.
-Rui
July 27, 2015 at 2:04 pm #198127Hi Rui,
Great! that seems to have solved the problem. Thanks ๐Whats the MODIFICATION I need to apply to my LIVE site?
Thanks
July 27, 2015 at 2:07 pm #198129Check my latest reply, if you update to the latest version this won’t happen.
If you don’t want to upgrade the live site, let me know so I can provide you the changes.-Rui
July 27, 2015 at 2:11 pm #198133Hi Rui,
thats great!Can you provide me with the MODS I may NOT upgrade to the latest version YET.
Cheers ๐
July 27, 2015 at 2:51 pm #198166In that case you can copy the file page-builder.js located at Dante/swift-framework/page-builder/assets/js to the same place in the production server.
I changed this jQuery function
jQuery('.ui-tabs-nav .delete_tab').click( function() { var tab_name = jQuery(this).parent().text(), tab_pos = jQuery(this).closest('li').index(), alt_tab_pos = tab_pos + 1;; var answer = confirm ("If you'd like to delete the '"+tab_name+"' tab, press OK. If you want to return, press Cancel."); if ( answer ) { tab_id = $tabs.find( '.ui-tabs-nav li:eq(' + tab_pos + ')' ).attr( 'aria-controls' ); $tabs.find('.ui-tabs-nav li:eq('+tab_pos+')').remove(); if ($tabs.closest('.spb_sortable').hasClass('spb_tour')) { $tabs.find('#tab-'+alt_tab_pos).remove(); $tabs.find('#tab-slide-'+alt_tab_pos).remove(); } else { $tabs.find( '#' + tab_id ).remove(); $tabs.find( '#tab-' + tab_id ).remove(); } // $tabs.tabs('refresh'); save_spb_html(); } return false; });
-Rui
July 27, 2015 at 2:52 pm #198168Thanks very much Rui ๐
July 27, 2015 at 3:37 pm #198183No problem. Glad I could help.
-Rui -
Posted in: Dante
You must be logged in and have valid license to reply to this topic.