This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery(document).ready(function($) { | |
| $('#%%ELEMENT_ID%%').find('.oxy-header-search_search-field').attr( "value", "" ); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .oxy-off-canvas .offcanvas-inner { | |
| -ms-transform: none; | |
| transform: none; | |
| -webkit-transform: none; | |
| visibility: hidden; | |
| opacity: 0; | |
| -webkit-transition: all .5s cubic-bezier(0.77,0,0.175,1); | |
| -o-transition: all .5s cubic-bezier(0.77,0,0.175,1); | |
| transition: all .5s cubic-bezier(0.77,0,0.175,1); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Make sure to change the ID to the ID of the carousel builder. | |
| (or if multiple of use a class) | |
| Also, replace .oxy-post with the class of the cell. For eg, if using repeater, use '.ct-dynamic-list > .ct-div-block' | |
| or if using Woocommerce use.. 'ul.products .product' | |
| */ | |
| #-carousel-builder-372-6 .flickity-slider { | |
| transform: none !important; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery(document).ready(function($) { | |
| // open the accordion if hash link | |
| var hash = window.location.hash; | |
| if (hash) { | |
| var element = $(hash); | |
| setTimeout(function() { | |
| // Only if element is found and is part of a Pro Accordion item |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| With this you can customise the ID of the accordion in dynamic mode.. say it's #pricing-faq | |
| Then to link to the 3rd item in that accordion, it would be example.com/#pricing-faq-3 | |
| Change the 1000ms, to whatever delay you need for opening the accordion and scrolling | |
| */ | |
| jQuery(document).ready(function($) { | |
| var hash = window.location.hash.substr(1); | |
| if (hash !== '') { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Change ID to your component */ | |
| .oxy-header-search { | |
| position: relative; | |
| width: 200px; | |
| } | |
| #-header-search-163-271 .oxy-header-search_form { | |
| position: absolute; | |
| width: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery(document).ready(function($) { | |
| let loadMoreSelector = '.load-more'; // change to load more button selector | |
| if (!$('.oxy-infinite-scroller').find('.next').length) { | |
| $(loadMoreSelector).hide(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery(document).ready(function($) { | |
| // Change these selectors to match the class or ID of your offcanvas elements | |
| let mainOffcanvas = '.main-offcanvas', | |
| secondOffcanvas = '.second-offcanvas'; | |
| // Make sure second offcanvas is closed | |
| $(mainOffcanvas).find('a[href*=\\#]').not(".menu-item-has-children > a").on('click', function(e) { | |
| e.stopPropagation(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.querySelector('#%%ELEMENT_ID%% vime-player').addEventListener('vPlaybackReady', (event) => { | |
| const embed = document.querySelector('#%%ELEMENT_ID%% vime-embed'); | |
| // Don't remove the enablejsapi=1 as the player needs it | |
| embed.params = 'enablejsapi=1&controls=0'; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery(document).ready(function($) { | |
| var myflkty = Flickity.data('.flickity-enabled'); // get flickity | |
| $( ".acwp-switcher" ).on( "click", function() {. // listen for clicking the font size switches | |
| setTimeout(function() { | |
| myflkty.resize(); // wait 100ms, then resize the carousel | |
| }, 100); | |
| }); | |
| }); |