Skip to content

Instantly share code, notes, and snippets.

@erezLieberman
Last active August 29, 2015 14:17
Show Gist options
  • Save erezLieberman/a5c1c5e8743bd481aebc to your computer and use it in GitHub Desktop.
Save erezLieberman/a5c1c5e8743bd481aebc to your computer and use it in GitHub Desktop.
hover images inline from acf
<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>
@erezLieberman
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment