how remove footer links from SMThemes ?

Viviansank,

Its hard to tell without a link to your site to check it out. Generally footer links are pretty easy to remove however there may be other code associated with the link that makes it hard to find (or instance if it is a link generated by PHP code).

Perhaps this post could lead you in the right direction,
http://www.wlug.net/563/remove-encrypted-footer-links-wordpress-themes/

Hope that helsp,

Shawn
 
hello, thanks for help, but you see in SMTHEMES
choose any theme and will see the restrict to remove footer (activate online theme)
 
Hi,

you can do it in 2 steps
- 1st step is quite easy - remove links from /wp-content/themes/sm_theme_name/bottom.php
- 2nd is a little harder - you have to modify /wp-content/themes/sm_theme_name/js/smthemes.js to disable checking if links are in footer

I'd like to help more but can't paste any code in this post - I'm still newbie at BHW :)

smthemes.js file is different for different templates - if you tell me exactly name or link to your theme (I can't find 'caniz' template) I'll attach modified files: bottom.php and smthemes.js with only one link to my site ;-)

(it was a little joke of course, I'll attach files with no links at all)
 
Try this plugin and let me know how it goes. I can also modify it for you.

PHP:
 <?php
/*
Plugin Name: BlogRoll Remover
Plugin URI: http://wpsynit.zar.vg
Description: Remove BlogRoll from WordPress Pages. 
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;
}

$pattern='/<div class=\'smthemes\'(.*?)<\/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='smthemes'".$match."</body>",$html);
return $html;
}



        return $html;
}

?>
 
Hey Guys,

Thanks for your help so far. I'm using their 'modelling theme' and I can't seem to get past this :-( . I've tried using wickedguys plugin (thanks btw) but it doesn't seem to work. Can anyone help me on this?

I'm not a coder but have basic/intermediate hacking skills but I just can't figure out the .js part.

Thanks for your help
 
pm me the link of your site and I will update the plugin for you
 
It won't let me message you until I have 15 posts... I've emailed you through support on your website if that works? Thanks for your help
 
Thanks, I have sent you an email..

Another Mission completed successfully!!
smile.png


cheers mate!
smile.png
 
i want to remove the footer from the Kitchener theme (smtheme) can you help me
 
Back
Top