Quantcast
Viewing all articles
Browse latest Browse all 13545

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

I fixed the code using backticks.

The style.css file is good but the actions occur in the child theme's functions.php file.

The parent theme file gets left alone but the themes/smpl-skeleton-child/functions.php file get these lines put 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);
}

Just edit or remove the credits text as you see fit.


Viewing all articles
Browse latest Browse all 13545

Trending Articles