I am working on this test page: https://www.incaet.it/progetti-edit-2/ As you can see there are 2 buttons “_blank” and “_BLANK”, later I’ll explain their purpose. Since I’m editing this page with elementor (wordpress) I am able only to assign to the media gallery (the projects you see) an image and an URL without declaring any HTML. The goal would be to
Tag: wordpress
Different link in button for desktop/mobile only with css class
i have WordPress site with Elementor and i need set in button different link for mobile and desktop version. It´s custom component, so there is not possible edit html code, add ID or CLASS (for future updates). html code is: is it possible to link this html code to javascript so that the links are different in the mobile and
WordPress: JS is loaded but functions in it are not working
I have a js file named “main.js” and I enqueued it using wp_enqueue_script in function.php file. This file is getting loaded in my page-{slug}.php, but the functions in it are not executing at all. The function.php file: page-{slug}.php file: main.js file: In short, I write anything in main.js file, the changes which I expect doesn’t happen or doesn’t reflect in
How to change datepicker default settings in WordPress using Avada theme?
The Avada theme seems to use flatpickr as the default datepicker for their Avada Forms, but it is not possible to change the default configuration using the Avada Builder. I would like to play around with the optional parameters as described on https://flatpickr.js.org/examples/. As a minimum, I would like to set a minimum date (minDate) such that the date of
WordPress JavaScript
I’m trying to achieve a custom option inside the “Publish Metabox” in WordPress admin custom post. And I want to know is there any native way to do expand/collapse divs (Check the below screenshot). I wonder how WordPress itself achieves it like the below screenshot? (Maybe match the IDs like bootstrap JS libraries do ?). Answer And I want to
How to bulk insert to database using foreach insert query in mysql
I have an HTML form which I can duplicate to help add multiple rows at a time. This code works but I’m running into a problem that I can’t quite fix. The code is supposed to add a row for each data inserted into the database. The problem is chat it is repeating the same row. This is not a
Cloning Site, in , how do I convert it to regular CSS?
I am trying to clone https://www.sovereignselfdefense.com/ in HTML. The site was built in kajabi. Client wants to move it to a Wordpress theme. When I downloaded the site, I see code such as: I did some googling and this is outdated incorrect HTML convention. How would you separate the tag into an external CSS? I tried separating the CSS into
How to compile the JS file to use a React component in a WordPress theme if I do not need SSR?
I have a WordPress theme and for a part of it I want to use a React component (I don’t need SSR). I have used create-react-app in the past but now I have this code: and it does not work. The request to runtime-main.39639aca.js succeeds but it does not load my nav bar. The issue is that create-react-app produces more
Significance of ‘XXX.min.js’ file in WordPress plugin
I was debugging the ‘woo-variation-gallery’ plugin for Wordpress. I found that under ‘asset->js’ folder, for every XXX.js file there is a XXX.min.js file present. For example : I would like to understand the significance of xxx.min.js file ? What’s the purpose of these *.min.js files ? Why corresponding to every .js file in the folder, there is a .min.js file
Woocommerce empty the cart button with warning message
is there a way to add a warning message to let user to confirm before user emptys the cart? I’m using this code for creating a button. Answer You can use the init action hook to check URL query params and based on that empty cart. Use the woocommerce_cart_coupon hook to add an empty cart button beside apply coupon. Add