How to remove footer credit link from a WP theme?(help needed)

fxkool

Regular Member
Joined
Feb 28, 2015
Messages
415
Reaction score
115
Hi there,

I am kinda stuck at this PHP and could not find out how exactly I need to change the php to remove the powered by notice at the bottom. WP theme - Skin. Here's actually how the footer.php looks like (very weird to be blunt honest)

Code:
<?php
/*
 * Footer layouts have been added from hooks.php
 *
 * @since Skin 1.0
*/
?>
<!--
    </div>  id="canvas"

</div>    id="container" -->
<?php wp_footer(); ?>


<?php // echo esc_attr(get_theme_mod('google_analytics')); ?>
</body>
</html>

It has come to my attention that hooks.php is something that probably needs to be ammended but I am a complete noob when it comes to PHP changes.

Code:
<?php

/*
 * We have created our custom hooks for this theme, so the theme can be flexible and extendable throught child theme.
 * For more details https://codex.wordpress.org/Plugin_API
 *
 *
 * @package WordPress
 * @subpackage Skin
 * @since Skin 1.0
*/


/*
 * Adding custom layout files selected in the theme customizer by the user.
 * Priority level set to 60. Higher the number, the lower the priority.
 *
 * @since Skin 1.0
*/

// get_theme_mod('featured_on_off','1');

// For Adding Featured area in HomePage
add_action('skin_index_content_area_hook','skin_featured_file_include_home', 40 );

function skin_featured_file_include_home() {
      if ( esc_attr( get_theme_mod('home_switch_new','0') ) == '1' ) {
       
          if ( esc_attr( get_theme_mod('featured_style_selector', 'skin_1') ) === 'skin_1') {
              get_template_part( 'elements/featured/featured', '1' );
          }
          if ( esc_attr( get_theme_mod('featured_style_selector', 'skin_1') ) === 'skin_2') {
              get_template_part( 'elements/featured/featured', '2' );
          }
          if ( esc_attr( get_theme_mod('featured_style_selector', 'skin_1') ) === 'skin_3') {
              get_template_part( 'elements/featured/featured', '3' );
          }
    }
}

// For Homepage, Archive page and others
add_action('skin_index_content_area_hook','skin_template_file_include_home', 60 );

function skin_template_file_include_home() {
       
    if ( esc_attr( get_theme_mod('post_area_style_selector', 'skin_1') ) === 'skin_1') {
              get_template_part('elements/home-layout/layout','1');
          }
    if ( esc_attr( get_theme_mod('post_area_style_selector', 'skin_1') ) === 'skin_2') {
              get_template_part('elements/home-layout/layout','2');
          }
    if ( esc_attr( get_theme_mod('post_area_style_selector', 'skin_1') ) === 'skin_3') {
              get_template_part('elements/home-layout/layout','3');
          }
 
}


// For Single/Post page.( for single.php )
add_action('skin_single_content_area_hook','skin_template_file_include_single', 60 );

function skin_template_file_include_single() {
    get_template_part('elements/single-layout/layout','1');
}


// For Page Content.( for page.php and template-full.php )
add_action('skin_page_content_area_hook','skin_template_file_include_page', 60 );

function skin_template_file_include_page() {
    get_template_part('elements/template','page-content');
}


// For Archive/Category page.( for archive.php )
add_action('skin_archive_content_area_hook','skin_template_file_include_archive', 60 );
function skin_template_file_include_archive() {
       
    if ( esc_attr( get_theme_mod('post_area_style_selector', 'skin_1') ) === 'skin_1') {
              get_template_part('elements/home-layout/layout','1');
          }
    if ( esc_attr( get_theme_mod('post_area_style_selector', 'skin_1') ) === 'skin_2') {
              get_template_part('elements/home-layout/layout','2');
          }
    if ( esc_attr( get_theme_mod('post_area_style_selector', 'skin_1') ) === 'skin_3') {
              get_template_part('elements/home-layout/layout','3');
          }
 
}

/*
* Adding footer layouts directly to wp_footer() with the priority level set to 2, so layout files is called before Enqueue styles and scripts.
*Enqueued scripts are executed at priority level 20. Higher the number, the lower the priority.
*
* @since Skin 1.0
*/
add_action('wp_footer','skin_template_file_include_footer', 2 );
function skin_template_file_include_footer() {
           
    if ( esc_attr( get_theme_mod('footer_style_selector', 'skin_1') ) === 'skin_1') {
              get_template_part('elements/footer/footer','1');
          }
    if ( esc_attr( get_theme_mod('footer_style_selector', 'skin_1') ) === 'skin_2') {
              get_template_part('elements/footer/footer','2');
          }
    if ( esc_attr( get_theme_mod('footer_style_selector', 'skin_1') ) === 'skin_3') {
             get_template_part('elements/footer/footer','3');
          }
}

Any help would be greatly appreciated. thanks
 
Without seeing your theme, it'd be very difficult to determine the source of the link.

A cursory search shows that this is the Skin Wordpress theme.

Goto wp-content/themes/<YourTheme>/elements/footer

Look for the footer file of the style you're using. (From the above hooks.php - it looks like the theme has 3 styles)

Look for a line -

Code:
 <p>Made by <a href="//xxx" > Theme Developer </a></p>

Comment it. Or remove it.
 
I can help u for free.
I need to check the code of u theme to find the link location.
 
Without seeing your theme, it'd be very difficult to determine the source of the link.

A cursory search shows that this is the Skin Wordpress theme.

Goto wp-content/themes/<YourTheme>/elements/footer

Look for the footer file of the style you're using. (From the above hooks.php - it looks like the theme has 3 styles)

Look for a line -

Code:
 <p>Made by <a href="//xxx" > Theme Developer </a></p>

Comment it. Or remove it.

That works! Thank you soo much - greatly appreciate it!
 
That works! Thank you soo much - greatly appreciate it!
Unfortunately if you don't do it in a child theme it will be back next update. You need to do all modifying in a child theme and never touch core code as WordPress themselves advise
 
Unfortunately if you don't do it in a child theme it will be back next update. You need to do all modifying in a child theme and never touch core code as WordPress themselves advise

Yeah I know that - just too noobe when it comes to child themes either - but I will try to figure it out. thanks again
 
Back
Top