Support Forum

  • Page:
  • 1

Added code for first FAQ to be open

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

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's Avatar
  • cheche
  • 12 Month basic
  • 15 posts
  • Karma: 0
The administrator has disabled public write access.
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
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers