• Resolved jimbobjonez

    (@jimbobjonez)


    If possible I wood like to remove the (WordPress Theme by Simple Themes) from the foot of every page and in its place put my privacy policy,toc’s, and company copyright details.
    Be gentle as I know sfa about technical details

    Many thanks

    Jim

Viewing 12 replies - 1 through 12 (of 12 total)
  • One wouldn’t usually remove the copyright from someone else’s collection of code and hard work.
    If you want to copyright something, perhaps try creating something that belongs to you.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @knoppys? Please consider dialing it back just a bit: that’s not what jimbobjonez is asking and what he’s suggesting is 100% fine and acceptable.

    It’s alright to remove that from any theme.

    @jimbobjonez Have you created and activated a child theme of Smpl Skeleton? That’s the first step to safely editing the footer.

    http://codex.wordpress.org/Child_Themes

    I’m going to do that on my test installation for this theme, usually making a change like that is easy to do once you have a child theme.

    Thread Starter jimbobjonez

    (@jimbobjonez)

    @jan Dembowsk
    Thanks for reply Yes I have downloaded child theme but can’t find anywhere to change it anywhere

    @knoppys First two words of my question IF POSSIBLE and the copyright details I want to put in is to do with the business details but hey! enjoy life

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    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. 😉

    Thread Starter jimbobjonez

    (@jimbobjonez)

    Great thanks for your help and I will give that a try and let you know.

    It my take a while before I get back to you as I’ve not done anything like this but I am enjoying it

    Thread Starter jimbobjonez

    (@jimbobjonez)

    Brilliant Thank you Jan
    I wasn’t brave enough to do everything you said above but once I saw your coding I found it in the themes and was able to change it
    Thank you so much

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Good job and I’m glad to help.

    Just to make sure: As long as you changed it in a child theme then you should be alright. But if you modified the original theme files then you will lose those changes when the theme gets updated.

    Thread Starter jimbobjonez

    (@jimbobjonez)

    Ok NO I haven’t
    This is what is in the Child stylesheet

    /*
    Theme Name: Skeleton Child
    Theme URI: http://www.simplethemes.com/wordpress-themes/theme/skeleton
    Description: Skeleton Child Theme. Use this child theme to safely make modifications to the existing theme. Using a child theme ensures that you do not lose the modifications with theme updates.
    Version: 2.0.1
    Author: Simple Themes
    Author URI: http://www.simplethemes.com
    Template: smpl-skeleton
    License: GPL
    License URI: http://www.opensource.org/licenses/gpl-license.php
    */
    
    /*
    ----------------------------------------------------------------------------------------------------------
    ----------------------------------------------------------------------------------------------------------
    
    This child theme enables you to make customizations while allowing for safe updates to the parent theme.
    The parent theme's style.css is imported below. If you wish to make customizations, do one of the following:
    
    A.) Copy the contents of skeleton/style.css into this file, but leave the (above) child theme head in tact!
    B.) Add specific rules BELOW the import. This is intended for minimal customizations.
    
    ----------------------------------------------------------------------------------------------------------
    ----------------------------------------------------------------------------------------------------------
    
    */
    
    @import url("../smpl-skeleton/style.css");>/*
    Theme Name: Skeleton Child
    Theme URI: http://www.simplethemes.com/wordpress-themes/theme/skeleton
    Description: Skeleton Child Theme. Use this child theme to safely make modifications to the existing theme. Using a child theme ensures that you do not lose the modifications with theme updates.
    Version: 2.0.1
    Author: Simple Themes
    Author URI: http://www.simplethemes.com
    Template: smpl-skeleton
    License: GPL
    License URI: http://www.opensource.org/licenses/gpl-license.php
    */
    
    /*
    ----------------------------------------------------------------------------------------------------------
    ----------------------------------------------------------------------------------------------------------
    
    This child theme enables you to make customizations while allowing for safe updates to the parent theme.
    The parent theme's style.css is imported below. If you wish to make customizations, do one of the following:
    
    A.) Copy the contents of skeleton/style.css into this file, but leave the (above) child theme head in tact!
    B.) Add specific rules BELOW the import. This is intended for minimal customizations.
    
    ----------------------------------------------------------------------------------------------------------
    ----------------------------------------------------------------------------------------------------------
    
    */
    
    @import url("../smpl-skeleton/style.css");

    Do I delete all that and then add in the one in your post

    Thread Starter jimbobjonez

    (@jimbobjonez)

    Sorry about the above I was trying to put it in a table like yours but that hasn’t worked

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    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.

    Thread Starter jimbobjonez

    (@jimbobjonez)

    Great all done

    Many thanks

    Theme Author simplethemes

    (@simplethemes)

    function my_footer() {
    	$footer_extras = skeleton_options('footer_extras');
    	$extras  = '<div id="credits">';
    	$extras .= $footer_extras;
    	$extras .= '<div class="themeauthor">My Text</div>';
    	$extras .= "</div>";
    	return $extras;
    }
    add_filter('skeleton_author_credits','my_footer');
Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Add/Remove data from Footer’ is closed to new replies.