• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / HTML code for Rollover image when mouse over in the Text widget

HTML code for Rollover image when mouse over in the Text widget

  • Unknown's avatar
    savorytouch · Member · Jan 30, 2016 at 8:54 am
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    What html code will work in the text widget for creating rollover images during mouse over in the text widget? I am using free wordpress, so I don’t have access to any sort of plugins and I am also using a pre-made theme so I don’t have access to that code either. My goal is to recreate my social icons as the pre-made theme is too limited.

    I have tried to use this example:

    <a href="TARGET URL GOES HERE">
        <img style="border:0 none;" title="" alt="" src="URL OF FIRST IMAGE GOES HERE"
             onmouseover="this.src='URL OF SECOND IMAGE GOES HERE';"
             onmouseout="this.src='URL OF FIRST IMAGE GOES HERE';">
        </img>
    </a>

    An example with my links:

    <a href="https://www.facebook.com/savorytouchblog">
     <img style="border:0 none;" title="Follow me on Facebook!" alt="" src="http://i.imgur.com/hNZTnkr.png"
       onmouseover="this.src='http://i.imgur.com/88yjksK.png';"
       onmouseout="this.src='http://i.imgur.com/hNZTnkr.png';">
     </img>
    </a>

    However, nothing happens when I mouse over it. You can see an example on my blog at the last widget on the right side bar. What else am I missing?

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar
    savorytouch · Member · Feb 4, 2016 at 6:23 pm
    • Copy link Copy link

    anybody??

  • Unknown's avatar
    banhgao · Member · Feb 5, 2016 at 1:35 am
    • Copy link Copy link

    Hi there. OnMouseOver is Javascript which can’t be used at WordPress.com. However with the Custom Design upgrade, you can do that.
    See this post for instructions: https://wpbtips.wordpress.com/2013/05/20/rollover-images/

  • Unknown's avatar
    savorytouch · Member · Feb 8, 2016 at 11:27 pm
    • Copy link Copy link

    @banhgao , Thank you for the reply, but is there no other way to do it the free way and just HTML?

  • Unknown's avatar
    banhgao · Member · Feb 11, 2016 at 12:35 pm
    • Copy link Copy link

    I think there is no way :)

  • The topic ‘HTML code for Rollover image when mouse over in the Text widget’ is closed to new replies.

Tags

  • free wordpress account
  • hover
  • html
  • mouseover
  • no plugins
  • rollover image
  • text-widget

About this topic

  • In: Widgets
  • 2 participants
  • 4 replies
  • Last activity 10 years
  • Latest reply from savorytouch

Couldn't find what you needed?

Contact us

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Browse our guides

Browse our guides

Find step-by-step solutions to common questions in our comprehensive guides.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions