Ready to get started?Download WordPress


How do I add an html banner to my website footer? (6 posts)

  1. missteacup
    Posted 1 year ago #

    Hi everyone,

    I am trying to post my web hosts' banner in my website footer, but I don't know how to do it.
    I am using a child theme for the twenty twelve theme, and I have the html, I just need to post it in the right place. Where exactly should I post it (within the footer.php I'm assuming)?
    Thank you!

  2. mbeasi
    Posted 1 year ago #

    Hi missteacup,

    I guess this depends on where you want it to appear. I'd put it in footer.php either before or after the site info section. If you want it below, just stick your html under the closing tag (</div>) for that section, but before the closing tag for the footer (</footer>).

  3. missteacup
    Posted 1 year ago #

    Thank you very much! My footer looks a bit different. Where would I put it here? (Sorry, I really have no clue!) (The center of the footer would be just fine.)

    * The template for displaying the footer.
    * Contains footer content and the closing of the
    * #main and #page div elements.
    * @package WordPress
    * @subpackage Twenty_Twelve
    * @since Twenty Twelve 1.0
    </div><!-- #main .wrapper -->
    <footer id="colophon" role="contentinfo">
    <div class="site-info">
    <?php do_action( 'twentytwelve_credits' ); ?>
    " title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentytwelve' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentytwelve' ), 'WordPress' ); ?>
    </div><!-- .site-info -->
    </footer><!-- #colophon -->
    </div><!-- #page -->

    <?php wp_footer(); ?>

  4. mbeasi
    Posted 1 year ago #

    Depending on whether you want it above or below the site credits, I'd put it either right after this:

    <footer id="colophon" role="contentinfo">

    Or right after this:

    </div><!-- .site-info -->

  5. missteacup
    Posted 1 year ago #

    Thank you so much! Just tried it and it worked well. Thanks!!!

  6. mbeasi
    Posted 1 year ago #

    You're welcome! So glad I could help!

Topic Closed

This topic has been closed to new replies.

About this Topic