Welcome, Guest

Added code for first FAQ to be open
(1 viewing) (1) Guest
  • Page:
  • 1


Posting guidelines
To help us help you faster please ensure that you include the following details in your forum post:
- A link to your site (you can create a support ticket if you need to provide us with confidential information.
- Please ensure that css and javascript compression is disabled in your template settings.
- Please ensure that you have checked the change log and your template and extension are up to date.
- Please search the forum to see if your answer has already been asked before.
- Please ensure that you only post your request in either the forum or ticket system but not both.
- Please only post in an existing thread if your issue is exactly the same as the one being discussed in the thread.

TOPIC: Added code for first FAQ to be open

Added code for first FAQ to be open 2 years, 10 months ago #30882

Hey guys,

I hacked the code a bit to get the first Faq to be open. Seems to be working fine, thought I'd share. Please let me know if this could have any potential repercussions.

I added the lines around line 56 of tmpl/default.php

jQuery(this).find('.faqtogglerdiv<?php echo $id ?>:first').next('div').slideToggle();
jQuery(this).find('.faqtogglerdiv<?php echo $id ?> a.faqtoggler:first').toggleClass("open");


just above the closing
});
</script>


hope that helps someone, I know there is a cleaner way, just in a hurry.

any suggestions to improve are welcome.
  • cheche
  • OFFLINE
  • 12 Month basic
  • Posts: 15
  • Karma: 0

Re: Added code for first FAQ to be open 2 years, 10 months ago #30900

Hey thanks for posting this

Ill make it a sticky for anyone else that comes along who may want to achieve the same thing.

Cheers Anthony
Creative Unique Minimal Joomla Templates
  • Page:
  • 1
Time to create page: 0.33 seconds