Guest User

Social media icons in heading causing problems

a guest
Apr 9th, 2012
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1. //I'm using a 2011 child theme based on m http://digitalraindrops.net/2011/09/twenty-eleven-three-menus/. I am using modified code based on http://digitalraindrops.net/2010/09/social-media/ for the social media icons. //
  2.  
  3. //I added the following code to the header.php file below the <body opening tag. DigitalRaindrops did not have <div></div> -- I added this. //
  4.  
  5. <body <?php body_class(); ?>>
  6.  
  7. <div id="social">
  8. <?php /* Add in our Horizontal Social Media */ ?>
  9. <?php get_template_part( 'social', 'horizontal' ); ?>
  10. </div>
  11.  
  12. //Since http://digitalraindrops.net/2010/09/social-media/ includes functions for wp admin Options page, I had to create non-php hyperlinks for the social media icons. So, the social-horizontal.php file contains the following code://
  13.  
  14. <div class="social">
  15. <a href="http://www.twitter.com/psr" title="Twitter Connect"></a><img src="<?php bloginfo('stylesheet_directory'); ?>/images/twitter.png" alt="Twitter" />
  16. <a href="<?php bloginfo('rss2_url'); ?>" ><img src="<?php bloginfo('stylesheet_directory'); ?>/images/rss.png" alt="Feed me" />
  17. <a href="https://www.linkedin.com/psr" title="LinkedIn Connect"</a><img src="<?php bloginfo('stylesheet_directory'); ?>/images/linkedin.png" alt="<?php bloginfo('name'); ?>" />
  18. <a href="https://www.youtube.com/psr" title="Youtube"</a><img src="<?php bloginfo('stylesheet_directory'); ?>/images/youtube.png" width="32" height="32" alt="<?php bloginfo('name'); ?>" />
  19. <a href="https://www.facebook.com/psr" title="Facebook Connect"</a><img src="<?php bloginfo('stylesheet_directory'); ?>/images/facebook.png" width="32" height="32" alt="<?php bloginfo('name'); ?>" />
  20. <a href="https://www.gplus.com/psr" title="g+ Connect"</a><img src="<?php bloginfo('stylesheet_directory'); ?>/images/gplus.png" width="32" height="32" alt="<?php bloginfo('name'); ?>" />
  21. <a href="https://www.skype.com/psr" title="Skype Connect"</a><img src="<?php bloginfo('stylesheet_directory'); ?>/images/skype.png" alt="<?php bloginfo('name'); ?>" />
  22. <a href="https://www.psr.com/contact-us" title="Email me"</a><img src="<?php bloginfo('stylesheet_directory'); ?>/images/email.png" alt="<?php bloginfo('name'); ?>" />
  23. <a href="https://www.psr.com/contact-us" title="Call me"</a><img src="<?php bloginfo('stylesheet_directory'); ?>/images/callme.png" alt="<?php bloginfo('name'); ?>" />
  24. </div>
  25.  
  26. //Now, I'm having a problem with the social media icons causing the top nav menu to overlap the searchbox. See http://www.prosocialroi.com/contact-us
Advertisement
Add Comment
Please, Sign In to add comment