Blog

Google Analytics Consent Tracking

User ga('create', 'UA-37352831-1'); ga('require', 'ec'); ga('set', 'currencyCode', ""); // Set tracker currency to Euros. ga('ec:addProduct', { // Provide product details in an productFieldObject. 'id': "95", // Product ID (string). 'name': "", // Product name (string). 'category': "SUN SUBSCRIPTION", // Product category (string). 'price': "", // Product price (currency). 'quantity': 1 // Product quantity (number). }); […]

Remove Required Validation WooCommerce

User we have a required selection in woocommerce product WooCommerce add-on But when we removes required from variant dropdown then var passengerFields = jQuery('.addon_fn_passenger_jacket, .addon_fn_passenger_gloves, .addon_fn_passenger_jet_helmet'); var passengerSelects = passengerFields.find("select"); if (fieldVal == 'rider-with-pillion-passenger-2') { passengerFields.show(); passengerSelects.attr('required', 'required'); // Update data-restrictions attribute passengerSelects.each(function () { var restrictions = jQuery(this).data('restrictions'); if (restrictions) { restrictions.required = "yes"; […]

jQuery Conditional Required Fields

User jQuery(".addon_fn_booking_type select").change(function(){ var fieldVal = jQuery(this).val(); if(fieldVal == 'room-share-3'){ jQuery('.addon_fn_room_share_name').show(); } else { jQuery('.addon_fn_room_share_name').hide(); } if(fieldVal == 'rider-with-pillion-passenger-2'){ jQuery('.addon_fn_passenger_jacket').show(); jQuery('.addon_fn_passenger_gloves').show(); jQuery('.addon_fn_passenger_jet_helmet').show(); } else { jQuery('.addon_fn_passenger_jacket').hide(); jQuery('.addon_fn_passenger_gloves').hide(); jQuery('.addon_fn_passenger_jet_helmet').hide(); } }); remove required from passenger select dropdown when rider-with-pillion-passenger-2 not selected Assistant You can modify your jQuery script to remove the `required` attribute from the passenger-related […]

Page Updates and QA

User I'll send other two pages karrier and blog update tomororrow with QA Correct above sentence Assistant I'll send the other two pages, **Karrier** and **Blog**, for updates tomorrow along with the QA.

Custom Post Type and Taxonomy

User function avada_owlimage_post_type() { $args = array( 'label' => __('Owl Slider Images', 'avada'), 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'supports' => array('title', 'thumbnail'), // Only title & featured image 'menu_icon' => 'dashicons-format-image', ); register_post_type('owl_slider_image', $args); } add_action('init', 'avada_owlimage_post_type'); also add taxonmy image category Assistant Here's how you can add […]

Invalid Taxonomy Fix

User function avada_owlimage_post_type() { $args = array( 'label' => __('Owl Slider Images', 'avada'), 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'supports' => array('title', 'thumbnail'), // Only title & featured image 'menu_icon' => 'dashicons-format-image', ); register_post_type('owl_slider_image', $args); } add_action('init', 'avada_owlimage_post_type',80); function avada_register_image_category_taxonomy() { $args = array( 'label' => __('Image Categories', 'avada'), […]

Invalid Taxonomy Fix Steps

User $categories = get_terms(array( 'taxonomy' => 'owlimgcat', 'hide_empty' => false, )); invalid taxonomy return function avada_owlimage_post_type() { $args = array( 'label' => __('Owl Slider Images', 'avada'), 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'supports' => array('title', 'thumbnail'), // Only title & featured image 'menu_icon' => 'dashicons-format-image', ); register_post_type('owl_slider_image', $args); } […]

Ungültige Taxonomie Fehlerbehebung

User WP_Error Object ( [errors] => Array ( [invalid_taxonomy] => Array ( [0] => Ungültige Taxonomie. ) ) [error_data] => Array ( ) [additional_data:protected] => Array ( ) ) Assistant The `WP_Error` object you are seeing indicates that there is an issue with a taxonomy in your WordPress setup. The specific error message is "Ungültige […]

Owl Carousel Duplicate Slides

User jQuery(document).ready(function($) { var owl2 = jQuery(".owl-carousel-custom"); owl2.owlCarousel({ items: 3.5, margin: 16, autoplay: true, autoplayTimeout: 3000, autoplayHoverPause: true, loop: true, nav: false, // Enable navigation arrows dots: false, // Disable dots responsive: { 0: { items: 1.1, margin: 8 }, 768: { items: 1.1, margin: 8 }, 1024: { items: 3.5 } } }); }); […]

Custom Post Type Creation

User create custom post type to upload feature image only with title thats it Assistant To create a custom post type in WordPress that allows only a title and a featured image, you can add the following code to your theme's `functions.php` file or in a custom plugin: ### Steps: 1. **Register the custom post […]