Hi Shea,
the script is
function elementor_accordion_title() {
if ( is_page( array( 309, 378, 398, 817 ) ) ) { ?>
<script>
jQuery(document).ready(function() {
jQuery( '.elementor-accordion .elementor-tab-title' ).removeClass( 'elementor-active' );
jQuery( '.elementor-accordion .elementor-tab-content' ).css( 'display', 'none' );
});
</script>
<?php }
}
add_action( 'wp_footer', 'elementor_accordion_title', 99 );
I found a solution like that (the opposite I’ve asked for: show only on certain pages):
function elementor_accordion_title() {
if ( is_page( array( 309, 378, 398, 817 ) ) ) { ?>
<script>
jQuery(document).ready(function() {
jQuery( '.elementor-accordion .elementor-tab-title' ).removeClass( 'elementor-active' );
jQuery( '.elementor-accordion .elementor-tab-content' ).css( 'display', 'none' );
});
</script>
<?php }
}
add_action( 'wp_footer', 'elementor_accordion_title', 99 );
This works for me. But from Drupal I know a similar module where I had a option to ?exclude on? or ?show only on? as you have it like ?on Frontend? or ?everywhere?…
Thank you for your reply.
-
This reply was modified 5 years, 10 months ago by
grimbuehler.