Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #935533

    Hi Enfold Team,

    I have used the accordion element for my FAQ section. Page link below in private content.
    To sort the various toggles I have added different sorting values. However, by default the first sort that shows on the webpage is “ALL”. I would want the user to see the “Setting Tests” toggle values first and not “ALL”. ALL should come in the end.

    The priority of the sorting tags should be “Setting Tests>Pricing>Others>All
    Can you please suggest what can I do to achieve the above.

    Thanks

    #935935

    Hey NR1234,

    Here is the code you can put in your funtions.php

    
    function accordion_toggle_reverse() {
    ?>
    	<script type="text/javascript">
    		(function($) {
    			$(window).load(function() {
    				var reversed = jQuery('.togglecontainer.avia-builder-el-133 .taglist').children().get().reverse();
    				reversed.shift();
    				jQuery('.togglecontainer.avia-builder-el-133 .taglist').html(reversed);	
    				});
    			});
    		})(jQuery);
    	</script>
    <?php
    }
    add_action('wp_footer', 'accordion_toggle_reverse');
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    • This reply was modified 6 years, 5 months ago by Victoria.
    #935976

    Hi Victoria,

    Thanks for your reply.

    I pasted the code in functions.php at the very end of the file and saved it. However on refreshing the page it still does not change the default toggle which is still opening as “All” and not “Setting Tests” as I wanted.

    Could you please help on how I could achieve this.

    Thanks

    Garima

    #936032

    Hi Garima,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #936057

    Hi Victoria,

    Please share your email ID for me to be able to give admin access.

    Thanks

    Garima

    #936231

    Hi,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( do be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create a admin user and post the login credentials in the “private data” field.

    Best regards,
    Basilis

    #936250

    Hi Basilis,
    Please find the temporary login created in the private message tab.
    Thanks
    Garima

    #936426

    Hi Garima,

    There was an extra symbol there. It is working now. Please check.

    Best regards,
    Victoria

    #936465

    Hi Victoria,

    Thanks for your reply. While the sorting order is changed the default sort that is open is still “All”. I would like it to open at Setting Tests for the current page. Also, If I would like to change it the default open sort to some other category how do I do it?

    Thanks for your support.

    Regards
    Garima

    #936737

    Hi,

    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Basilis

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.