WordPress.org

Ready to get started?Download WordPress

Forums

Attitude
[resolved] Add credits in "copyright" in footer (4 posts)

  1. christinas
    Member
    Posted 5 months ago #

    I would like to add some additional text into the footer - copyright- section.

    Which file do I edit and where?

    (BTW: I cannot find any copyright-info in the functions.php-file. read a thread where this was the solution)

    I use a childtheme.

  2. jbraguez
    Member
    Posted 5 months ago #

    this was already discuss in
    http://wordpress.org/support/topic/remove-or-edit-info-in-footer?replies=28#post-4018588

    It's easy:
    just make a new funstions.php in your child theme and put this code
    and make the changes that you wish.

    <?php
    
    // Remove old copyright text
    add_action( 'init' , 'mh_remove_copy' , 15 );
    function mh_remove_copy() {
            remove_action( 'attitude_footer', 'attitude_footer_info', 30 );
    }
    
    // Add my own copyright text
    add_action( 'attitude_footer' , 'mh_footer_info' , 30 );
    function mh_footer_info() {
       $output = '<div class="copyright">'.'Copyright © [the-year] [site-link] Powered by: SUPER MARTIANS FROM MARS! '.'</div><!-- .copyright -->';
       echo do_shortcode( $output );
    }
  3. christinas
    Member
    Posted 5 months ago #

    Thank you but difnt work. the page just went blank.
    And no info on copyright in that file to begin with as well.

  4. christinas
    Member
    Posted 5 months ago #

    I resolved it.

    In your child theme
    1. Add links in attitude-shortcodes.php found in library - shortcodes
    2. Edit footer-extentions.php found in library - structure

    Voila :)

Reply

You must log in to post.

About this Theme

About this Topic