Tagged: ,

Viewing 30 posts - 1 through 30 (of 35 total)
  • Author
    Posts
  • #424953

    A search turned up nothing. I’ve got a giant list of FAQ’s with different sorting tags. Is there a way to remove the “All” sorting tag? I’d like to prevent someone from seeing the entire list at once.

    Possible?

    #425624

    Hi Fongemie!

    Can you please post the link to your website?
    Just to make sure that we are on the same page, you have an accordion element with sorting with elements such as “All / Bikes / Cars” etc. You would like to remove “All” tag and show only “Bikes” only at first and so on?

    Regards,
    Yigit

    #425629

    Yigit,

    I don’t have a link (developing on localhost). I haven’t even built the Accordion yet.

    Yes, it would be the Sortable Accordion as seen on this page:
    http://kriesi.at/themes/enfold/shortcodes/toggles-accordions/

    In the above example with All / Installation / Misc / Pre Sales / Pricing, I’d like to remove the “All” option. My list would be too big if All were shown at once.

    #425640

    Hey!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    a[data-tag="{All}"] {
      display: none;
    }
    .togglecontainer .tag-seperator:nth-child(2) {
      display: none;
    }

    then add following code to Functions.php file in Appearance > Editor

    
    function add_custom_tooltip(){
    ?>
    <script>
    jQuery(window).ready(function(){
     setTimeout(function() {
    jQuery('a[data-tag="{All}"]').removeClass('activeFilter');
    jQuery('a[data-tag="{ex}"]').addClass('activeFilter');
    }, 1500);
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_tooltip');

    Cheers!
    Yigit

    #426114

    Awesome! Thanks Yigit!

    #426382

    Hey!

    Glad we could help :)

    Regards,
    Rikard

    #498302

    Hello everyone,

    After making some updates, this code doesn’t seem to work now. Any ideas?

    #498309

    Hi!


    @forever_dj
    Can you please post the link to your page and point out the changes you would like to make once again so we can provide you another code?

    Cheers!
    Yigit

    #498360

    below is the link to our site.

    for your information:
    – the “* Top 10” is a sorting tag and the old code use to show just these options.
    – after the updates, it now shows all questions again. we don’t want this, as it’s too much information in one go.

    Thanks inadvance.

    #498373

    Hey!

    “THIS CONTENT IS RESTRICTED TO SITE MEMBERS
    IF YOU ARE AN EXISTING USER, PLEASE LOG IN. NEW USERS MAY REGISTER BELOW.”
    Can you please post a login as well?

    Best regards,
    Yigit

    #498382

    sorry. see below.

    #499185

    Hi!


    @forever_dj
    Do you mind creating a temporary admin login and posting it here privately? Code works fine on my local installation.

    Cheers!
    Yigit

    #499730

    @yigit check the private box below.

    #499879

    Hi!

    Can you please try de-activating all active plugins and check if that helps?

    Best regards,
    Yigit

    #499897

    hi,

    I deactivated all the plugins, but nothing has changed.

    #499903

    Maybe this is a clue to fixing this issue. My german colleague has his wordpress set to German and he can see the “Alle” tag.
    ??

    #500330

    Hey!

    I checked your website and can’t see “all/alle” tag. Could you remove it? clear browser cache and refresh a few times.

    Cheers!
    Andy

    #501497

    Hi,

    I’ve tried clearing the browser cache and refreshed many times. Is there anything else i can try?

    Also, i haven’t been able to remove the “alle” from the german language site.

    thanks for your help.

    #502626

    Hi!

    I checked again the website you have provided here but cannot see any “alle” tage. Please provide us a precise link where we can see the issue.

    Cheers!
    Andy

    #502775

    At the moment my issue is still with the code from this post. I will start a new request for the german language issue at a later stage.

    My accordion still shows all FAQs, whereas before it showed the FAQs from the next sorting tag available.

    I’ve included a dropbox link to some screenshots of what i mean.

    #503521

    Hi!

    I can’t see any “alle/all” tag on the screenshots you have provided. Can you highlight what you mean please?

    Cheers!
    Andy

    #860097

    Hello,

    I added this code and it worked, however can you let me know what i should do if i want to open by default a category?
    Lets say that i want category “Bikes” open by default, how can i do that?

    #860251

    Hi techielab,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #860258

    Hello

    Thank you for your reply. Please check on private!

    #861755

    Hi,

    Thank you for the info.

    Please add this code in the functions.php file.

    // custom script
    add_action( 'wp_footer', 'ava_custom_script' );
    function ava_custom_script() {
    ?>
    <script type="text/javascript">
    (function($) {
      $('a[data-tag="{Pre Sales}"]').trigger('click');
    })(jQuery);
    </script>
    <?php
    }

    Remove browser cache or hard refresh before checking the page.

    Best regards,
    Ismael

    #861800

    Dear Ismael,

    Thank you but adding your code doesnt seem to change anything. Can you check from your side?
    Link in private

    #861882

    Hi techielab,

    When I put this code in the console it works, triggers click and opens “pre sales”.
    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

    #861889

    Hello,

    Please check private!

    #862331

    Hi,

    The theme editor panel is not accessible so we can’t check the code. Did you add the code in the functions.php file?

    Best regards,
    Ismael

    #862355

    Hello,

    Yes i added it on the functions.php of the enfold them, but with FTP. On Private you can see the code I added:

Viewing 30 posts - 1 through 30 (of 35 total)
  • The topic ‘Accordion – remove the "All" sorting tag?’ is closed to new replies.