I’m trying to implement photoswipe into my site but I’m not sure how to go about it for a wordpress site.. I’m using acf repeater to display all images in a grid. I’d like to display the photoswipe …
Tag: javascript
How to get the second value in the id to make onchange function?
I want to get the quantity value on change to show in the input, I make it data-cat_id='{$quantity}’ to show, but it cannot work.This value='{$id_book}’ is cannot change to ‘{$quantity}’, because …
issue: image carousel skips 1st image
I have an automatic image carousel in javascript for my html website. The carousel has 5 images. The carousel works well on the first round, but on the second round of images, the 1st image doesn’t …
Jquery click event doesn’t works with multiple buttons
I’m fetching deliveries from Mysql with PHP and When the user clicks on the Accept button I want to show a form and if the user click Revision I want to show another form. I know how to this. The …
How to save file txt using html and php
i try to save textarea in html to file (“C:xampphtdocstest1one.txt”) so i figure out i must use php too. this php code, it work fine $fp = fopen(‘one.txt’, ‘w’); fwrite($fp, ‘edit me please’); …
How to hide the whole span if there is no file in “href” direction
I have problem with hiding empty links.. please can someone help me.: <a href="/sunsetplanlama//kumas_1.png” data-lightbox=”kumas” data-title=”<?php …
jQuery in wordpress showing warning of ‘cannot use import statement outside a module
I am a newbie developing WordPress theme but having some problems in the navigation menu. I want to open sub-menu through jQuery for certain reasons but terribly failed. Would you guys help me to get …
Resize Image from Client-side for multiple HTML input
I find this helpful article for resizing images before uploading them to the server. I want to use it for some repetitive HTML input but I’m having a problem altering the javascript code since I’m not …
How to create an optimized sql query for multiple dropdown filtering in php?
Am new to php and working on a project. At the beginning there was 2 filters for which I didn’t worry much in writing the sql query with 4 conditions. But now I’ve 8 different dropdowns and I need to …
How can initialize Fancybox into WordPress with a separate .js file properly?
I did a search and found this method here using wp_add_inline_script. And it works. But what if I wanted to keep my initialization script into an other .js file? That’s what I wanted at first. How I …