Zoom image on hover
-
I wrote JavaScript code that zooms image on hover and move it on mouse move. The problem is that, when I add it to site, WordPress automatically removes <script> tags. I tried with iframe (image on another server which has that Javascript code on it), but WordPress converts <iframe src=’…’> tag to tag. Some people recommended to me to write that code to footer.php or header.php, using wp-config.php, but I don’t have access for that.
Sorry for my bad englishThe blog I need help with is: (visible only to logged in users)
-
Hi,
There are code restrictions on WordPress.com. Except this one https://en.support.wordpress.com/forms/contact-form, no iframes from unsupported sources or third party advertising codes, and no tracking codes, and no unsupported embeds can be used on any wordpress.COM hosted sites.
Please read:
https://en.support.wordpress.com/code/Allowed HTML tags list –
https://en.support.wordpress.com/code/#html-tags
https://en.support.wordpress.com/code/#javascript
https://en.support.wordpress.com/code/#flash-and-other-embedsIf you want to add custom Js script, You will have to consider Moving to self hosted WordPress http://move.wordpress.com
Regards,
Harshad -
Hi bornforphp,
Thank you for your reply. I am interested in making image bigger when a user hover over picture. Is there any options to do that?
- The topic ‘Zoom image on hover’ is closed to new replies.