WordPress.org

Support

Support » Themes and Templates » Add a div to the header ..Please help it been a long few hours!!

Add a div to the header ..Please help it been a long few hours!!

  • I am using the thematic theme as the parent theme. I am trying to add four icons in the header section of my child theme. The problem i am having is when i upload my new function.php file, the icons appear where i want them to however the feature post do not. I cant seem to see anything wrong with the code however there must be so i am missing. I have been trying to figure this out for the last few hours to no avail so i would be would be very gratefully if someone could help me.

    <?php
    add_action('thematic_header', 'social_media_icons',3);
    function social_media_icons(){
    ?>
    <div id='socialMediaIcons'>
      <div id='icons'>
      	<a href="https://www.facebook.com/SligoTourism?fref=ts" target="_blank"><img src="/wordpress/wp-content/themes/sligo/images/Facebook_Icon.png" width="20px" height="20px" alt="Like Us On Facebook"></img></a>
        <a href="https://twitter.com/sligotourism" target="_blank"><img src="/wordpress/wp-content/themes/sligo/images/Twitter_Icon.png" width="20px" height="20px" alt="Follow Us On Twitter" ></img></a>
        <a href="http://instagram.com/sligotourism" target="_blank"><img src="/wordpress/wp-content/themes/sligo/images/Instagram_Icon.png" width="20px" height="20px" alt="Follow Us On Instagram" ></img></a>
        <a href="http://www.sligotourism.ie/feed/"><img src="/wordpress/wp-content/themes/sligo/images/rss_Icon.png" width="20px" height="20px" alt="RSS Feed" ></img></a>
      </div>
    </div>
    <?php  //<- this is here as there are more hooks below
    }

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add a div to the header ..Please help it been a long few hours!!’ is closed to new replies.
Skip to toolbar