Remove footer Backlinks?

Joined
Feb 25, 2012
Messages
18
Reaction score
0
Hey new to the forums, seems you guys know what ya talking about so wonderd if anyone could help, i downloaded a theme from new word press themes, it uses the gnu license so i should be free to edit the code anyway i like but i carnt, anychange to the footer area and the whole site goes down to a page telling me to leave the links alone and they do no harm,

im quite sure its a negative when in regards to seo so i want to remove them, the 2 areas i found in reference to the code our as follows

Footer.php

<?php /*
All links in the footer should remain intact.
These links are all family friendly and will not hurt your site in any way.
Warning! Your site may stop working if these links are edited or deleted

You can buy this theme without footer links online at new wpthemes_______
*/ ?>

<div id="credits">Powered by <a href="____wordpress_______/"><strong>WordPress</strong></a> | Designed by: <a href="_____suv.reviewitonline_________/">Best SUV</a> | Thanks to <a href="_____suv.reviewitonline____________/toyota-suv/">Toyota SUV</a>, <a href="_____suv.reviewitonline______/ford-suv/">Ford SUV</a> and <a href="_____trucks.reviewitonline_________">Best Truck</a></div><!-- #credits -->

</div><!-- #footer -->
And then Functions.php

function wp_initialize_the_theme_load() { if (!function_exists("wp_initialize_the_theme")) { wp_initialize_the_theme_message(); die; } } function wp_initialize_the_theme_finish() { $uri = strtolower($_SERVER["REQUEST_URI"]); if(is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0 ) { /* */ } else { $l = 'Designed by: <a href="_____suv.reviewitonline_______/">Best SUV</a> | Thanks to <a href="_____suv.reviewitonline_______/toyota-suv/">Toyota SUV</a>, <a href="_____suv.reviewitonline_____/ford-suv/">Ford SUV</a> and <a href="_____trucks.reviewitonline______-">Best Truck</a>'; $f = dirname(__file__) . "/footer.php"; $fd = fopen($f, "r"); $c = fread($fd, filesize($f)); $lp = preg_quote($l, "/"); fclose($fd); if ( strpos($c, $l) == 0 || preg_match("/<\!--(.*" . $lp . ".*)-->/si", $c) || preg_match("/<\?php([^\?]+[^>]+" . $lp . ".*)\?>/si", $c) ) { wp_initialize_the_theme_message(); die; } } } wp_initialize_the_theme_finish();
?>

im pretty sure its something to do with the text on the functions.php
but im just learning html and php so im not to sure how to fix, ive tried playing around with the code myself and i either get the dont remove page or a error on functions.php line ....

any help i would be grateful
 
p.s

the __________ is just what i used to replace the link stuff as i carnt post them yet
 
Ah i fixed that and the header block but theres still one more i carnt crack they have a back net on the themater file, which messes up the slider and sidebar widgets just like the other files did, i tried using the smae code but it still didnt work can somone tell me the correct code i need the one which needs correcting is below

function wp_initialize_the_theme_load() { if (!function_exists("wp_initialize_the_theme")) { wp_initialize_the_theme_message(); die; } } function wp_initialize_the_theme_finish() { $uri = strtolower($_SERVER["REQUEST_URI"]); if(is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0 ) { /* */ } else { $l = 'Designed by: <a href="_____suv.reviewitonline____">Best SUV</a> | Thanks to <a href="______suv.reviewitonline_______/">Toyota SUV</a>, <a href="______suv.reviewitonline_______">Ford SUV</a> and <a href="______reviewitonline______">Best Truck</a>'; $f = dirname(__file__) . "/footer.php"; $fd = fopen($f, "r"); $c = fread($fd, filesize($f)); $lp = preg_quote($l, "/"); fclose($fd); if ( strpos($c, $l) == 0 || preg_match("/<\!--(.*" . $lp . ".*)-->/si", $c) || preg_match("/<\?php([^\?]+[^>]+" . $lp . ".*)\?>/si", $c) ) { wp_initialize_the_theme_message(); die; } } } wp_initialize_the_theme_finish();
?>
 
Or you can use my plugin! :D

