Add Quicksand for mobile devices

You don’t actually have a reference to Google Fonts Quicksand stylesheet on your site. I would suppose that you have Quicksand installed on your PC and as a result it can be seen but you wouldn’t have it on your mobile and so it wouldn’t display. Either add the following to your site via wp_enqueue_style: … Read more

Javascript code not working – $ is not a function error

I actually just wanted to make a comment but..(reputation is too low) so doing it this way. If for some reason two versions of jQuery are loaded (which is not recommended), calling $.noConflict( true ) from the second version will return the globally scoped jQuery variables to those of the first version. So to solve … Read more

How to Add jQuery cod in wordpress [duplicate]

use this: var j = jQuery.noConflict(); now everywhere in script JQurey is needed use j instead of $ or JQuery also your enqueue line should be like this: wp_register_script(‘myjs’,get_stylesheet_directory_uri().’/js/my_script.js’,array(‘jquery’),false,true); wp_enqueue_script(‘myjs’); you can read more here P.S: so your updated code should be : mycustom.js var j = jQuery.noConflict();//this line Must be first line of script … Read more

woocommerce show cities state as dropdown list

I achieved something similar using the woocommerce_default_address_fields filter You can do something in the lines of this to create your new cities: // UPDATE CHECKOUT CITY FIELD add_filter( ‘woocommerce_default_address_fields’ , ‘custom_override_default_address_fields’ ); // Our hooked in function – $address_fields is passed via the filter! function custom_override_default_address_fields( $address_fields ) { // Billing City $address_fields[‘city’][‘type’] = ‘select’; … Read more

Keeping shortcode-generated widget and theme element in one line [closed]

To get rid of the bullets and change the alingment you’ll need CSS. For the top portion: aside.widget_polylang.amr_widget, aside.widget_polylang.amr_widget ul, aside.widget_polylang.amr_widget li { /** align with li */ display: inline-block; float:right; /** remove bullets */ list-style: none; } ul.social-icons { /** align with li */ display: inline-block; float: right; } For the bottom portion: aside.widget_polylang … Read more

Get current day using javascript [closed]

I’ve an approach for you, getting the WordPress date in JavaScript, a numb one, but still an approach: 🙂 functions.php wp_enqueue_script( ‘wpse-custom-scripts’, get_template_directory_uri() .’/js/wpse-custom.js’, array(‘jquery’), ‘1.0.0’, true ); wp_localize_script( ‘wpse-custom-scripts’, ‘wpse’, array( ‘date_time_now’ => date( ‘Y-m-d H:i:s’, current_time( ‘timestamp’ ) ), //format: YYYY-MM-DD 00:00:00 ) ); wpse-custom.js jQuery(document).ready(function($) { console.log(“WordPress date now: ” + wpse.date_time_now); … Read more