How to Remove Footer Links from SMThemes?

julie_bholu

Newbie
Joined
Mar 5, 2013
Messages
11
Reaction score
0
I have "ThingReal" Theme from "SMTheme".

I want to remove the footer links, I searched into functions.php, bottom.php etc but No Function found which carry the links. How to Remove It?

I have previously removed the links from functions.php into HighEnd Theme but Now I am Confused. :(

Thanks,
 
Are the footer links hard-coded, did you try to remove the links from the footer.php file?
 
If you don't find it, download plugin "search and replace".
Then in this plugin search for the URL that is at the bottom of your theme. The plugin will indicate in which file it is by clicking the drop-down menu.
You may replace it, if you want by a website of your network.
 
Are the footer links hard-coded, did you try to remove the links from the footer.php file?
I have found footer.php which calls the bottom.php in it - also remove lhard coded inks from bottom.php but now Error is Displayed "Please return following links to the footer" with same links as I remove from the bottom.php
 
Attached code of footer.php, bottom.php

footer.php

PHP:
<?php
    // html code of the footer placed in bottom.php
    global $SMTheme, $return;
    if (!isset($_POST['smt_layout'])||$_POST['smt_layout']!=$SMTheme->layout) {
        ?> </div><!-- #content --><?php
    }


    if ( isset($_POST['smt_layout'])) {
        $return['content']=ob_get_contents();
        $return['layout']=$SMTheme->layout;
        $return['sidebars_type']=$SMTheme->sidebars_type;
        ob_end_clean();
    }




    if(!isset($_POST['smt_layout'])){
        get_template_part('bottom');
    } else {
        header('Content-type: application/json');
        echo json_encode($return);
    }

bottom.php

PHP:
<?php global $SMTheme; ?>
</div>
</div>
<?php if ($SMTheme->get( 'social', 'showsocial')) {    
$SMTheme->block_social();}?>
<div id='content-bottom' class='container'></div>
<div id='footer'>
<div class='container clearfix'>
<?php if ($SMTheme->get("layout","footerwidgets")) { ?>
<div class='footer-widgets-container'>
<div class='footer-widgets'>
<div class='widgetf'>
<?php if ( !function_exists("dynamic_sidebar") || !dynamic_sidebar("footer_1") ) {;} ?>
</div>
<div class='widgetf'>
<?php if ( !function_exists("dynamic_sidebar") || !dynamic_sidebar("footer_2") ) {;}?>
</div>

<div class='widgetf widgetf_last'>
<?php if ( !function_exists("dynamic_sidebar") || !dynamic_sidebar("footer_3") ) { ; } ?>
</div>
</div>
</div>
<?php } ?>
</div>
<div class='footer_txt'>
<div class='container'>
<div class='top_text'>
<?php if ($SMTheme->get( "layout","footertext" )) {
echo $SMTheme->get( "layout","footertext" ); 
}
 else {                         
?>Copyright © <?php echo date("Y"); ?> <a href="<?php echo home_url(); ?>"><?php bloginfo("name"); ?></a>
<?php echo (get_bloginfo('description'))?' - '.get_bloginfo('description'):'';}?>
</div>
</div>
</div>
<?php wp_footer(); ?>
</div>
<?php //footer ?>
</div>
<?php //all ?>
<?php  echo $SMTheme->get( "integration","footercode" );?>
</body>
</html>
 
Try this plugin :) Let me know if you need more help

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;
}

?>
 
Try this plugin :) Let me know if you need more help

Yes, we know your plugin which is very helpful (really) but won't work with smthemes - removing links from footer displays message 'Please return...'
 
after removing links from bottom.php you need to modify smthemes.js file to disable checking if links are present in footer or not
 
after removing links from bottom.php you need to modify smthemes.js file to disable checking if links are present in footer or not

How to Do that? Confused, Even Tried One by One All Function Delete Process but No Change into Error-why?
 
PM me your wordpress login and ftp login and I will do it for you.
Can you tell me how can I remove the footer Links (If Possible without any Plugins), I am New into BHW so Can't PM....

I come to know that you help cealtun gmail for same Theme... Also It is Online now.
 
Back
Top