-
AuthorPosts
-
April 7, 2015 at 9:21 pm #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?
April 8, 2015 at 10:08 pm #425624Hi 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,
YigitApril 8, 2015 at 10:29 pm #425629Yigit,
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.
April 8, 2015 at 11:09 pm #425640Hey!
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!
YigitApril 9, 2015 at 6:04 pm #426114Awesome! Thanks Yigit!
April 10, 2015 at 6:43 am #426382September 4, 2015 at 12:59 pm #498302Hello everyone,
After making some updates, this code doesn’t seem to work now. Any ideas?
September 4, 2015 at 1:03 pm #498309Hi!
@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!
YigitSeptember 4, 2015 at 1:49 pm #498360below 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.
September 4, 2015 at 1:55 pm #498373Hey!
“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,
YigitSeptember 4, 2015 at 2:04 pm #498382sorry. see below.
September 7, 2015 at 12:17 pm #499185Hi!
@forever_dj Do you mind creating a temporary admin login and posting it here privately? Code works fine on my local installation.Cheers!
YigitSeptember 8, 2015 at 9:14 am #499730@yigit check the private box below.
September 8, 2015 at 2:29 pm #499879Hi!
Can you please try de-activating all active plugins and check if that helps?
Best regards,
YigitSeptember 8, 2015 at 2:52 pm #499897hi,
I deactivated all the plugins, but nothing has changed.
September 8, 2015 at 2:55 pm #499903Maybe this is a clue to fixing this issue. My german colleague has his wordpress set to German and he can see the “Alle” tag.
??September 9, 2015 at 12:16 pm #500330Hey!
I checked your website and can’t see “all/alle” tag. Could you remove it? clear browser cache and refresh a few times.
Cheers!
AndySeptember 11, 2015 at 9:40 am #501497Hi,
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.
September 14, 2015 at 11:49 am #502626Hi!
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!
AndySeptember 14, 2015 at 2:55 pm #502775At 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.
September 15, 2015 at 5:15 pm #503521Hi!
I can’t see any “alle/all” tag on the screenshots you have provided. Can you highlight what you mean please?
Cheers!
AndyOctober 4, 2017 at 12:15 pm #860097Hello,
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?October 4, 2017 at 6:10 pm #860251Hi techielab,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
VictoriaOctober 4, 2017 at 6:19 pm #860258Hello
Thank you for your reply. Please check on private!
October 9, 2017 at 6:37 am #861755Hi,
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,
IsmaelOctober 9, 2017 at 9:54 am #861800Dear Ismael,
Thank you but adding your code doesnt seem to change anything. Can you check from your side?
Link in privateOctober 9, 2017 at 12:59 pm #861882Hi 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,
VictoriaOctober 9, 2017 at 1:08 pm #861889Hello,
Please check private!
October 10, 2017 at 7:55 am #862331Hi,
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,
IsmaelOctober 10, 2017 at 8:31 am #862355Hello,
Yes i added it on the functions.php of the enfold them, but with FTP. On Private you can see the code I added:
-
AuthorPosts
- The topic ‘Accordion – remove the "All" sorting tag?’ is closed to new replies.