Last active
August 29, 2015 14:17
-
-
Save erezLieberman/a5c1c5e8743bd481aebc to your computer and use it in GitHub Desktop.
hover images inline from acf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="icon" style="background-image:url(<?php the_sub_field('icon'); ?>)" onMouseOver="this.style.backgroundImage='url(<?php the_sub_field('hover_icon'); ?>)'" onMouseOut="this.style.backgroundImage='url(<?php the_sub_field('icon'); ?>)'"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://stackoverflow.com/a/17783035/2721050