javascript

lightweight social icons javascript issue in french

Hi Tom, I have a javascript issue with the french translate. In some strings, in french there is a single quote. We need to escape it or use double quote as string delimiter. In the generated “widget.php” file : In “lightweight-social-icons.php” file, I fix it with double quotes : Thanks again for all your work.

Trouble implementing Jquery + Javascript in footer hook

First off I should point out I’m a javascript/jquery rookie and am trying my best to implement scripts that others have written. I’m currently working on a mock site in my spare time, which I’m basing off an existing site. Im doing this just to build my skills so its completely non-commercial. Currently I’ve got … Read more

Adding JS to Page

Hello, My website https://gladstonevillagehall.org includes four lightweight grid columns with backgrounds and hyperlinked text within them. I am trying to allow the user to be able to click anywhere within the background and be taken to the link that the text contains. So far I have found the following JS able to do this, <script> … Read more

adding a script before the tag.

I’m setting up a radio station site and we’d like to use a player that gives me the following code to insert in the php before the </body> tag. <!– place this code right before the </body> tag at the end of your page’s HTML code –> <script type=”application/javascript”>if(window===top){var CE_Player=new Object({stationCallSign:’BREEZE’,position:’top’,autostart:false,playerlocation:’streamdb8web’,fullPlayer:’v8′});document.write(‘<script src=”http://streamdb8web.securenetsystems.net/ce/js/playerwidget.min.js?’+Math.random()+’”><\/script>’);}</script> I’ve successfully inserted … Read more

GetSiteControl JavaScript

Hi Guys Can anyone advise on best practice for launching a javascript via a button or menu link, here’s the snippet from GetSite Control Example: <script> function showWidget(){ _gscq.push(['show', 82297]); } </script> Regards Nigel

Any chance for Simple JS?

The Simple CSS plugin rocks. Any chance there might be a Simple JS? Or if not, any recommendation for adding a bit of javascript to specific pages that play real nice with GP? Thanks!

Bigfoot.js works in Customizer but not on live site

I’m having a strange problem. I have setup the child theme, added the Bigfoot file accordingly and ammended the functions file with this: add_action( 'wp_enqueue_scripts', 'tu_enqueue_bigfootjs' ); function tu_enqueue_bigfootjs() { wp_enqueue_script( 'bigfoot.js', get_stylesheet_directory_uri() . '/bigfoot/bigfoot.js', array('jquery'), false, false ); wp_enqueue_style( 'bigfoot-default.css', get_stylesheet_directory_uri() . '/bigfoot/bigfoot-default.css' ); } add_action( 'wp_footer', 'tu_add_bigfootjs' ); function tu_add_bigfootjs() { ?> <script … Read more

Input sum not working with javascript + GP hooks

Hey Tom, I need help, can you please tell me what I am doing wrong? Here is the code I used: http://jsfiddle.net/markwylde/gjz9h/ Here is the page I am working on: http://www.muhrprofessionalbuildings.com/wp/comparison/ And an image of what my javascript looks like inside your GP hook section. Thank you!

Adding of javascript code destroyed the Footer

Hello! I added some javascript code to GP Hooks. After that footer changed his height, take a look there: http://joxi.ru/GrqYj0ztBbkprz.png No matter in what section of GP Hooks I add the code, only footer always destroing. This is the code which I added. It is a Mail Chimp pop-up. <script type="text/javascript" src="//s3.amazonaws.com/downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: … Read more

Javascript will not load – Parsing Errors with GP

I’m using ACF successfully in other areas of the site – all showing up as expected on the front and back end. However in this new case, I am trying to trigger an accordion effect. I have created everything as usual, see the metaboxes on the page editor but upon loading the page, I get … Read more