WordPress.org

Ready to get started?Download WordPress

Forums

Customizr
Adding WordPress credits to footer. (8 posts)

  1. Owen
    Member
    Posted 11 months ago #

    Hi,
    Is there any way I can add some WordPress credits like 'Proudly Powered by WordPress' next to 'Designed by Themes & Co ยท' on my site?
    Thanks!

  2. rdellconsulting
    Member
    Posted 11 months ago #

  3. Owen
    Member
    Posted 11 months ago #

    I can't see the code in class-main-footer.php that you posted here: http://wordpress.org/support/topic/editing-the-copyrightcredits-line-by-adding-my-website-info?replies=4

  4. nikeo
    Member
    Theme Author

    Posted 11 months ago #

    Hi,
    You could do something like this :

    add_filter( 'footer_credits', 'my_credits' );
    
    function my_credits($credits) {
     	$new_credits = sprintf( '<div class="span4 credits"><p> &middot; &copy; %1$s <a href="%2$s" title="%3$s" rel="bookmark">%3$s</a> &middot; Designed by %4$s &middot; Proudly Powered by WordPress</p></div>',
    			    esc_attr( date( 'Y' ) ),
    			    esc_url( home_url() ),
    			    esc_attr(get_bloginfo()),
    			    '<a href="http://www.themesandco.com">Themes & Co</a>'
    		);
     	return $new_credits;
    }
  5. Owen
    Member
    Posted 11 months ago #

    Where do you add the code you pasted above?

  6. nikeo
    Member
    Theme Author

    Posted 11 months ago #

    In your functions.php file

  7. Owen
    Member
    Posted 11 months ago #

    It worked but is there any way to align it in the centre as the copyright info is a bit messed up.

  8. Owen
    Member
    Posted 11 months ago #

    Just updated Customizr and it's looking fine now. Thanks a lot!

Reply

You must log in to post.

About this Theme

About this Topic