• 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>

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    Thread Starter colormechanics

    (@colormechanics)

    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]

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Editing footer.php to replace text with an image’ is closed to new replies.