Tag Info

New answers tagged

1

Turns out it was the WooCommerce Jetpack Plugin all along. Stupid thing had something enabled which it didn't need. I guess that's what I get if I let a client access the plugin menu. Thank you, denis.stoyanov, for helping me find the solution!


0

There's probably some better way of doing this, but thought i'd give it a go anyways :) - also got some of the answer from here Adding active class to first item <div class="container"> <div id="myCarousel" class="carousel slide" data-ride="carousel"> <!-- Wrapper for slides --> <div class="carousel-inner"> ...


2

Maybe I am on thin ice but lets try. Assuming that you already have the correct jquery version(you want to use) downloaded and copied to a folder. (The same js folder as the jquery.rwdImageMaps.js would be logical imho) Imho you also can delete folowing code part <script type="text/javascript" src="<?php echo get_stylesheet_directory_uri(); ...


0

That error was identified by stackoverflow - it's actually caused by Rapport software, a security tool some banks recommend. You could turn it off / remove it from development machines.


0

you are using JQuery, rather it should be jQuery jQuery(document).ready(function () { alert('hello world'); });


6

First of all this is what I use and for me and it works. I'm not saying that my code is 100% correct but Pingdom as well GTmetrix show a positive effect and WP is satisfied also, so it can't be that wrong as I do. The versions showing (?ver=x.x.x) can be debet when those files need to be cached so stripping(filter) that is already a first step. The code ...


0

Add die(); to the end of the function handle ajax. Add return false; after jQuery.ajax function tw_pages_results() { //stuff die(); } jQuery(document).ready(function() { jQuery.ajax({ type : "post", dataType : "html", url : "<?php echo site_url(); ?>/wp-admin/admin-ajax.php", data : {action : "tw_pages_results", 'page':0, ...


0

You need type: 'POST' in your jQuery.ajax call. The default is GET, and this requires POST. Because someone below requested an example: jQuery.ajax({ url: dgxDonateAjax.ajaxurl, data: data, type: 'POST', success: function() { console.log("-- SeamlessDonationsCheckout: jQuery.ajax success"); //response(data); } });


0

jQuery(document).ready(function($) { var calendar = jQuery('#calendar').fullCalendar({ editable: true, header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay' } }); }); Now i am not gett


0

This was very frustrating to figure out. I spent hours on this issue and discovered your problem is in this input: <input type="text" name="name" id="name" size="30" value=""/> Try changing the input field name to anything but "name", for example: <input type="text" name="user_name" id="name" size="30" value=""/>


2

I hate answering my own question, but hopefully this can help someone else with similar issues: Wordpress uses Iris color picker. http://automattic.github.io/Iris/# Wordpress also creates a jquery widget with default settings for Iris. The file can be found under wp-admin/js/color-picker.js At first I was trying to pass values directly to iris(), which ...


-1

You could add to your functions.php (in child theme) a reference to just that one page (is_page('law-practices')) and enqueue just for that one page: add_action( 'wp_enqueue_scripts', 'law_practice_enqueue_style' ); function law_practice_enqueue_style(){ if (is_page('law-practices')){ wp_register_style( 'law-styles', get_template_directory_uri() . ...


0

Add the CSS to your child themes style.css file or load it using wp_enqueue_scripts add_action( 'wp_enqueue_scripts', 'wpsites_load_custom_styles' ); function wpsites_load_custom_styles() { wp_register_style( 'custom-css', get_stylesheet_directory_uri() . '/your-style.css', false, '1.0.0' ); wp_enqueue_style( 'custom-css' ); } Source


-2

Please try this instead. Replace your css by : <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/assets/stylesheets/styles.css" /> in the head section



Top 50 recent answers are included