WordPress.org

Ready to get started?Download WordPress

Forums

Attitude
[resolved] [closed] Remove or edit info in footer? (28 posts)

  1. drewinator
    Member
    Posted 1 year ago #

    Hello,

    Love the theme and very interested in using it! Are we allowed to edit the info in the footer? And if so, how do we edit it? (Did not see where when looking at the stylesheet or footer.php).

    Thanks!

  2. robin90
    Member
    Posted 1 year ago #

    Hi drewinator,

    You are allowed to edit the info in the footer but we would appreciate if you could keep link to us. If you want to change the info then all the information related to footer is located in footer-extensions.php you can create child theme and edit according to your need.

    Rabin

  3. Rabin I haven't looked lately at your theme but is there a way to do that that's easy on the user? A similar question came up for Clean Retina a couple of months ago.

    http://wordpress.org/support/topic/clean-retina-theme-horse-footer?replies=16#post-3644112

    @drewinator from that earlier reply:

    First create a child theme for Attitude. Put the child theme's style.css file in themes/attitude-child.

    /*
    Theme Name: Attitude Child Theme
    Author: Self-Help WordPress User
    Template: attitude
    */
    
    @import url("../attitude/style.css");

    The footer for that theme is added via this action in the parent theme:

    add_action( 'attitude_footer', 'attitude_footer_info', 25 );

    You want to remove that action and add your own instead. To do that in your child theme directory create a blank functions.php file and add these lines to it.

    <?php
    
    // Remove old copyright text
    add_action( 'init' , 'mh_remove_copy' );
    function mh_remove_copy() {
    	remove_action( 'attitude_footer' , 'attitude_footer_info ', 25 );
    }
    
    // Add my own copyright text
    add_action( 'attitude_footer' , 'mh_footer_info' , 25 );
    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 );
    }

    Which on your installation should produce something like

    Copyright © 2013 Drewinator Powered by: SUPER MARTIANS FROM MARS!

    You can read about adding and removing actions in child themes at this site.

    http://themeshaper.com/2009/05/25/action-hooks-wordpress-child-themes/

    Hope that helps.

    Check my work, there's a lot of copy-pasta in this reply...

  4. robin90
    Member
    Posted 1 year ago #

    Hi Jan Dembowski,

    Currently we don't have such options to edit the footer info directly. We are thinking on it. The way you have pointed above is currently the best way to achieve this.
    Thanks for the detail description. :)

    Rabin

  5. It looks like your theme already supports useful tags such as [the-year], [site-link], etc. Personally I think that would be a killer update to your themes. ;)

  6. vermilionaire
    Member
    Posted 1 year ago #

    Hi there,

    I know this post says it's "resolved," but I still can't seem to get it to work. If I create a functions.php file and copy-and-paste the code that's listed above, the only thing that ends up happening is that I can add a line that has the year for copyright, and my site's link. I can't actually delete anything that's there - the stuff that is added ends up above the copyright/site link/citation that was there before. I hate to beat a dead horse, but... does anyone have any other suggestions for getting this to work? It also appears that there is a line break on my page between "Powered" and "by: WordPress." How can I fix this in my child theme?

    Thanks!

  7. It's resolved because the OP or the theme author marked the topic as resolved. It's often more helpful to start your own topic, which theme are you using? Can you provide a link to your site?

    If you are using the same Attitude theme then please start your own topic.

    http://wordpress.org/support/theme/attitude#postform

  8. drewinator
    Member
    Posted 1 year ago #

    Thinking it was the theme author/was not me. I very much appreciate the input/banter in this thread (and thanks in particular to you Jan for the suggested solution!). As it stands...

      -Attitude is a great free theme
      -Attitude would be worth paying for
      -My need to remove the copyright would be worth paying for
      -My current workload/necessity does not warrant the steps needed to remove the copyright in the free theme
      -My project does not warrant paying for a theme (just testing several out at this point)

    Thanks Rabin / thanks again Jan!

  9. rukwaya
    Member
    Posted 1 year ago #

    Hello,
    I am using attitude as my theme, I want to change my footer tex. I did copy-and-paste the code that's listed above and it print the exact footer I want. the problem is that it doesn't remove or delete the old footer! right now I have 2footers, mine and the old one next to it! Can anyone assit please?

  10. I did copy-and-paste the code that's listed above and it print the exact footer I want.

    That's good.

    the problem is that it doesn't remove or delete the old footer! right now I have 2footers

    Not so good. I may have munged this part

    // Remove old copyright text
    add_action( 'init' , 'mh_remove_copy' );
    function mh_remove_copy() {
    	remove_action( 'attitude_footer' , 'attitude_footer_info ', 25 );
    }

    I'll check it in 9 hours or so when I get back home. It's not a hard action to remove so maybe someone else will chime in before then. ;)

  11. rukwaya
    Member
    Posted 1 year ago #

    Hi Jan!
    I've been waiting for feed back, my question was "I want to change my footer tex. I did copy-and-paste the code that's listed above and it print the exact footer I want. the problem is that it doesn't remove or delete the old footer! right now I have 2footers, mine and the old one next to it! Can anyone assit please? " or is there someone else who have an idea? your help is very apprecited. Thank you.

  12. Ha! Found it. Try this functions.php in your child theme. It was the init hook.

    <?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 );
    }

    Edit: Also? Don't bump your topic again, I was busy. ;)

  13. rukwaya
    Member
    Posted 1 year ago #

    Hi!
    Biiiiig thanks, I works! :)
    Thank you Jan for your help, I really do appreciate it.
    :)

  14. vermilionaire
    Member
    Posted 1 year ago #

    Awesome! Thanks so much! This works much better.

  15. A bit late for me to reply but I'm glad to help. ;)

  16. sksaravanan40
    Member
    Posted 1 year ago #

    Thanks.... its working good.....

  17. sksaravanan40
    Member
    Posted 1 year ago #

    i have add some social links.... but it showing header and footer.... i want show only header there no options like this.... help me this :)

  18. jane@accesspublishing.com
    Member
    Posted 12 months ago #

    Hi there,

    I'm new to WordPress and am using the Attitude theme. I would like to edit my footer to read:

    Copyright © 2013 A-1 Glass Website Design by: Access Local Search (with a link to http://www.accesslocalsearch.com)

    http://a1glass.accesstestsites.com/

    Would one of you kind poster please help me out with the code? I am lost. :-(

    Also, I would like to reduce the padding below the social icons in the footer. I was able to reduce the padding above them, but not below.

    Thanks so much for your help.

  19. billlewallen@gmail.com
    Member
    Posted 12 months ago #

    Jan, your solution to modifying the footer is awesome. I can't believe I just discovered this forum. Thanks!

  20. jellyfarmstudios
    Member
    Posted 11 months ago #

    Jan, Placed your code in the functions.php page and I got this error message:
    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/87/10884687/html/wp-content/themes/attitude/functions.php:155) in /home/content/87/10884687/html/wp-content/plugins/si-contact-form/si-contact-form.php on line 1997

  21. TesaI
    Member
    Posted 11 months ago #

    Gracias Jan
    Ha funcionado muy bien

  22. Maria del Mar
    Member
    Posted 10 months ago #

    Thanks Jan, it has worked perfectly.

  23. neofilm
    Member
    Posted 10 months ago #

    Hey, I tried this and it didn't work.I need to remove the "powered by..." information in the footer.

      I created a child theme.
      I created a functions.php and put it in the child theme directory
      I added to the functions.php:

    <?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 );
    }
    ?>

    And nothing happens. Please help. It's for http://www.AlmightyMeals.com

  24. neofilm
    Member
    Posted 10 months ago #

    Nevermind, I hadn't "activated" the child theme;) Thanks!!!

  25. paper_tigress
    Member
    Posted 10 months ago #

    I created a child theme:
    duplicated existing theme, renamed the folder & edited the stylesheet as directed
    Created blank functions.php:
    blanked existing file from parent-folder, inserted the latest code reported to work
    Child theme is active.
    My result is blank white page with only "Copyright © [the-year] [site-link] Powered by: SUPER MARTIANS FROM MARS!". Any thoughts if/where I went wrong?

  26. HoldOrFold
    Member
    Posted 10 months ago #

    You shouldn't change anything in the parent theme like renaming its folder.

    Keep everything in the parent theme the same and don't blank or delete anything, just create a new folder in wp-contents/themes and call it attitude-child or something. Put the new stylesheet in that folder and create a functions.php file in that folder and add the code.

  27. carriecolemanphotography
    Member
    Posted 10 months ago #

    I'd like to change the post footer information in my Twenty Twelve child theme. Right now it says, "This entry was posted in Children on June 18, 2013." I'd like for it to say, "Posted by Carrie"
    I'd also like to add the date of the post underneath the post title.

  28. WPyogi
    Volunteer Moderator
    Posted 10 months ago #

    @carriecolemanphotography - this thread is for Attitude theme and is already resolved. Please start a new thread here:

    http://wordpress.org/support/theme/twentytwelve#postform

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.