- This topic has 18 replies, 2 voices, and was last updated 5 years, 10 months ago by Tom.
June 15, 2015 at 9:46 am #114733MICHAEL HOLLAND
June 15, 2015 at 10:33 am #114747TomLead DeveloperLead Developer
No need for this line, WordPress has jQuery enqueued by default:
Let me know 🙂June 15, 2015 at 11:00 am #114754MICHAEL HOLLAND
You can post code in here as long as you highlight it and click the “code” button in the editor 🙂
You shouldn’t need any special plugins to add JS to widgets – the text widget should accept it just fine.
Is it possible to see the site? I’m curious to see if there’s any JS errors going on.June 15, 2015 at 11:34 am #114765MICHAEL HOLLAND
Sure Tom…go to Imaginequest Marketing
And let me know if you need me to do anything or direct access to the site. The code something standard being used by a lot of people. Also, I tried the standard text widget and got the same error.
MichaelJune 15, 2015 at 11:35 am #114777TomLead DeveloperLead DeveloperJune 15, 2015 at 12:19 pm #114795MICHAEL HOLLAND
Sorry, I just added it.June 16, 2015 at 12:02 am #114856TomLead DeveloperLead DeveloperJune 16, 2015 at 12:24 am #114861MICHAEL HOLLAND
Yeah, it’s supposed to display a button that says Text Us … very similar to what you see in the header of this site…http://demo.carsalesspecialist.com/
Once you click on the button, a form is suppose to pop up.
MichaelJune 16, 2015 at 1:17 pm #115001MICHAEL HOLLAND
MichaelJune 16, 2015 at 8:32 pm #115064TomLead DeveloperLead Developer
This code worked for me:
However, I did get a JS error which is on their part.
They need to specify jQuery in their function, instead of just using “$”.
That’s something the people hosting the script will have to adjust unfortunately.June 16, 2015 at 9:10 pm #115069MICHAEL HOLLAND
Thanks Tom…so you got it to work in the text header widget huh? I’ve disabled all plugins except for the GP Premium and the problem persists. Very strange and frustrating. Ah well, if any other ideas pop into your mind as to what I might try, please let me know. But I certainly appreciate you taking a look.
MichaelJune 17, 2015 at 12:19 am #115095TomLead DeveloperLead Developer
I did – I placed the code I pasted above into my dev header widget – the button showed up, and I was able to click it, but I did notice the error I mentioned above.
I placed it inside the regular Text widget. I’m not sure what would be causing your site to disappear when trying to add the code – JS won’t typically do that (PHP will!).
Are you just trying to display some content inside a popup?June 17, 2015 at 8:03 am #115155MICHAEL HOLLAND
The pop up is a form where content can be entered to initiate and carry on a mobile texting conversation.
It’s so weird to me that I deactivated all plugins and yet don’t get anything close to the result you got. Any ideas as to what my next course of action should be?
- You must be logged in to reply to this topic.