Try to replace
$( ':root' ).css( '--primary', to );
with
$( ':root' ).get(0).style.setProperty( '--primary', to );
Related Posts:
- Is it possible to get a theme customizer setting from wp.customize using jquery?
- Customizer – Prefix Class Extension
- Why is an array created in a function hooked to customize register populated when customizer is loaded but not when the front-end is loaded?
- How to add drag and drop functionalities to a div inside option panel
- what does $options = get_option(‘test_theme’); do?
- Illegal string offset in PHP function in via Theme Customizer
- Remove specific javascript when viewing page in Customizer?
- Default Image not showing up in Customizer for WP_Customize_Cropped_Image_Control
- WordPress Customizer – How to save list of checkbox of pages?
- Partial refresh in WordPress live preview
- Retrieve POST data from AJAX call
- WordPress Ajax always returns a 404 error
- reason of splitting theme files to multiple files
- problem with ajax and the path to the php page
- WordPress customizer: load controls in a custom div
- How to use wp_localize_script in a WordPress page other than functions.php?
- Is there a reason why my wordpress PHP page isn’t loading into my PHP template
- How to stop loading multiple copies of jquery
- Update WordPress Custom Field with AJAX on cached page
- Targeting single page with JS
- JS completely stopped loading but Files are found
- Customizer Show/Hide Logo and Site Title
- How to get custom image size for image uploaded in Customizer
- Click loads template via ajax
- How to retrieve the content (with a specific ID) via ajax by clicking a link tag
- Loading jQuery in the footer after removing jQuery migrate?
- Returning a value from a PHP page
- Sending jsPDF documents to the server
- wp_insert_post() is returning the correct post ID, no failure, but the post content does not get updated
- Set WordPress Default Template
- js file in root loading without
- WooCommerce – Reset quantity input field when variation changes
- How do I get current page ID in WordPress customizer file?
- Checking for new message using AJAX and PHP. Server overload?
- jQuery not defined
- Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
- From where the header-text can be changed in WordPress custom header?
- Pass Category Name, Description and Photo into variables to pass to jQuery
- Adding Custom Slider
- Change “add to cart” button color based on Woocommerce product category [closed]
- Ajax request returns ‘Array’. How to output the actual results?
- Ajax load more button for comments wordpress
- Slick + PHP + ACF + JQuery slide reveal not working
- Customizer: Category Select Sanitize
- Show success or error messages in Ajax response to WordPress custom registration form
- How to add a Custom Mailchimp AJAX Newsletter Subscribe Form
- Skt full width basic slideshow problem
- Fancybox type popup window that’s not an iframe
- Form Security: nonce vs. jQuery
- WordPress Options Page Theory Question
- Pull GetOption() variable into jQuery dynamically created html
- Royalty-Free Sliders used in theme development
- Error – ‘create_function is deprecated’ [closed]
- How to check if a Customizer setting is set?
- Double jQuery loaded
- Trying to prepend a Hashtag symbol to the_tags links [closed]
- Javascript not loading on certain page
- WordPress plugin admin page – using WordPress function in linked php file
- Shortcode to pull posts
- Ajax search shows all results when user empties input?
- Why i can’t get custom fields value or post ID via Ajax?
- Get uploaded image and attach it to the new post
- Admin-ajax php not working on new wordpress version
- How to add post thumbnail dynamically using Jquery?
- calling function in external js file
- How to refresh a page from jquery [closed]
- Add a counter for mouseovers (custom field)
- Accessing an API with jQuery and AJAX
- Unexpected token ILLEGAL, even on clean install – jquery-issue?
- Deactivate a plugin on wp version
- Admin Menu new tab external link
- How to set variables with AJAX request to use in another function in WordPress
- Add other class content with reference class value
- Ajax result show in console if is called outside function and not showing in array
- How can I edit a php custom page template to work in other themes?
- How to pass bloginfo(url) in a jquery
- wp_ajax_ 400 Bad Request
- WordPress ajax filter returning all posts when it should be filtering by category
- Input field duplicates on form submit by jQuery
- How to echo a PHP code into WooCommerce variation product?
- include javascript Multiple files in wordpress through script.js
- make an array in wordpress cusmization api?
- ACF + WP + Slick Slider Repeater Slide Group PHP not Displaying [closed]
- Find the method which AJAX GET calls
- WordPress AJAX load post metadata in modal
- customizer live preview layout picker
- Add a downloaded JS file to WordPress
- How to call javascript function (jquery) in a shortcode?
- How to run ajax in WordPress Post?
- Add php function into .js file (for tinyMCE button)
- WordPress Setting page can not be saved by html radio
- I am trying to call external database recieving error
- reorder a WP_Query, using a dropdown
- Select area and checkbox data is not saving?
- How to use js variable to php in wordpress functions.php
- ajax problems on loading page [closed]
- Capture the Selected Radio Button Value between two files in wordpress theme
- Retrive the value of the Active variation of the product and then link it to the “read more” to dynamically change
- custom AJAX filtering logic and outputting results into an Elementor Loop Grid widget
- JQuery UI Autocomplete showing as bullets