I am trying to change a CSS Variable value in customizer and couldn’t get live preview working using ‘postMessage’. It…
ACF filter with select/options
I have build a list with ACF and want to make a filter selection, witch is working halfway. i have…
Can’t Target a Widget’s Elements using jQuery
I have a sidebar widget that has some elements inside I’d like to modify. The widget generates it’s code from…
Access html element in http://wordpress-instance.local/wp-admin/post.php?post=15760&action=edit with jQuery
When I add an image to a text field in a post my browser goes to the page with the…
Access html element in media modal with jQuery
I’m using the following code to add the required attribute to a textarea tag. HTML: <label class=”setting” data-setting=”caption”> <span class=”name”>Beschriftung</span>…
wp-json page view being called and timing out
I’ve been viewing the waterfall view in Gtmetix to try and spot an issue with a slow loading website. The…
WordPress Slick Slider + Magnific Popup
just wondering if I can get the cropped image and also the original of cropped image. Using ACF to build…
Using wp_editor() when not logged stopped working
I’ve build myself a custom page template. Within this template I’m using the wp_editor() function. Sadly, when I logout now…
fadeOut() jquery in wordpress not working
this code in ‘script.js’: jQuery(document).ready(function($) { $(‘#close’).click(function(){ $(‘#tofes’).fadeOut(); s1.empty(); s2.empty(); s3.empty(); $(‘#date_div’).empty(); $(“#step-form-2, #step-form-1, #step-form-3”).delay(200).queue(function(){ $(“#step-form-2”).removeClass(“col-md-6 col-md-4”).addClass(“d-none”); $(“#step-form-1”).removeClass(‘col-md-6 col-md-4’).addClass(‘col-md-12’); $(‘#step-form-3’).removeClass(‘col-md-4’).addClass(‘d-none’);…
Simple TinyMCE plugin issue
I created this following simple TinyMCE plugin, which generates a div within the WordPress editor. tinymce.create(‘tinymce.plugins.wpse72395_plugin’, { init : function(ed,…
How to change CSS of jquery datepicker in style sheet?
I’m trying to change the style of my datepicker on my site (to display month/year only). I can do this…
How to use $ with externally loaded javascript
I’m trying to load an external javascript file that uses jquery but references it with ‘$’. Through some digging around,…
share js objects between jquery scripts wrapped in anonymous function
I am re-writing a web app to work in WordPress. Currently, pages in the app loads one JS file containing…
WordPress – Adding toggle-able element after menu item
I’ve got this menu on my site: <ul id=”menu-primary” class=”offcanvas”> <li class=”menu-item menu-item-has-children”> <a href=”#”>Parent</a> <ul class=”sub-menu”> <li class=”menu-item”> <a…
Adding toggle-able element after menu item
I’ve got this menu on my site: <ul id=”menu-primary” class=”offcanvas”> <li class=”menu-item menu-item-has-children”> <a href=”#”>Parent</a> <ul class=”sub-menu”> <li class=”menu-item”> <a…
Ask page leave confirmation with Bootstrap modal
Is it possibile to ask page leave confirmation (to prevent lost data changes) on beforeunload event with a Bootstrap modal?…
how to add popup when i choose custom attribute in woo commerce
I have created a variant product in woo-commerce I want the popup when I choose an option in (Select your…
How to resizable jQuery into div
I would like to know how it is possible to write a script that allows frontend users to change the…