the answer for all question about Oxygen Builder plugin and WordPress

Hey! I have a one pager with multiple sections, just one section includes two se


Hey! I have a one pager with multiple sections, just one section includes two sections which scroll horizontal. Afterwards they scroll normal (vertical) again. Each section has a button to scroll to the next one, which works well with the “smooth scroll to hash links” feature.
How can I make the button in the section that scrolls horizontal, scroll to the right section instead of down?

I think this is the code for the smooth scroll. How would I need to edit this? Thanks a lot!

function(t) {
if (jQuery(t.target).closest(‘.wc-tabs’).length > 0) {
return
}
if (jQuery(this).is(‘[href=”#”]’) || jQuery(this).is(‘[href=”#0″]’)) {
return
};
if (location.pathname.replace(/^//, “”) == this.pathname.replace(/^//, “”) && location.hostname == this.hostname) {
var e = jQuery(this.hash);
(e = e.length ? e : jQuery(“[name=” + this.hash.slice(1) + “]”)).length && (t.preventDefault(), jQuery(“html, body”).animate({
scrollTop: e.offset().top – 0
}, 1000))
}
}


Source

Leave A Reply

Your email address will not be published.

Oxyrealm Docs