Tagged: x
-
AuthorPosts
-
March 31, 2016 at 3:14 pm #861388
MrKParticipantHi guys,
our custom JVS code you gave us to link directly to a tab isn’t working.jQuery(function($){ $(window).load(function() { var selector = $('.x-nav-tabs .x-nav-tabs-item a[href="#' + location.href.split("#").slice(-1)[0] + '"], .x-accordion-toggle a[href="#' + location.href.split("#").slice(-1)[0] + '"]'); jump_to_tab( $, selector ); }); $('.enable_jump_to').off('touchstart click'); $('.enable_jump_to').on('touchstart click', function(e){ e.preventDefault(); var $this = $(this), selector = $('.x-nav-tabs .x-nav-tabs-item a[href="' + $this.attr('data-jump-target') + '"], .x-accordion-toggle a[href="' + $this.attr('data-jump-target') + '"]'); jump_to_tab( $, selector ); }); }); function jump_to_tab($, tab_nav) { if( tab_nav.length >= 1 ) { $( tab_nav ).click(); $('html, body').animate({ scrollTop: tab_nav.offset().top - ( $('.x-navbar').height() + 50 ) }, 700); } }Maybe something changed due to the latest update?
With this code you provided us we were able to do something like this: http://www.ourdomain.com/page-with-tabs/#tab-4
and jump directly to tab4
March 31, 2016 at 11:56 pm #862014
Rue NelModeratorHello There,
Thanks for writing in! To assist you better with this issue, would you mind providing us the url of your site with login credentials so we can take a closer look? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thank you.
April 1, 2016 at 2:36 am #862165
MrKParticipantThis reply has been marked as private.April 1, 2016 at 5:21 am #862360
MrKParticipantThis reply has been marked as private.April 1, 2016 at 5:59 am #862399
ZeshanMemberHi there,
I’ve checked your site and Cornerstone is updated but not the X theme. Please confirm that you are fully updated. (Theme and Plugins)
You can find the latest version numbers here: (https://theme.co/changelog/) Then you can compare them to what’s installed on your site.
If you find anything to be out of date, you can review our update guide.
Thank you!
April 1, 2016 at 6:28 am #862433
MrKParticipantHi guys update done please check now
thanks
April 1, 2016 at 4:20 pm #863108
RadModeratorHi there,
I checked and not able to confirm it. Does the issue present when logged in? I tried logging in but it won’t let me, with this message.
Your account is awaiting e-mail verification.Please check and let me know. Thanks!
April 2, 2016 at 1:48 am #863535
MrKParticipantDone, account is working.
Yes you have to login and click POST YOUR OWN button as you’ll see links are not working.thanks
April 2, 2016 at 8:09 pm #864178
Rue NelModeratorHello There,
We have made some changes with the tab content elements and this is why the given code no longer works out. Please have your code updated and make use of this code instead:
(function($){ var tabnav = location.href.split("#tab-").slice(-1)[0]; if ( tabnav || tabnav != '' ) { console.log(tabnav); var navbar = $('.x-navbar').outerHeight(); var yloc = $('.x-tab-content [data-cs-tab-index="' + tabnav + '"]').offset().top; console.log($('.x-tab-content [data-cs-tab-index="' + tabnav + '"]').offset().top); console.log('tab: ' + tabnav + ', yloc: ' + yloc); $('.x-nav-tabs .x-nav-tabs-item [data-cs-tab-toggle="' + tabnav + '"]').trigger('click'); $('html, body').animate({ scrollTop: yloc }, 850, 'easeInOutExpo'); } })(jQuery);Please let us know how it goes.
April 3, 2016 at 3:04 am #864466
MrKParticipantHi guys thanks for the help.
No is not working with the new code.April 3, 2016 at 6:05 pm #865100
RadModeratorHi there,
Please change it into this,
(function($){ var tabnav = location.href.split("#tab-").slice(-1)[0]; if ( tabnav || tabnav != '' ) { $( document ).ready ( function() { console.log(tabnav); var navbar = $('.x-navbar').outerHeight(); $('.x-nav-tabs .x-nav-tabs-item [data-cs-tab-toggle="' + tabnav + '"]').trigger('click'); setTimeout ( function() { //Let's trigger the scroll animation just after the content is displayed. var yloc = $('.x-tab-content [data-cs-tab-index="' + tabnav + '"]').offset().top; console.log($('.x-tab-content [data-cs-tab-index="' + tabnav + '"]').offset().top); console.log('tab: ' + tabnav + ', yloc: ' + yloc); $('html, body').animate({ scrollTop: yloc }, 850, 'easeInOutExpo'); }, 750 ); } ); } })(jQuery);Thanks!
April 4, 2016 at 2:26 am #865528
MrKParticipantThis works fine thanks guys!
Just another question, my css for each tab was something like this:
#tab-1 .template4 .ap-pro-form-field-wrapper .label-wrap { background-image: -webkit-linear-gradient(left, #B5371B 0%, #B5371B 100%); }But now is not working anymore, I can still style my css for each form?
thanks
April 4, 2016 at 5:59 am #865724
ChristopherModeratorHi there,
Background image is displaying fine, please see the attachment.
Would you check again and confirm that?
Thanks.
April 4, 2016 at 7:13 am #865806
MrKParticipantAs you can see form’s headers bars are all black, before where each one different color.
#tab-1 isn’t working for css anymore
thanks
April 4, 2016 at 9:34 am #866014
Paul RModeratorHi,
To change the header bars color, you can add this under Custom > CSS in the Customizer.
.template4 .ap-pro-form-field-wrapper .label-wrap, .template4 .ap-form-field-wrapper .label-wrap{ background-image: none; background-color:red; }Change red with the color that you like.
Hope that helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-861388 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
