ThemeShaper Forums » Thematic

[closed]

Adding image to footer

(4 posts)
  • Started 13 years ago by whiteweazel21
  • Latest reply from whiteweazel21
  • This topic is resolved
  1. whiteweazel21
    Member

    Hello I am new to WP and Thematic...and web development in general.

    I am trying to add an image to the footer. I used a bit of code I found on the forum and tried to modify it, but so far I have not had any luck even getting an image showing. What I have so far is:

    //Image in Footer
    function img_footer(){ ?>
    <img id="titleimg" src="images/facebook.png" />
    <?php
    
    }
    add_action('thematic_abovefooter()','img_footer');
    //

    Any ideas what I am doing wrong?

    Also, I am using "thematic_abovefooter", but once I get an image showing in general, how can I have the image place in the footer?

    Posted 13 years ago #
  2. whiteweazel21
    Member

    I played around a bit and added a div tag, and made a correction with the "}", but still no luck:

    //Image in Footer
    function img_footer(){ ?>
    
    <div class="img_footer">
    <img src="images/facebook.png" />
    </div>
    <?php }
    
    add_action('thematic_abovefooter()','img_footer');
    //
    Posted 13 years ago #
  3. whiteweazel21
    Member

    I played around some more, and played with some other people's scripts, I found one that did place an image in the top left corner:

    //Image in Footer
    function img_footer() { ?>
    <div class="subsidiary-aside">
    <img src="<?php echo bloginfo('stylesheet_directory') ?>/images/facebook.png" width="48" height="48" />
    </div>
    <?php }
    add_action('thematic_aboveheader', 'img_footer');
    //

    So I don't understand what "="<?php echo bloginfo('stylesheet_directory')" does, because if I delete it, the image disappears. I tried playing replacing thematic_aboveheader with thematic_subsidiary-aside, and just subsidiary-aside, but it does not seem to work...

    Posted 13 years ago #
  4. whiteweazel21
    Member

    I found the answer in a thread. I have to say while this forum provides tons of information, the search is absolutely horrid. You have to search like 30 different words, in different combinations, look through 40 threads, and maybe if your lucky and used the right keyword combination it'll pop up.

    Posted 13 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.