Quantcast
Channel: Topic Tag: footer | WordPress.org
Viewing all articles
Browse latest Browse all 13545

Jan Dembowski on "[Theme: Smpl Skeleton] Add/Remove data from Footer"

$
0
0

That's a really cool theme. Seriously, on the Theme Geek Scale™ it's no less than a 9.8 because it's filterable and has actions. Very cool!

Try this:

Create your child theme style.css.

/*
 Theme Name:   Smpl Skeleton Child
 Description:  Smpl Skeleton Child Theme
 Author:       John Doe
 Author URI:   http://example.com
 Template:     smpl-skeleton
 Version:      1.0.0
*/

@import url("../smpl-skeleton/style.css");

Which is pretty basic and you can put your CSS there too after the @import.

Now create a functions.php file in that child theme's directory and put this into it.

<?php

// Remove old copyright text
add_action( 'init' , 'mh_remove_original_credits' );
function mh_remove_original_credits() {
	remove_action('skeleton_footer', 'skeleton_footer_credits',4);
	add_action('skeleton_footer', 'mh_skeleton_footer_credits',4);
}

function mh_skeleton_footer_credits() {
	$footer_extras = skeleton_options('footer_extras');
	$extras  = '<div id="credits">';
	$extras .= $footer_extras;
	$extras .= '<div class="themeauthor">AMAZING SOFTWARE POWERED BY MARTIANS</div>';
	$extras .= "</div>";
	echo apply_filters('skeleton_author_credits',$extras);
}

The first remove_action takes away the old credits line. The second add_action lets you replace it with pretty much anything you want.

I recommend that you put in that "AMAZING SOFTWARE POWERED BY MARTIANS" line but really you can put in anything you like. Or nothing. ;)


Viewing all articles
Browse latest Browse all 13545

Trending Articles