Google Map JavaScript error after migrating

Google API’s now requires API key for new domains, you should create an API key as per instructions here: https://developers.google.com/maps/documentation/javascript/get-api-key and edit the line in the plugin that loads the Google Maps API to include your key as the value of a ‘key’ parameter. Wherever you find one of these: “https://maps.googleapis.com/maps/api/js“ or “http://maps.googleapis.com/maps/api/js” in the … Read more

Adding jquery using php function

Why are you not using the built-in enqueue_script function? Simply put your custom jQuery code into a file called custom.js, save it into your plugin or theme folder, then enqueue it with jQuery as a dependency: <?php function custom_scripts() { if (is_admin()){ wp_enqueue_script( ‘customjs’, get_template_directory_uri() . ‘/js/custom.js’, array(‘jquery’) ); } } add_action(‘wp_enqueue_scripts’, ‘custom_scripts’); You’ll need … Read more

dropdown does not work [closed]

There is a item over these select boxes. In you css file search for element.style and remove it’s position: relative; property. element.style { bottom: 0; left: 0; position: relative; top: auto; } That will fix this issue.

How to Javascript/jQuery

Just paste this in your functions.php file. It will automatically add jQuery in your theme. function wcs_scripts_styles() { wp_enqueue_script( ‘jquery’ ); } add_action( ‘wp_enqueue_scripts’, ‘wcs_scripts_styles’ ); WordPress automatically include jquery from it’s location. You do not need to upload jquery on your theme. additionally you can also add more scripts lile this. function wcs_scripts_styles() { … Read more

Change color of a specific word generated by script [closed]

Insted of <font style=”font-color:#2ED7A2;”>’ + crypt_single_target_currency.match(/.*?\(([0-9a-z]+)\)/i)[1] + ‘</font> try <span style=”color:#2ED7A2;”>’ + crypt_single_target_currency.match(/.*?\(([0-9a-z]+)\)/i)[1] + ‘</span> the font tag isn’t supported in html 5 and you were calling “font-color” instead of just “color”

Adding a script & php to functions.php

First you should include this code in your footer.php – or similar. Second: if ( is_product() ) { //you are already in php function add_klaviyo_script() { echo ‘<?php // dont need to echo php $ItemId = $product->id; // and variables The solution(footer.php): <footer> …things </footer> <?php if ( is_product() ) { $ImageUrl = wp_get_attachment_image_src( get_post_thumbnail_id( … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)