WordPress.org

Ready to get started?Download WordPress

Forums

How to remove/replace the WordPress footer in TwentyTen (17 posts)

  1. Pete
    Member
    Posted 4 years ago #

    1. Am I allowed to remove the remove/replace the WordPress footer in TwentyTen?

    if so...

    2. How do I remove/replace the WordPress footer in TwentyTen with a nifty functions-piece-of-code thingy.

    Love you all

    Pete :)

  2. Pete
    Member
    Posted 4 years ago #

    I want to use functions.php as when I update the theme I lose any manual changes to the theme itself

  3. Pete
    Member
    Posted 4 years ago #

    bump :)

  4. snshenoy
    Member
    Posted 4 years ago #

    http://www.mahalasa.org/index.php: The footer is properly aligned on my home page, but way off on other pages? How can I fix this?

  5. snshenoy
    Member
    Posted 4 years ago #

    OK, I got it by adding the following:
    /* =Footer
    -------------------------------------------------------------- */

    #footer {background: #728E86 url(images/footerbg.gif) repeat-x;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;

  6. Pete
    Member
    Posted 4 years ago #

    Please don't hijack posts with a different topic

  7. Pete
    Member
    Posted 4 years ago #

    This does it...

    // Adds css to the theme
    	function custom_colors() {
    	global $user_level;
    	if ($user_level != '10' ) {
    	   echo '<style type="text/css">
    		   #site-generator {display:none;}
    		 </style>';
       }
    }
    
    add_action('wp_head', 'custom_colors');
  8. Drain0
    Member
    Posted 3 years ago #

    what file is that?

  9. Pete
    Member
    Posted 3 years ago #

    I posted this in the functions.php file but i see it gets replaced when the theme gets updated. Still it's not hard to paste into the file each time

  10. Make a child theme :)

  11. Pete
    Member
    Posted 3 years ago #

    no idea how to do 'em

  12. http://codex.wordpress.org/Child_Themes

    (which is the first hit off a google of 'WordPress Child Theme' by the way)

  13. Pete
    Member
    Posted 3 years ago #

    So could I effectively make a new child theme without any changes and just have a new functions.php file with the added code above?

  14. And a style.css to tell it where the parent is, yes :)

    And never worry about a theme upgrade killing your changes again :)

  15. Pete
    Member
    Posted 3 years ago #

    cool I'll give it ago :)

  16. Pete
    Member
    Posted 3 years ago #

    It worked!!! whoo hooo. This child theme stuff could be pretty cool hey! ;)

  17. yksin
    Member
    Posted 3 years ago #

    perthmetro -- I couldn't get the php solution you posted above to work properly. But one quicky CSS style change turns out to work just fine.

    Simply add:

    #site-generator { display:none; }

    to your style.css file. And voila!, it be gone!

    (As advised by ipstenu, best to use child themes of twentyten for this & any other style changes.)

Topic Closed

This topic has been closed to new replies.

About this Topic