1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Remove footer Backlinks?

Discussion in 'Blogging' started by Above and Below, Feb 25, 2012.

  1. Above and Below

    Above and Below Newbie

    Joined:
    Feb 25, 2012
    Messages:
    18
    Likes Received:
    0
    Occupation:
    Putting bread on the table
    Location:
    Merseyside
    Home Page:
    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

    And then Functions.php

    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
     
  2. Above and Below

    Above and Below Newbie

    Joined:
    Feb 25, 2012
    Messages:
    18
    Likes Received:
    0
    Occupation:
    Putting bread on the table
    Location:
    Merseyside
    Home Page:
    p.s

    the __________ is just what i used to replace the link stuff as i carnt post them yet
     
  3. Above and Below

    Above and Below Newbie

    Joined:
    Feb 25, 2012
    Messages:
    18
    Likes Received:
    0
    Occupation:
    Putting bread on the table
    Location:
    Merseyside
    Home Page:
    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

     
  4. sujoydhar

    sujoydhar Senior Member

    Joined:
    Aug 20, 2011
    Messages:
    930
    Likes Received:
    1,025
    Occupation:
    Student
    Location:
    www.IAMSUJOY.com
    Home Page:
  5. wickedguy

    wickedguy Supreme Member

    Joined:
    Jul 22, 2009
    Messages:
    1,402
    Likes Received:
    1,379
    Location:
    BHW--> South Africa
    Home Page:
    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'100);



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

    ?> 
     
  6. Khalid Irfan

    Khalid Irfan Newbie

    Joined:
    Sep 20, 2011
    Messages:
    23
    Likes Received:
    0
    Occupation:
    eMarketer
    Location:
    Karachi, Pakistan
    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..
     
  7. KickAzzDude

    KickAzzDude Newbie

    Joined:
    Mar 28, 2012
    Messages:
    6
    Likes Received:
    0
    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.