WordPress.org

Ready to get started?Download WordPress

Forums

Add a div to the header ..Please help it been a long few hours!! (6 posts)

  1. PReno
    Member
    Posted 10 months ago #

    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
    }
  2. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 10 months ago #

    Let's see the site then.

  3. PReno
    Member
    Posted 10 months ago #

    http://www.sligotourism.ie/ that is the with the original function.php ... Once you have a look reply and i will upload my new funcion.php file so you can see what i mean.

  4. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 10 months ago #

    I have had a look.

  5. PReno
    Member
    Posted 10 months ago #

    Ok click the link again and you will see the icons however where the featured post is meant to i now get " There are no featured Sligo Stories at the moment"

  6. PReno
    Member
    Posted 10 months ago #

    I am actual getting that same messages on all pages displaying posts. For some reason the events will show but not the post

Reply

You must log in to post.

About this Topic