WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Inserting Copyright Symbol in 2012 Child Theme (12 posts)

  1. WysdomTree
    Member
    Posted 1 year ago #

    Hi,

    Have just started adding content to my website and seeking some help to insert Copyright info in Footer of my 2012 Child Theme...even a nod in the general direction would be much appreciated.
    Learning how to make changes to the css is slow going for me.

    http://www.wysdomtree.com
    Thank you,
    Danielle

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    Use a HTML entity for the copyright symbol.

  3. WysdomTree
    Member
    Posted 1 year ago #

    Thanks Andrew (again :))...just checked that link out...can you tell me if one modifies the footer by writing a general rule in the childtheme css below the import rule or would a whole section have to be pasted in...just going to check out the twenty twelve parent theme right now to see if I can figure out where this is.
    Thanks

  4. WysdomTree
    Member
    Posted 1 year ago #

    Well, I found the twenty twelve parent footer php - so would this be inserted, with the appropriate changes, into the child theme below my overriding rules? (have one for line spacing so far)
    Appreciate your help with this,
    Danielle

  5. WysdomTree
    Member
    Posted 1 year ago #

    Based on Esme's advice to diddlyidi have inserted footer php into my childtheme and attempting to follow the rest of her advice

    <p>Copyright 2012 <?php bloginfo('Name');?></p>

    but not sure where to insert this in the footer php pasted below

    <?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">
    <div class="site-info">
    <?php do_action( 'twentytwelve_credits' ); ?>
    " title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentytwelve' ); ?>" rel="generator"><?php printf( __( 'Proudly powered by %s', 'twentytwelve' ), 'WordPress' ); ?>
    </div><!-- .site-info -->
    </footer><!-- #colophon -->
    </div><!-- #page -->

    <?php wp_footer(); ?>
    </body>
    </html>

    also, does the name of my site Wysdom Tree fit into her line of code here: ('Name')

    Thanks for your help,
    Danielle

  6. WysdomTree
    Member
    Posted 1 year ago #

    Also, she did advise to insert

    <p>Copyright 2012 <?php bloginfo('Name');?></p>

    after

    <?php do_action( 'twentytwelve_credits' ); ?>

    but that isn't working for me

    thanks :)

  7. Samuel Wood (Otto)
    Tech Ninja
    Posted 1 year ago #

    Her advice is correct. Copy the footer.php into your child theme, then edit it there, and voila. Nothing special to it. So we need more info to figure out what you're doing wrong, basically.

  8. WysdomTree
    Member
    Posted 1 year ago #

    Hi Samuel

    I will try re-insertng it in a particular spot and then post it here to see if my error is obvious to you

    since my child css doesn't have that much on it yet I will include it all and bold the area where Esme's code was inserted...thank you in advance for taking a look at it

    /*
    Theme Name: Twentytwelve Child
    Description: Child theme for the twentytwelve theme
    Author: Danielle Kreps
    Template: twentytwelve
    */

    @import url("../twentytwelve/style.css");

    .entry-content p, .entry-summary p, .comment-content p {
    line-height: 1.51429;
    margin: 0 0 1.71429rem;
    }

    <?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">
    <div class="site-info">
    <?php do_action( 'twentytwelve_credits' ); ?><p>Copyright 2012 <?php bloginfo('Wysdom Tree');?></p>
    " title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentytwelve' ); ?>" rel="generator"><?php printf( __( 'Proudly powered by %s', 'twentytwelve' ), 'WordPress' ); ?>
    </div><!-- .site-info -->
    </footer><!-- #colophon -->
    </div><!-- #page -->

    <?php wp_footer(); ?>
    </body>
    </html>

    hopefully it is something quite simple and I do appreciate the help,
    thanks, Danielle

  9. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Where are you putting this code? It looks like you've put it in the style.css file?? That's totally wrong -- when you modify a php file, you need to make a copy of the footer.php file and put that into the child theme file -- and make the changes in the new footer.php file. It's a separate file -- has nothing to do with the CSS file.

  10. WysdomTree
    Member
    Posted 1 year ago #

    AAAAAAAAAHHHHHHH!!!!!!!! lolol
    okay, I will now learn how to put this file into the child theme file

    thank you for your clarifying observation :)...but assuming this footer php were in the right place did I insert the code correctly?

    thank you so much (too grateful to even be embarrassed lol)
    Danielle

  11. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Ha ha ha -- hey, no worries, happens to everyone at some point! Just keep at it and it will get easier and more "logical."

    Yes, that looks correct.

  12. WysdomTree
    Member
    Posted 1 year ago #

    Once I added the footer php file to the Twenty Twelve Child Theme rather than pasting it in the child theme css :)it did indeed work!

    So thank you to all who helped with this thread - I do appreciate it!

Topic Closed

This topic has been closed to new replies.

About this Topic