Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Strange behaviour and error in console after updating to v1.3.0

$
0
0

Replies: 0

hi,

i was using v1.2.9.1 and inserted the currency switcher into top menu with this code:

add_shortcode(‘woocs_in_menu’, function() {
if (defined(‘WOOCS_LINK’)) {
$styles_link = WOOCS_LINK . ‘views/shortcodes/styles/for-menu/’;
wp_enqueue_style(‘woocs-style-in-menu’, $styles_link . “styles.css”, array(), WOOCS_VERSION);
wp_enqueue_script(‘woocs-style-in-menu’, $styles_link . “actions.js”, array(‘jquery’), WOOCS_VERSION);

ob_start();
?>
<div class=”woocs-style-for-menu-form”><?php echo do_shortcode(‘[woocs style=0]’); ?></div>

<?php
return ob_get_clean();
}
});

everything was working fine and the switcher looked like this:
https://imgur.com/sHHn1WO

and no errors in console.

after updating to v.1.3.0 that switcher looks like this:
https://imgur.com/DR1utzo

and console throws this error:
https://imgur.com/y6qliVF

why it is so?


Viewing all articles
Browse latest Browse all 59525

Trending Articles