Tagged: ,

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #342648

    Hi, I read in another thread that it was possible to have all toggles open at once using this code:

    .js_active .toggle_wrap {
    display: block;
    position: static;
    visibility: visible;
    left: 0;
    width: auto;
    z-index: 1;
    }

    This code however does not allow me to close any of the toggles. Do you think there’s a possible solution to be able to close some? This to be used for bio’s on resistance-journal.org/editorialboard.

    Thank you, super support!

    #343851

    Hey wieslander!

    Thank you for using Enfold.

    Please add this on functions.php:

    function add_custom_script_3(){
    ?>
    <script>
    (function($){
    $(window).load(function() {
    	var toggler    = $('.toggler');
    	var togglewrap = $(toggler).next();
    	$(toggler).each(function(index, element) {
            $(togglewrap).css({
    			'display'   : 'block',
    			'position'  : 'static',
    			'visibility': 'visible',
    			'width'     : 'auto',
    			'z-index'   : 1,
    		});
    		
    		$(this).addClass('activeTitle');
        });
    });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_script_3', 1);

    The opening of the toggler will be a bit delay but you can now use the accordion like the default element.

    Best regards,
    Ismael

    #345545

    That’s fantastic, Ismael. Thank you so much for your effort (it works).

    May I ask something related? I’ve used a A-Z sorting on this page, but clicking on any of the Sorting Tags closes all toggles. Do you think there’s any chance the toggles could stay open or open anew when you sort? So that the only scenario where they close is when you actually click the minus icon.

    I know I’m asking for a lot of help…

    #346237

    Hi,

    Can you please create us a WordPress administrator account? post it here as a private reply.

    Regards,
    Josue

    #346268

    Certainly, just a second. And thank you for helping!

    #346269
    This reply has been marked as private.
    #346289

    Hey!

    Check it now, i added this to Quick CSS:

    .activeTitle + .toggle_wrap {
        display: block;
        position: static;
        visibility: visible;
        width: auto;
        z-index: 1;
    }

    Best regards,
    Josue

    #346690

    I can’t see any difference from before, Josue, but thank you very much for trying. Maybe it’s not possible.

    #346726

    Hi!

    Try emptying your cache, i’m seeing the expected behavior on my end.

    Regards,
    Josue

    #347056

    Yeah look at that, I spoke too soon! I can’t tell you how grateful I am, Josue and Ismael. You’re really going beyond what support usually do. Thank you so much for helping me and supporting the best theme on the market.

    / Andreas

    #347258

    You are welcome, glad we could help :)

    Regards,
    Josue

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Open all toggles at once (with sorting support)’ is closed to new replies.