This topic has 10 replies, 2 voices, and was last updated 7 years, 1 months ago ago by Rose Tyler
How i can transfer accordion section bellow heading accordion section
check screenshot pls
https://prnt.sc/gwurv4
Hello,
It’s possible to implement only by additional customization. If you need help with additional customization contact WPKraken team.
Regards
Ok. So how i can hide first accordion block description? I need show desc after click
Hello,
It is also requested additional customization in files. Customizations are not covered under our Support Policy.
Regards
Why? i think it is 1 string of code. It is very important for me! Help me pls.
You need to create etheme-child.js file in your child theme with this content https://gyazo.com/39fba01e17a701773619e168f3fd8e83:
jQuery(document).ready(function(){
var tabs = jQuery('.tabs.accordion');
jQuery.each( jQuery( '.tabs.accordion .tabs-nav li' ), function(index, value) {
var thisTab = jQuery('.tabs.accordion .tab-content').eq(index).remove();
tabs.find(this).after(thisTab);
});
});
then add this code in function.php file of child theme https://gyazo.com/122443367147bb5b3ce72604183e13c8:
function theme_enqueue_scripts() {
wp_enqueue_script( 'child-theme', get_stylesheet_directory_uri() . '/etheme-child.js', array( 'jquery' ), false, true );
}
add_action('wp_enqueue_scripts', 'theme_enqueue_scripts');
Regards
Thanks. So how i can hide first accordion block? i need show accordion description after click. Thank you
You’re welcome!
Change content in etheme-child.js file to:
jQuery(document).ready(function(){
var tabs = jQuery('.tabs.accordion');
jQuery.each( jQuery( '.tabs.accordion .tabs-nav li' ), function(index, value) {
var thisTab = jQuery('.tabs.accordion .tab-content').eq(index).remove();
tabs.find(this).after(thisTab);
});
tabs.find('.tab-title').first().removeClass('opened').parent().next().hide();
});
Regards
you are the best!
Hello,
You’re welcome!
Regards
The issue related to '‘How i can transfer accordion section bellow heading accordion section’' has been successfully resolved, and the topic is now closed for further responses