WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to display footer in Twenty Twelve child theme (6 posts)

  1. Prolet
    Member
    Posted 1 year ago #

    Please excuse me if the question is very stupid, but I can't figure out how to display a footer in 2012 child theme :(
    I did read many posts in order to find out, but most of them are how to add widget, copyright...etc.
    I'm on step one-how to display footer? Later I'll think how to fill it up.
    Please help!

    Best regards,
    Prolet

    NB here is the code of my footer.php if it's of any help:

    [please mark any posted code - http://codex.wordpress.org/Forum_Welcome#Posting_Code - some of the code below is corrupted]

    <?php
    /**
     * 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">
    
    		<?php /*
    		<div class="footer-right">
    			<p>
    				<a href="http://www.ohsobelle.com/terms-and-conditions/ ‎" title="Terms and conditions"><img src="http://www.ohsobelle.com/wp-content/themes/moi-me/images/icon-tc.png" title="Terms and conditions"></a>
    				<a href="http://www.ohsobelle.com/site-info/" title="Site info"><img src="http://www.ohsobelle.com/wp-content/themes/moi-me/images/icon-info.png" title="Site info"></a>
    				<a href="http://www.facebook.com/pages/Oh-so-Belle/121186791391428" title="Join us on facebook"><img src="http://www.ohsobelle.com/wp-content/themes/moi-me/images/icon-facebook.png" title="Join us on facebook"></a>
    				<a href="http://www.ohsobelle.com/contact-us/" title="Site info"><img src="http://www.ohsobelle.com/wp-content/themes/moi-me/images/icon-contact.png" title="Contact us"></a>
    			</p>
    		</div>
    
    		<div class="site-info">
    			<?php do_action( 'twentytwelve_credits' ); ?>
    
    		</div><!-- .site-info -->
    		*/
    		?>
    	</footer><!-- #colophon -->
    </div><!-- #page -->
    
    <?php wp_footer(); ?>
    </body>
    </html>
  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    with this line:

    <?php /*

    you are starting a php comment section which does not get shown in the browser;

    the section ends with:

    */
    ?>

    what are you trying to show in the footer?

  3. Prolet
    Member
    Posted 1 year ago #

    Hi alchymyth and thank you for your quick respond!
    I don't know absolutely anything :( I took this project few days ago and I'm trying to finish it.
    The child theme is built by somebody else and I'm not very confident with my coding knowledge...
    I just want to have a normal footer to display widgets and some links.
    Can you give me some directions, please?
    Thank you for your time!
    ...................
    aaaaaaaa, now I understand :)
    I have to put the content between <?php/* and the closing tag :)
    I should read before to write...
    THANK YOUUUUUU!

  4. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    I have to put the content between <?php/* and the closing tag :)

    you do have some code between those tags;

    you would actually need to remove those lines.

    I just want to have a normal footer to display widgets and some links.

    possibly start with an unedited footer.php of Twenty Twelve - http://themes.svn.wordpress.org/twentytwelve/1.1.1/footer.php

  5. Prolet
    Member
    Posted 1 year ago #

    Dear alchymyth,
    Very fast I found out that I'm too ignorant to understand what is going on :)
    Therefore I did exactly what you suggested - just copy/paste 202 footer.php and that's it :)
    And I felt so successful :D

    It turns out in the end, that we are going without footer :)

    Thank you very much for your time!

    Best,
    Prolet

  6. Prolet
    Member
    Posted 6 months ago #

    Solved

Topic Closed

This topic has been closed to new replies.

About this Topic