carpincraig
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: onclick eventThanks so much for taking the time to help me. I will let you know when i figure it out.
Can i ask what version of wordpress and editor are you using?
Forum: Developing with WordPress
In reply to: onclick eventyes that is what i have been doing.
I think i may need to create and use a shortcode as everything related to the onclick event disappears, but its not something i have done before to be honest
Forum: Developing with WordPress
In reply to: onclick eventYes thanks … I can see it works for you
but when i save it wordpress seems to strip out the code for the onclick event just leaving me with the image
I have set this up before in an older versions of wordpress and dreamweaver very easily… but now i am struggling with this version of wordpress.
Obviously i am no expert with it.
I have been trying to add the code in a code or as code module in a text module.
Could i ask (and i know this probably sound stupid) how do i access the source code to edit it?
Maybe i should pay a professional to do it for me….. but i would like to learn so i can do it
Forum: Developing with WordPress
In reply to: onclick eventIn what part of wordpress are you adding the code? in a module?
Forum: Developing with WordPress
In reply to: onclick eventSeriously thanks so much for trying to help me… the sleeknote customer service is terrible to be honest.
I want the popup to be triggered by clicking the image as you demonstrated in your example.
I will go through the help page in your link and try to work it out…
Forum: Developing with WordPress
In reply to: onclick eventHow would i create and implement the short code?
I have tried reading some posts on the subject but i really need a very simple example as to how i would do it …… step by step.
Forum: Developing with WordPress
In reply to: onclick eventsorry this is how the code should look
img onclick=”SleekNote.triggerOnclick(‘055f5a3e-53b6-495f-bc72-221df7526f44’);” src=”https://www.husispanien-marbella.se/wp-content/uploads/sites/178/2019/10/hot-villas.jpg”
but it reverts to this when saved
img src=”https://www.husispanien-marbella.se/wp-content/uploads/sites/178/2019/10/hot-villas.jpg”
Forum: Developing with WordPress
In reply to: onclick eventHi
Thanks very much for taking the time to look at my post and try to help!
I have a tracking code for the sleeknote popups on the site in the header for popups that are triggered on certain actions on the site.
And i understand i need to add to add the java code for the onclick triggers.
I have been trying to do this in a code module by adding the image and the onclick code (more or less as i would do in dreamweaver) but each time its saved the code disappears.
this is how it should look

but after its saved it just reverts to
