Lightbox not working in my wordpress theme

I have developed a wordpress theme with header, footer, sidebar, index, page, single and 404.php files. Now I want to add a gallery with lightbox effect to my site. I have tried lightbox plus, WP...

asp.net asmx web service returning xml instead of json

Why does this simple web service refuse to return JSON to the client? Here is my client code: var params = { }; $.ajax({ url:...

Jquery Ajax call in wordpress plugin page not working

In wordpress I created a plugin which has the following files Statistics visitor <?php /* Plugin Name: Wp Visitor Statistics Plugin URI: Description: Statistics about Visitors Author: Version:...

How to load HTML into a <div> using jQuery in WordPress?

So this is my buildInputFields.php file, which contains the markup I want to load into my #add_input_fields div located in my articlePostForm.php file. Both files are in the same directory in my...

Browser caching is not working for all .js files

I use the following code for browser caching in my .htaccess: ## EXPIRES CACHING ## <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg...

Browser caching doesnt work for all .js files

I use the following code for browser caching in my .htaccess: # turns cache on for 1 month <IfModule mod_expires.c> ExpiresActive On ExpiresByType text/css "access plus 1 month" ExpiresByType...

Wordpress - Uncaught SyntaxError: Unexpected token <

I am enqueue scripts in a child theme with this... function child_theme_scripts() { wp_enqueue_script( 'script-name', get_template_directory_uri() . '/js/custom-child.js', array(),...

<a> tag showing as link but it is not clickable

I am trying to create a simple scroll button using only HTML and CSS, (JS coming later to enable to parallax (that's not an issue)). But when viewed in Firefox and Google Chrome at least, the link...

Leverage Browser Caching js?ver=

I'm facing an odd problem with my Leverage Browser Caching. In my .htaccess I use the following: ## EXPIRES CACHING ## <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access...

Add some html and php codes bottom of wordpress post content

I want to add some html and php codes at the bottom of wordpress post content, I know that with this function code I can add some content at the bottom of post content:- add_filter(...

Ajax Function of jquery Not working

I have the following code sample index.php & process.php: Index.php ----------- <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,...

How do I correctly enforce Javascript Validation in HTML Form?

I'm having a hard time enforcing the JavaScript parameters I have put into my HTML Form. Essentially I want all the parameters satisfied, before a successful submission of the HTML Form, into my...

What should I do with these Javascript-console errors (Wordpress)?

reset.css Failed to load resource: the server responded with a status of 404 (Not Found) jquery-migrate.js:23 JQMIGRATE: Migrate is installed with logging active, version...

jQuery toggle CSS reset?

I want to toggle between CSS so when a user clicks the button(#more1) the css changes and when click again on the button(#more1) the css return to the original. $(document).ready(function() { ...

Other AJAX request waiting for Long Poll to finish

I have a long-polling script that looks for changes in database. If data changes the while-loop will be exited and the data written to the user. The long poll "pushes" flight connections to the...

Remove ajax.googleapis.com from my Wordpress site

Any reference to googleapis will block my website in China. How can I remove these references? Here are the results of my grep search for google api reference: ./codesearch.php:$command = "grep...

Why are the closing body and html tags on my page showing in red in Brackets?

I downloaded the exercise files for a tutorial on responsive animated websites and in my code editor (Brackets) at the end of the page the body and html tags are showing in red as if there is an...

Can't enqueue new scripts into parents theme

I'm trying to add new scripts and a css file to my child's theme on wordpress but i'm getting the following errors. GET...

How to make Navbar collapse from 1024 pixel screen size

I know there are so many solution for this but they didnt worked for me . I dont know what the problem is : What i want is my navigation menu collapse from screen size 1024px I also checked...

Headers already sent by

I have a little error here. I am receiving this message when I'm trying to send a header: Warning: Cannot modify header information - headers already sent by (output started at...

jQuery add and remove class of parent to create an accordion

I wanted to make the clickElementGeneralDivProducts class a nowCollapse or Now collapsed class at the click of the button. Did you already do something like this? Thanks in advance this is my...

CSS infinite loop animation not working in Safari11 or iOS11

I am using an infinite CSS animation to create a marquee slider. I've used javascript to write the keyframes dynamically as the screen size changes as the amount the slider needs to move by will...

How to ignore bootstrap codes from main css

PROBLEM: I am having problems in my bootstrap imports that seems to be affecting my link logo and social icon border. If i remove the link for the bootstrap, the logo and icon borders will work...

Nested drop down menu using w3schools method

I had designed a menu using this link. Now I have problem on using nested drop down links. I had treid several ways but because I'm not using standard ul and li tags now I have problem to fix this...

How to GET and display data from MariaDB on Vertx page?

I currently have a simple index.html displaying sample pre-created data displaying annotation details, as well as a Add, Delete and Update function. My Add Annotation function works well, and any...

How to fix the window being resized when elements placed off the screen

While I m doing a project I wanted to add an effect to my page. So I placed elements off the screen. But when running the code the window get resized with scrollbars making it hard for mobile...

webview crashes when i click links

I have this android app im working on that converts a website to an APP. basically using a webview. i have everything working thus far. the only thing is that if i click inside the app , when i...

refreshing datatable tab without refresh on submit

I have a tabbed menu on my page, the first tab is a data input form and the rest are datatables which colate the information. <div class="tile" id="tile-1"> <!-- Nav tabs --> <ul class="nav...

Wordpress does add unwanted html tags to my code

I cant understand why wp adds some unwanted </p> tags to my lovely html. Do i miss something? Problem: It makes these empty </p> thus create a 3rem border on the bottom, of my bootstrap card,...

wordpress ajax request returns 'POST .../wp-admin/admin-ajax.php net::ERR_CONNECTION_CLOSED' for data more than 1mb

I am submitting a jquery ajax form from the frontend. And uploading a blob (nothing but a variable of string) as .txt file to WordPress using wp_handle_upload(). everything works just fine until...