WordPress.org

Ready to get started?Download WordPress

Forums

Editing footer.php to replace text with an image (3 posts)

  1. colormechanics
    Member
    Posted 2 years ago #

    Hello!! I'm doing some work on a wordpress site that was started by another designer using the CLASS theme by brainbuzzmedia. I need to edit one bit of the footer.php so I can replace the text that's supposed to go there with an image, or maybe even modifying the text placement, color and size. Any suggestions? Here's the bit I want to edit:

    <div class="copyright">

    <!--Footer Text from Admin Options -->
    <?php $footertext = get_option('bb_footer_text'); ?>
    <p class="tiny"><?php if($footertext != NULL) {echo $footertext;} else {echo '
    Get a quote. Remove after purchase.';} ?></p>

  2. Tirumal
    Member
    Posted 2 years ago #

    Place the image you want to replace with in your-themes/images folder and replace above code with the following.

    <div class="copyright">
    <!--Footer Text from Admin Options -->
    <p class="tiny"><img src="<?php bloginfo('template_directory'); ?>/images/footer.jpg" alt="" /></p>

    Replace footer.jpg with image name you want. Hope this works for you.

  3. colormechanics
    Member
    Posted 2 years ago #

    Hi Tirumal, thanks for your reply!! I've been trying that but not getting it right... It now seems that I have a duplicate <div class="copyright">, which I spotted using firebug, however, I can't find where in the syte sheet or footer.php it is, hence can't erase it!! Having the duplicate doubles the length of the copyright wrapper... any idea how to remove it?

    Here's how it looks like from firebug:

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

Topic Closed

This topic has been closed to new replies.

About this Topic