Tagged: x
-
AuthorPosts
-
August 31, 2016 at 12:45 pm #1155481
chugginnParticipantI’d like to link to an accordion item from a different page. Not only would I like the link to anchor to the item, but I’d like the accordion to expand as well. I found this thread which accomplishes the task but on an older version of X. From that thread, I found this newer thread but it does not discuss the issue of the accordion. Thanks in advance!
August 31, 2016 at 1:40 pm #1155535
RupokMemberHi there,
The suggestion of first thread should still work. Please try that and let us know.
Thanks!
August 31, 2016 at 7:12 pm #1155914
chugginnParticipantThis reply has been marked as private.August 31, 2016 at 10:15 pm #1156198
Rue NelModeratorHello There,
Thank you for the information. To resolve this issue, please add the following JS code in the customizer, Appearance > Customize > Custom > Javascript
(function($){ $(window).on('load', function(){ var pageAddress = window.location.hash; if ( pageAddress || pageAddress != '' ) { console.log(pageAddress); var navbar = $('.x-navbar').outerHeight(); var yloc = $(pageAddress).offset().top - 160; console.log($(pageAddress).offset().top); console.log('tab: ' + pageAddress + ', yloc: ' + yloc); $(pageAddress + ' .x-accordion-toggle').trigger('click'); $('html, body').animate({ scrollTop: yloc }, 850, 'easeInOutExpo'); } }); })(jQuery);Please let us know if this works out for you. Thank you.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1155481 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
