pkwebtec
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7 Database Addon - CFDB7] Save only marked inputsA must to add. That it will be supper options. If plugin will get options to save only filed defined in Address mail section in konfiguration Forms in Contact Forms 7.
This would keep the consistency of what is sent by e-mail and stored in the database.
This solution for me will be perfect right now ??Tis code i add to functions.php to previos and now all code look like that: if ( ! function_exists( 'yith_wcan_fix_filtr_button_event' ) ) { ? ? function yith_wcan_fix_filtr_button_event() { ? ? ? ? $js = " ? ? ? ? jQuery( function( $ ){ ? ? ? ? ? ? function yith_wcan_fix_filtr_button_event (){ ? ? ? ? ? ? ? ? // Firtwonie Yith ? ? ? ? ? ? ? ? $( '#wbt-filtr-rwd' ).on( 'click', function(){ ? ? ? ? ? ? ? ? ? ? $( this ).toggleClass( 'wbt-active-filtr' ); //ico_filtr ? ? ? ? ? ? ? ? ? ? $( '#wbt-sidebar' ).toggleClass( 'wbt-sidebar-active' ); //filtr_section ? ? ? ? ? ? ? ? ? ? $( '#wbt-body' ).toggleClass( 'wbt-hamburger-active' ); //wbt_body_filtr ? ? ? ? ? ? ? ? } ); ? ? ? ? ? ? ? ? // RWD Menu ? ? ? ? ? ? ? ? $( '#wbt-hamburger' ).on( 'click', function(){ ? ? ? ? ? ? ? ? ? ? $( this ).toggleClass( 'wbt-hamburger-active' ); ? ? ? ? ? ? ? ? ? ? $( '.wbt-more-company' ).toggleClass( 'wbt-active' ); ? ? ? ? ? ? ? ? ? ? $( '#wbt-rwd-main-menu' ).toggleClass( 'wbt-active-menu' ); ? ? ? ? ? ? ? ? } ); ? ? ? ? ? ? ? ? // czytaj wi?cej - opis kategorii ? ? ? ? ? ? ? ? $( '#wbt-read-more-category' ).on( 'click', function(){ ? ? ? ? ? ? ? ? ? ? $( this ).toggleClass( 'wbt-active' ); ? ? ? ? ? ? ? ? ? ? $( '.term-description' ).toggleClass( 'wbt-active' ); ? ? ? ? ? ? ? ? } ); ? ? ? ? ? ? ? ? // czytaj wi?cej o firie - w stopce ? ? ? ? ? ? ? ? $( '.wbt-show-more' ).on( 'click', function(){ ? ? ? ? ? ? ? ? ? ? $( this ).toggleClass( 'wbt-active' ); ? ? ? ? ? ? ? ? ? ? $( '.wbt-more-company' ).toggleClass( 'wbt-active' ); ? ? ? ? ? ? ? ? } ); ? ? ? ? ? ? ? ? $('.wbt-blog-home').slick({ ? ? ? ? ? ? ? ? ? ? touchMove: true, ? ? ? ? ? ? ? ? ? ? accessibility: true, ? ? ? ? ? ? ? ? ? ? dots: false, ? ? ? ? ? ? ? ? ? ? arrows: true, ? ? ? ? ? ? ? ? ? ? infinite: true, ? ? ? ? ? ? ? ? ? ? pauseOnHover: true, ? ? ? ? ? ? ? ? ? ? autoplay: false, ? ? ? ? ? ? ? ? ? ? speed: 1000, ? ? ? ? ? ? ? ? ? ? slidesToShow: 3, ? ? ? ? ? ? ? ? ? ? slidesToScroll: 1, ? ? ? ? ? ? ? ? ? ? responsive: [ ? ? ? ? ? ? ? ? ? ? ? ? { ? ? ? ? ? ? ? ? ? ? ? ? ? breakpoint: 1023, ? ? ? ? ? ? ? ? ? ? ? ? ? settings: { ? ? ? ? ? ? ? ? ? ? ? ? ? ? slidesToShow: 2, ? ? ? ? ? ? ? ? ? ? ? ? ? ? dots: true, ? ? ? ? ? ? ? ? ? ? ? ? ? ? arrows: false ? ? ? ? ? ? ? ? ? ? ? ? ? } ? ? ? ? ? ? ? ? ? ? ? ? }, ? ? ? ? ? ? ? ? ? ? ? ? { ? ? ? ? ? ? ? ? ? ? ? ? ? breakpoint: 767, ? ? ? ? ? ? ? ? ? ? ? ? ? settings: { ? ? ? ? ? ? ? ? ? ? ? ? ? ? slidesToShow: 1, ? ? ? ? ? ? ? ? ? ? ? ? ? ? dots: true, ? ? ? ? ? ? ? ? ? ? ? ? ? ? arrows: false ? ? ? ? ? ? ? ? ? ? ? ? ? } ? ? ? ? ? ? ? ? ? ? ? ? } ? ? ? ? ? ? ? ? ? ? ? ] ? ? ? ? ? ? ? ? ? }); ? ? ? ? ? ? } ? ? ? ? ? ? $( document ).on( 'yith-wcan-ajax-filtered', yith_wcan_fix_filtr_button_event ); ? ? ? ? } ); ? ? ? ? "; ? ? ? ? wp_add_inline_script( 'yith-wcan-shortcodes', $js ); ? ? } ? ? add_action( 'wp_enqueue_scripts', 'yith_wcan_fix_filtr_button_event', 20 ); }
And it work strange. After every second change filter Yith Blog section works and not ??
I add how look slick code:
$('.wbt-blog-home').slick({ touchMove: true, accessibility: true, dots: false, arrows: true, infinite: true, pauseOnHover: true, autoplay: false, speed: 1000, slidesToShow: 3, slidesToScroll: 1, responsive: [ { breakpoint: 1023, settings: { slidesToShow: 2, dots: true, arrows: false } }, { breakpoint: 767, settings: { slidesToShow: 1, dots: true, arrows: false } } ] });
Hi,
this cod helped us to solve all problems wher we use JS with onclick function.
But we have still problem with slick carusel library. After use Yith filter slick is broke downe. We use slick in section<aside id="blog-relatedposts">... <ul class="wbt-blog-home...">
for example hire: https://madens.pl/oferta/siatki-chirurgiczne/
I will be Glad if you could help to solv this last problem. Belowe attach full code used:
if ( ! function_exists( 'yith_wcan_fix_filtr_button_event' ) ) { function yith_wcan_fix_filtr_button_event() { $js = " jQuery( function( $ ){ function yith_wcan_fix_filtr_button_event (){ // Firtwonie Yith $( '#wbt-filtr-rwd' ).on( 'click', function(){ $( this ).toggleClass( 'wbt-active-filtr' ); //ico_filtr $( '#wbt-sidebar' ).toggleClass( 'wbt-sidebar-active' ); //filtr_section $( '#wbt-body' ).toggleClass( 'wbt-hamburger-active' ); //wbt_body_filtr } ); // RWD Menu $( '#wbt-hamburger' ).on( 'click', function(){ $( this ).toggleClass( 'wbt-hamburger-active' ); $( '.wbt-more-company' ).toggleClass( 'wbt-active' ); $( '#wbt-rwd-main-menu' ).toggleClass( 'wbt-active-menu' ); } ); // czytaj wi?cej - opis kategorii $( '#wbt-read-more-category' ).on( 'click', function(){ $( this ).toggleClass( 'wbt-active' ); $( '.term-description' ).toggleClass( 'wbt-active' ); } ); // czytaj wi?cej o firie - w stopce $( '.wbt-show-more' ).on( 'click', function(){ $( this ).toggleClass( 'wbt-active' ); $( '.wbt-more-company' ).toggleClass( 'wbt-active' ); } ); } $( document ).on( 'yith-wcan-ajax-filtered', yith_wcan_fix_filtr_button_event ); } ); "; wp_add_inline_script( 'yith-wcan-shortcodes', $js ); } add_action( 'wp_enqueue_scripts', 'yith_wcan_fix_filtr_button_event', 20 ); }
I ought to add that only this code we use in function. We removed this code like belowe. And “Yith ajax filter” have been add by widget normalny not by shortcode.
if( ! function_exists( ‘yith_wcan_content_selector’ ) ){ function yith_wcan_content_selector( $selector ){ $selector = ‘#wbt-woocommerce-content’; return $selector; } add_filter( ‘yith_wcan_content_selector’, ‘yith_wcan_content_selector’ ); }
That’s true. But only when using Yith ajax filter product other files with js scripts stop working at all.
I had hopp that you would look at thet and maby explain what can by a cause.
It ough to solve the problems in future for other. Isn’t itI will be very glade for tips.
Filtering works, but the button named “Filtry” is blocked and you can’t reopen the sidebar with filters after using filter before. It’s actualy the most important issue to resolve.
I have to add that it works like it turn off other java script code. Becouse apart from hiddens sidebar Burger menu dont work.
Thank you. I writ new topic in correct category.
It is possible to move this topic to suggested category?
I would not like make a mess. I’m completly new on that support formum, so pleas forgiv for that question ??
If it is possible pleas write how ??