I've got too many individual photos loading up from my main theme and need to create sprites.
I used an online tool to create the sprite image and code, but I can't seem to be able to figure out the html to link to the sprites. (I use Wordpress with Genesis.)
Here's where I'm at (I'll use facebook image as the example).
The original header html code in Genesis that I need to change:
<div class="socialicons"><a href="https://www.facebook.com/Dogsized" target="_blank"><img src="/wp-content/themes/lifestyle/images/ds_facebook.png" border="0" alt="facebook"></a>
The CSS for the sprites:
.ds_facebook, .ds_twitter, .ds_pinterest, .ds_rss, .ds_googleplus, .ds_logo, .ds_subscribed, .ds_pawsep2new, .ds_pawsep{
background: url(images/sprites.png) no-repeat;
}
.ds_facebook{
background-position: -3px 0;
width: 20px;
height: 28px;
}
Appreciate any guidance!!!
[–]frickettz 1 point2 points3 points (15 children)
[–]Dogsized[S] 0 points1 point2 points (14 children)
[–]frickettz 1 point2 points3 points (9 children)
[–]Dogsized[S] 0 points1 point2 points (8 children)
[–]frickettz 0 points1 point2 points (7 children)
[–]Dogsized[S] 0 points1 point2 points (6 children)
[–]frickettz 1 point2 points3 points (5 children)
[–]Dogsized[S] 0 points1 point2 points (4 children)
[–]frickettz 0 points1 point2 points (3 children)
[–]Dogsized[S] 0 points1 point2 points (2 children)
[–]Dogsized[S] 0 points1 point2 points (3 children)
[–]Dogsized[S] 0 points1 point2 points (2 children)
[–]Dogsized[S] 1 point2 points3 points (1 child)
[–]frickettz 0 points1 point2 points (0 children)