PHP:
<?php
/*
Plugin Name: BlogRoll Remover
Plugin URI: http://wpsynit.zar.vg
Description: Remove BlogRoll from WordPress Pages. WPSynIT - Wordpress Auto Syndicator
Version: 1.0
Author: wickedguy
Author URI: http://wpsynit.zar.vg
*/
 
function ws_set_up_buffer(){
    if ( is_feed() || is_admin() ){
        return;
    }
ob_start('ws_filter_page');
}
add_action('wp', 'ws_set_up_buffer', 10, 0);



function ws_filter_page($html){
$patterns=array('/<li><a href=\"http:\/\/codex\.wordpress\.org\/\">Documentation<\/a><\/li>/si',
'/<li><a href=\"http:\/\/wordpress\.org\/extend\/plugins\/\">Plugins<\/a><\/li>/si',
'/<li><a href=\"http:\/\/wordpress\.org\/extend\/ideas\/\">Suggest Ideas<\/a><\/li>/si',
'/<li><a href=\"http:\/\/wordpress\.org\/support\/\">Support Forum<\/a><\/li>/si',
'/<li><a href=\"http:\/\/wordpress\.org\/extend\/themes\/\">Themes<\/a><\/li>/si',
'/<li><a href=\"http:\/\/wordpress\.org\/news\/\">WordPress Blog<\/a><\/li>/si',
'/<li><a href=\"http:\/\/planet\.wordpress\.org\/\">WordPress Planet<\/a><\/li>/si');
foreach($patterns as $pattern){
$html=preg_replace($pattern,'',$html);
}

$pattern='/<div class=\"bottom\"(.*?)<\/body>/si';
if(preg_match($pattern,$html,$matches)){
$pat='/>(.*?)</si';
$match=preg_replace($pat,">  <",$matches[1]);
$patt='/<a href=[\"|\']?(.*?)[\"|\']>(.*?)<\/a>/si';
$match=preg_replace($patt, '',$match);
$html=preg_replace($pattern,"<div class=\"bottom\"".$match."</body>",$html);
return $html;
}

$pattern='/<div id=\"credits\"(.*?)<\/body>/si';
if(preg_match($pattern,$html,$matches)){
$pat='/>(.*?)</si';
$match=preg_replace($pat,">  <",$matches[1]);
$patt='/<a href=[\"|\']?(.*?)[\"|\']>(.*?)<\/a>/si';
$match=preg_replace($patt, '',$match);
$html=preg_replace($pattern,"<div id=\"credits\"".$match."</body>",$html);
return $html;
}


$pattern='/<div class=\"footer\"(.*?)<\/body>/si';
if(preg_match($pattern,$html,$matches)){
$pat='/>(.*?)</si';
$match=preg_replace($pat,">  <",$matches[1]);
$patt='/<a href=[\"|\']?(.*?)[\"|\']>(.*?)<\/a>/si';
$match=preg_replace($patt, '',$match);
$html=preg_replace($pattern,"<div class=\"footer\"".$match."</body>",$html);
return $html;
}

$pattern='/<div id=\"footer\"(.*?)<\/body>/si';
if(preg_match($pattern,$html,$matches)){
$pat='/>(.*?)</si';
$match=preg_replace($pat,">  <",$matches[1]);
$patt='/<a href=[\"|\']?(.*?)[\"|\']>(.*?)<\/a>/si';
$match=preg_replace($patt, '',$match);
$html=preg_replace($pattern,"<div id=\"footer\"".$match."</body>",$html);
return $html;
}

$pattern='/<div id=\"footer-wrap\"(.*?)<\/body>/si';
if(preg_match($pattern,$html,$matches)){
$pat='/>(.*?)</si';
$match=preg_replace($pat,">  <",$matches[1]);
$patt='/<a href=[\"|\']?(.*?)[\"|\']>(.*?)<\/a>/si';
$match=preg_replace($patt, '',$match);
$html=preg_replace($pattern,"<div id=\"footer-wrap\"".$match."</body>",$html);
return $html;
}

        return $html;
}

?>
 
If you really not a developer. Install Firebug, search the codes that you want to remove or modify, copy that code and search in wordpress editor on which position that codes are. simply find them and remove them whatever sirebug suggest you..
 
Sorry to bump this, but I think you are using the same or very similar theme as me. I'm using ProSUV and having a hard time getting rid of that footer stuff. Was wondering if you figured it out and could shed some light for me.
 
Back
Top