• Resolved 99nunkey

    (@99nunkey)


    Hey!

    I’ve searched and searched… Please help.

    I want to add an image to the bottom of every post. It’s a hand signature:
    <img height=”50″ src=”https://www.nunkeypublishing.com/images/sig.gif&#8221; width=”141″ align=”left” />

    So, everytime I write a post, the signature is added automatically.

    1) What file do I have to go into to do this

    2) What is the exact code I have to add

    3) Where in the file exactly do I add the line of code?

    Thank you all in advance – this is a great forum!

    Scotty

Viewing 8 replies - 1 through 8 (of 8 total)
  • ok, by this do you mean on your home page where multiple posts are made? or on the induvidual post pages?

    also, is this for just one or multiple people posting?

    Thread Starter 99nunkey

    (@99nunkey)

    Hey Kahil!

    It’s for the actual individual post pages. Ie, I make a post, and the image is there at the bottom of the post, above the ‘filed under’ tags.

    I just made a post here, and I manually entered the signature image:
    https://younginfopreneurs.com/home/

    See? But I want to get that image as a default inclusion in every post I make.

    Yes, it’ll just be me that does all the posting.

    Thanks for your time, Kahil!

    1) For individual post pages, you need to add the image to your single.php file. Look for the line that says Filed under..., and above that line, add in your image like this:

    <img height="50" src="https://www.nunkeypublishing.com/images/sig.gif" width="141" align="left" />

    2) But the above will not show where you have multiple post listings, such as your home page, category archive listing, etc. To show it for each post where you have multiple posts, you need to add the same line above, to the same position, in your index.php, and your home.php, category.php (if these exists).

    Thread Starter 99nunkey

    (@99nunkey)

    Hi guys,

    Unfortunately, that didn’t work. It’s given me a parse error:

    Parse error: parse error, unexpected ‘<‘ in /home/younginf/public_html/home/wp-content/themes/semiologic/utils/entry.php on line 144

    Here’s how I entered the line:

    function display_entry_nav()
    {
    link_pages(‘<div class=”entry_nav”> ‘ . get_caption(‘page’) . ‘: ‘, ‘</div>’, ‘number’);
    } # end display_entry_nav()

    add_action(‘display_entry_body’, ‘display_entry_nav’, 100);
    <img height=”50″ src=”https://www.nunkeypublishing.com/images/sig.gif&#8221; width=”141″ align=”left” />
    #
    # display_entry_filed_under_by()
    #

    function display_entry_filed_under_by()
    {
    $show_entry_filed_under_by = !is_page()
    && !( is_home()
    && defined(‘sem_home_page_id’)
    && sem_home_page_id
    );

    $show_entry_filed_under_by = apply_filters(‘show_entry_filed_under_by’, $show_entry_filed_under_by);

    etc, etc, etc

    Any clues?

    Thanks for your time once again!

    Scotty

    I added a tag to this thread called “semiologic“, being that
    Denis-de-Bernardy usually handles the threads tagged with it.

    Why? Because it’s “his” theme(s), or related to Semiologic stuff in general. =) Hopefully Denis can help you with this issue. ??

    spencerp

    I would “try” to help, but..I’m too tired now and Denis knows his stuff on it lol. =P Goodnight peoples..

    Thread Starter 99nunkey

    (@99nunkey)

    Thanks, Spencerp

    Sweet dreams…

    If anyone can help, I’ll be very grateful.

    Scotty

    firstly, fetch the latest version of the theme:

    https://www.semiologic.com/software/sem-theme/

    before upgrading, rename your heavily hacked skin’s skin.css file to custom.css, and leave the file in the theme’s directory (it’ll be automatically included).

    then, create and drop a custom.php file into your skin’s directory:

    <?php
    function display_signature()
    {
    ?>
    html code here
    <?php
    }

    add_action(‘display_entry_body’, ‘display_signature’, 20);
    ?>

    and that should do the trick.

    Thread Starter 99nunkey

    (@99nunkey)

    Denis!

    I haven’t communicated with you yet, and I know this isn’t the place for tesimonials, but thank you for an excellent product. I love the theme I’m using, and although I’ve had my challenges customising the thing, you’ve made it all a heck of a lot easier. Awesome.

    I’ll be keeping my ear to the ground to see what else you release. Keep up the great stuff!

    Oh, and I tried what you said above, and it worked right off the bat. Cheers!

    Have fun,

    Scotty Stevens

    (Feel free to edit and use this as a testimonial)

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How To Add Image To Post Footer’ is closed to new replies.