Need to delete footer links on WP theme

Code:
<?php
/*
Plugin Name: Disable Footer Links
Plugin URI: http://www.blackhatworld.com
Description: This plugin disables footer links for a specific theme. Shouldn't do anything to other themes.
Author: BHW
Version: 1.0
*/


# this hides footer links, but they're still there so they might be passing juice 
function bhw_custom_css(){
?>
	<style type="text/css" media="all">
		#footer .footer_txt .smthemes{ display:none; }
	</style>	
<?php	
}

add_action('wp_head','bhw_custom_css');


# time to disable them completely.

add_action('init','ob_start');
add_action('shutdown','bhw_process_footer');

function bhw_process_footer(){
	$c = ob_get_clean();
	echo str_replace("<div class='smthemes'>Designed by <a href='http://smthemes.com/' target='_blank'>WordPress themes</a>, thanks to: <a href='http://wpdis.co/' target='_blank'>Simple WordPress theme</a>, <a href='http://lizardthemes.com' target='_blank'>LizardThemes.com</a> and <a href='http://fthe.me/moustachey-a-blog-theme-with-extra-gusto/' target='_blank'>Blog themes</a></div>",'',$c);	
}

1. Save this code to a file disable-footer-links.php.
2. Upload to /wp-content/plugins/
3. Go to yoursite.com/wp-admin/, go to plugins, activate "Disable Footer Links"

Should work.
 
hi,
let me know if you still need help with smthemes footer links - I can atach 2 modified files: bottom.php and smthemes.js
 
hi
it would be nice to post that bottom.php and smthemes.js files!
thanks!!!
 
hi,
let me know if you still need help with smthemes footer links - I can atach 2 modified files: bottom.php and smthemes.js

Hi, i have installed hiphop theme from smthemes, after i removed the footer links from bottom.php , i get a red bar on my footer saying """Please return following links to the footer: Designed by smthemes thanks to: ... and webhosting 2013""""

I have removed the eval functions from smthemes.js as well, nothing works..
Can any of you help
 
Hi, i have installed hiphop theme from smthemes, after i removed the footer links from bottom.php , i get a red bar on my footer saying """Please return following links to the footer: Designed by smthemes thanks to: ... and webhosting 2013""""

I have removed the eval functions from smthemes.js as well, nothing works..
Can any of you help
look in the header there should also be a code which have to be remooved
 
look in the header there should also be a code which have to be remooved
I can not see anything . this is my header.php
<?php
// html code of the header placed in top.php
global $SMTheme, $return;
$SMTheme->get_layout();
if(!isset($_POST['smt_layout'])){
get_template_part('top');
} else {
$return['title']=$SMTheme->show_title(false);
}


if ( isset($_POST['smt_layout'])&&$_POST['smt_layout']!=$SMTheme->layout ) {
$return['div']='#content .container';
ob_start();
}


if (!isset($_POST['smt_layout'])||$_POST['smt_layout']!=$SMTheme->layout) {
get_sidebar();
?> <div id="main_content"> <?php

}

if ( isset($_POST['smt_layout'])&&$_POST['smt_layout']==$SMTheme->layout ) {
$return['div']='#main_content';
ob_start();
}
 
Sorry don't have yaho messenger, just create skype you will need it, if you want to keep in touch with people from bhw
 
Ty ijof9 for that code,
but ur plugin hide only the links.
is it possible to remove the code too? or to add a nofollow attribute... evry change show a red bar at footer.
ty
 
Ty ijof9 for that code,
but ur plugin hide only the links.
is it possible to remove the code too? or to add a nofollow attribute... evry change show a red bar at footer.
ty

I've written that a while ago, but if you study the bhw_process_footer() function carefully, you'll see it should replace the links with nothing, ergo removing them. If it doesn't work, you can just replace the replacement source.
 
Appearence >> Editor >> Footer.PHP...
Edit It.. You Can Also Hire Someone From Fiverr For $5 For This Job.. Hope That Helps..
 
GSY 159
Can you please p m me your Skyp3?
I have kind of the same problem.
I hope you can help me out.
 
I can help to remove the encrypted links i found a way but i cant post any thing because i dont have the permission.
so if any one want give me your mail and i wil mail you a link.
 
Code:
<?php
     Plugin Name: Disable Footer Links
[/QUOTE]

Hi, 
thanks for your support.


I installed the your plugin and the copyright on the footer has disappeared. Perfect.


But if I see the HTML code, the copyright is still present.
So I ask me: the author of theme could not find anyway its copyright through the search engine?


Thanks.
 
Last edited:
Just open the "footer" template file and manually delete the links from the file.
 
It's impossibile, because I remove HTML manually, this screen appears:
- - - - -
Please return following links to the footer:
Designed by Free Business WordPress Themes, thanks to: raspberry ketone review, Rent to Own and free wp themes
- - - - -

Sorry, my template is SmThemes Architecture.
 
Last edited:
Back
Top