Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
69 views

The following code works as expected on my WordPress setup, but when I send it to my friend who is running a cPanel managed version of WordPress, the JavaScript never runs. I can inspect the DOM and ...
Paul I's user avatar
  • 952
-2 votes
2 answers
61 views

enter image description here Is there any way I can make this script load first or have my content protection plugins load first? Maybe even exempt certain plugins from being altered by seraphinite ...
Natsu Dragneel's user avatar
1 vote
1 answer
1k views

I want to remove Woocommerce scripts and styles from non woocommerce pages. I am trying code below but it's not working. I found the issue why it's not working, because woocommerce not setting priorty ...
Sandeep Kumar's user avatar
0 votes
1 answer
974 views

I am trying to enqueue a couple scripts and stylesheet on the home page of my website, but not have them load in the Elementor editor. As per this thread, I have used \Elementor\Plugin::$instance->...
David's user avatar
  • 153
0 votes
1 answer
176 views

I'm doing a portfolio. I didn't want to loose a lot of time but as newbie this is still difficult for me so i challenge myslef. So i took a template bootstrap and I want to 'import' the template on my ...
Pierro's user avatar
  • 1
0 votes
0 answers
66 views

I'm trying to inject a style.css script into my front-page.php. I am able to load front-page's content by not link the style.css. When you inspect page source, all the CSS should be there, but it ...
Shawn Esquivel's user avatar
1 vote
1 answer
1k views

I'm struggling to get a CSS file to load just on WooCommerce shop archive pages only. Looking at the documentation I know there is a is_shop() tag. So I would have thought function kodr_scripts_styles(...
alexkodr's user avatar
  • 543
0 votes
1 answer
425 views

I've read about two dozen posts on here, but can't work out why this isn't working... I'm enqueuing two scripts, then using a script_loader_tag to add type="module" to each tag. Scripts get ...
carbonrich's user avatar
2 votes
1 answer
133 views

I'm using script to add the price to the Add to Cart in WooCommerce but for some reason the script seems to break when there aren't any variations set with a 'sale price'. Would anyone have an idea ...
Andrew Leto's user avatar
0 votes
3 answers
2k views

A plugin vendor I'm getting support from recently suggested that if I didn't want a certain Javascript file within the plugin to be enqueued, I should go into the plugin's files and comment out the ...
user3169905's user avatar
1 vote
2 answers
685 views

Need to make an company name input read only in the checkout of WooCommerce and also in the My Account addresses (/my-account/edit-address/billing/) read only. This code below is working to make the ...
Bob Weiss's user avatar
1 vote
1 answer
367 views

I'm no good at javascript but I think this code is right because it is just copy and paste from Zopim website and it was working before I tried to use their widget in a different approach. functions....
Cleber Reizen's user avatar
-1 votes
1 answer
98 views

I'm cycling through an associative array and adding each child array as a row in a table. The last column in that table is a button in which I want to use to remove that array from the parent array in ...
Eric Brockman's user avatar
1 vote
0 answers
102 views

I have a problem with wordpress and wp_enqueue_scripts. I want to include selected scripts only on specific posts. For example: domain.com/post123/ <- script post123.js should be included. And to ...
Waldgeist's user avatar
-1 votes
1 answer
299 views

I'm trying to load a CSS file just on mobile. I made some research and found the the best way to do that is by using JS so here is the code I found: $( document ).ready(function() { var isMobile ...
Juninho10's user avatar