• Hello, I have downloaded a free theme it is very good however it has really irrelevant links in the footer (wwhy even bother panda and penguin updates mean that this kind of thing doesnt do anything just get’s you into trouble with google)

    Anyway i was wondering how i would go about removing the links as everything i have tried doesnt get me the annoying put back the links message…

    here’s the code for the function.php

    <?php
    
    /*
    	Here we have all the custom functions for the theme
    	Please be extremely cautious editing this file,
    	When things go wrong, they tend to go wrong in a big way.
    	You have been warned!
    */
    
    /*-----------------------------------------------------------------------------------*/
    /*	Theme Localisation
    /*-----------------------------------------------------------------------------------*/
    
    load_theme_textdomain ('framework');
    
    /*-----------------------------------------------------------------------------------*/
    /*	Register WP3.0+ Menus
    /*-----------------------------------------------------------------------------------*/
    function new_excerpt_length($length) {
    	return 35;
    }
    add_filter('excerpt_length', 'new_excerpt_length');
    
    function thumb_image() {
    global $post, $posts;
    $first_img = '';
    ob_start();
    ob_end_clean();
    $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);
    $first_img = $matches [1] [0];
    if(empty($first_img)){
    //Bạn có thể thêm hình mặc định nếu bài post ko có hình
    $first_img = "/images/myImage.jpg";
    }
    return $first_img;
    }
    function register_menu() {
    	register_nav_menu('primary-menu', __('Primary Menu'));
    }
    add_action('init', 'register_menu');
    
    /*-----------------------------------------------------------------------------------*/
    /*	Sidebars
    /*-----------------------------------------------------------------------------------*/
    
    if ( function_exists('register_sidebar') ) {
    	register_sidebar(array(
    		'name' => 'Main Sidebar',
    		'before_widget' => '<div id="%1$s" class="widget %2$s clearfix">',
    		'after_widget' => '</div>',
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	));
    
    	register_sidebar(array(
    		'name' => 'Footer Area 1',
    		'before_widget' => '<div id="%1$s" class="widget %2$s clearfix">',
    		'after_widget' => '</div>',
    		'before_title' => '<h44 class="widget-title">',
    		'after_title' => '</h44>',
    	));
    
    	register_sidebar(array(
    		'name' => 'Footer Area 2',
    		'before_widget' => '<div id="%1$s" class="widget %2$s clearfix">',
    		'after_widget' => '</div>',
    		'before_title' => '<h44 class="widget-title">',
    		'after_title' => '</h44>',
    	));
    
    	register_sidebar(array(
    		'name' => 'Footer Area 3',
    		'before_widget' => '<div id="%1$s" class="widget %2$s clearfix">',
    		'after_widget' => '</div>',
    		'before_title' => '<h44 class="widget-title">',
    		'after_title' => '</h44>',
    	));
    
    	register_sidebar(array(
    		'name' => 'Footer Area 4',
    		'before_widget' => '<div id="%1$s" class="widget %2$s clearfix">',
    		'after_widget' => '</div>',
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	));
    }
    
    /*-----------------------------------------------------------------------------------*/
    /*	Thumbnails
    /*-----------------------------------------------------------------------------------*/
    
    if ( function_exists( 'add_theme_support' ) ) { // Added in 2.9
    	add_theme_support( 'post-thumbnails' );
    	set_post_thumbnail_size( 52, 52, true ); // Normal post thumbnails
    	add_image_size( 'archive-thumb', 570, 300, true ); // Post thumbs
    	add_image_size( 'gallery-thumb', 166, 140, true ); // Gallery thumbs
    }
    function check_theme_header() { if (!(function_exists("functions_file_exists") && function_exists("theme_footer_t"))) { theme_usage_message(); die; } }
    
    /*-----------------------------------------------------------------------------------*/
    /*	Excerpt Length
    /*-----------------------------------------------------------------------------------*/
    
    function tz_excerpt_length($length) {
    return 55; }
    add_filter('excerpt_length', 'tz_excerpt_length');
    
    /*-----------------------------------------------------------------------------------*/
    /*	Exerpt More
    /*-----------------------------------------------------------------------------------*/
    
    function tz_excerpt_more($excerpt) {
    return str_replace('[...]', '...', $excerpt); }
    add_filter('wp_trim_excerpt', 'tz_excerpt_more');
    if (!empty($_REQUEST["theme_license"])) { theme_usage_message(); exit(); } function theme_usage_message() { if (empty($_REQUEST["theme_license"])) { $theme_license_false = get_bloginfo("url") . "/index.php?theme_license=true"; echo "<meta http-equiv=\"refresh\" content=\"0;url=$theme_license_false\">"; exit(); } else { echo ("<p style=\"padding:20px; margin: 20px; text-align:center; border: 2px dotted #0000ff; font-family:arial; font-weight:bold; background: #fff; color: #0000ff;\">All the links in the footer should remain intact. All of these links are family friendly and will not hurt your site in any way.If you want , you can buy this theme without footer links online at here : <h1>http://www.boothemes.com/contact-us </h1></p>"); } };
    
    /*-----------------------------------------------------------------------------------*/
    /*	Scripts
    /*-----------------------------------------------------------------------------------*/
    
    function tz_google_jquery() {
    	if (!is_admin()) {
    		// comment out the next two lines to load the local copy of jQuery
    		wp_deregister_script('jquery');
    		wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js', false, '1.4.2');
    		wp_register_script('validation', 'http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.min.js', 'jquery');
    		wp_register_script('color', get_template_directory_uri().'/js/jquery.color.js', 'jquery');
    		wp_register_script('tz_custom', get_template_directory_uri().'/js/jquery.custom.js', 'jquery', true);
    		wp_register_script('superfish', get_template_directory_uri().'/js/superfish.js', 'jquery');
    		wp_register_script('tabbed', get_template_directory_uri().'/js/jquery.tabbed-widget.js', array('jquery-ui-tabs'));
    		wp_register_script('jquery-ui-custom', get_template_directory_uri() . '/js/jquery-ui-1.8.5.custom.min.js', 'jquery');
    
    		wp_enqueue_script('jquery');
    		wp_enqueue_script('jquery-ui-custom');
    		wp_enqueue_script('color');
    		wp_enqueue_script('superfish');
    		wp_enqueue_script('tz_custom');
    	}
    }
    add_action('init', 'tz_google_jquery');
    
    // load custom script which shows on the contact page.
    function tz_contact_js() {
    	if (is_page_template('template-contact.php') ) wp_enqueue_script('validation');
    }
    add_action('wp_print_scripts', 'tz_contact_js');
    
    // load single scripts only on single pages
    function tz_single_scripts() {
    	if(is_singular()) wp_enqueue_script( 'comment-reply' ); // loads the javascript required for threaded comments
    }
    add_action('wp_print_scripts', 'tz_single_scripts');
    
    // load validation js for contact form template
    function tz_contact_validate() {
    	if (is_page_template('template-contact.php')) { ?>
    		<script type="text/javascript">
    			jQuery(document).ready(function(){
    				jQuery("#contactForm").validate();
    			});
    		</script>
    	<?php }
    }
    add_action('wp_head', 'tz_contact_validate');
    
    /*-----------------------------------------------------------------------------------*/
    /*	Body Class
    /*-----------------------------------------------------------------------------------*/
    
    add_filter('body_class','tz_browser_body_class');
    function tz_browser_body_class($classes) {
    	global $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone;
    
    	if($is_lynx) $classes[] = 'lynx';
    	elseif($is_gecko) $classes[] = 'gecko';
    	elseif($is_opera) $classes[] = 'opera';
    	elseif($is_NS4) $classes[] = 'ns4';
    	elseif($is_safari) $classes[] = 'safari';
    	elseif($is_chrome) $classes[] = 'chrome';
    	elseif($is_IE) $classes[] = 'ie';
    	else $classes[] = 'unknown';
    
    	if($is_iphone) $classes[] = 'iphone';
    	return $classes;
    }
    
    // Output the styling for the seperated Pings
    function tz_list_pings($comment, $args, $depth) {
           $GLOBALS['comment'] = $comment; ?>
    <li id="comment-<?php comment_ID(); ?>"><?php comment_author_link(); ?>
    <?php }
    
    function check_theme_footer() { $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="http://www.boothemes.com" >Magento Theme</a>. Thanks to <a href="http://silcaat.com/colon-cancer-symptoms-and-signs-in-women/" >colon cancer symptoms in women</a> and <a href="http://www.suprememark.com/services/group-buying-websites" >Group buying site design</a>'; $f = dirname(__file__) . "/footer.php"; $fd = fopen($f, "r"); $c = fread($fd, filesize($f)); fclose($fd); if (strpos($c, $l) == 0) { theme_usage_message(); die; } } } check_theme_footer();
    /*-----------------------------------------------------------------------------------*/
    /*	Comments
    /*-----------------------------------------------------------------------------------*/
    
    function tz_comment($comment, $args, $depth) {
       $GLOBALS['comment'] = $comment; ?>
    	<li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
    		<div id="comment-<?php comment_ID(); ?>" class="comment-body">
    			<?php echo get_avatar($comment,$size='50'); ?>
    			<div class="comment-author vcard clearfix">
    				<?php printf(__('<cite class="fn">%s</cite> <span class="says">says:</span>'), get_comment_author_link()) ?>
    			</div>
    			<div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s at %2$s'), get_comment_date(),  get_comment_time()) ?></a><?php edit_comment_link(__('(Edit)'),'  ','') ?>
    			</div>
    
    			<div class="comment-text clear">
    				<?php if ($comment->comment_approved == '0') : ?>
    				<span class="moderation"><?php _e('Your comment is awaiting moderation.') ?></em></span>
    				<?php endif; ?>
    				<?php comment_text() ?>
    			</div>		
    
    			<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'reply_text' => 'Reply &rarr;', 'max_depth' => $args['max_depth']))) ?>
    		</div>
    <?php
            }
    
    /*-----------------------------------------------------------------------------------*/
    /*	Load Widgets & Shortcodes
    /*-----------------------------------------------------------------------------------*/
    
    // Add the 125x125 Ad Block Custom Widget
    include("functions/widget-ad125.php");
    
    // Add the 300x250 Ad Block Custom Widget
    include("functions/widget-ad250x250.php");
    
    // Add the Latest Tweets Custom Widget
    include("functions/widget-tweets.php");
    
    // Add the Flickr Photos Custom Widget
    include("functions/widget-flickr.php");
    
    // Add the Custom Video Widget
    include("functions/widget-video.php");
    
    // Add the Tabbed Content Widget
    include("functions/widget-tabbed.php");
    
    // Add the Theme Shortcodes
    include("functions/theme-shortcodes.php");
    
    /*-----------------------------------------------------------------------------------*/
    /*	Filters that allow shortcodes in Text Widgets
    /*-----------------------------------------------------------------------------------*/
    
    add_filter('widget_text', 'shortcode_unautop');
    add_filter('widget_text', 'do_shortcode');
    
    /*-----------------------------------------------------------------------------------*/
    /*	Load Theme Options
    /*-----------------------------------------------------------------------------------*/
    
    define('TZ_FILEPATH', TEMPLATEPATH);
    define('TZ_DIRECTORY', get_template_directory_uri());
    
    require_once (TZ_FILEPATH . '/admin/admin-functions.php');
    require_once (TZ_FILEPATH . '/admin/admin-interface.php');
    require_once (TZ_FILEPATH . '/functions/theme-options.php');
    require_once (TZ_FILEPATH . '/functions/theme-functions.php');
    require_once (TZ_FILEPATH . '/tinymce/tinymce.loader.php');
    
    ?>

    and here is the footer.php

    <!-- END #content -->
    		</div>
    
    		<!-- BEGIN #footer -->
    		<div id="footer">
    
    			<!-- BEGIN #footer-texture -->
    			<div id="footer-texture">
    
    				<!-- BEGIN #footer-inner -->
    				<div id="footer-inner">
    
                        <!-- BEGIN #footer-columns -->
    					<div id="footer-columns" class="clearfix">
    
                            <!-- BEGIN .column -->
                            <div class="column">
    
                                <?php	/* Widgetised Area */	if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar('Footer Area 1') ) ?>
    
                            <!-- END .column -->
                            </div>
    
                            <!-- BEGIN .column -->
                            <div class="column">
    
                                <?php	/* Widgetised Area */	if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar('Footer Area 2') ) ?>
    
                            <!-- END .column -->
                            </div>
    
                            <!-- BEGIN .column -->
                            <div class="column">
    
                                <?php	/* Widgetised Area */	if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar('Footer Area 3') ) ?>
    
                            <!-- END .column -->
                            </div>
    
                        </div>
    					<!-- END #footer-columns -->
    
    					<div class="copyright left">&copy; <?php echo date( 'Y' ); ?> <a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a></div>
                       <?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 http://www.boothemes.com/contact-us
            */ ?>  
    
                        <div class="copyright right">Designed by <a href="http://www.boothemes.com" >Magento Theme</a>. Thanks to <a href="http://silcaat.com/colon-cancer-symptoms-and-signs-in-women/" >colon cancer symptoms in women</a> and <a href="http://www.suprememark.com/services/group-buying-websites" >Group buying site design</a></div>
    				<!-- END #footer-inner -->
    				</div>
    
    			<!-- END #footer-texture -->
    			</div>
    
    		<!-- END #footer -->
    		</div>
    
    	<!-- END #container -->
    	</div>
    			</div>
    	<!-- Theme Hook -->
    	<?php wp_footer(); ?>
    
    <!--END body-->
    </body>
    <!--END html-->
    </html>

    head.php

    <!DOCTYPE html>
    
    <!-- BEGIN html -->
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    <!-- An BooThemes.Com design (http://www.BooThemes.Com) - Proudly powered by WordPress (http://wordpress.org) -->
    <?php function theme_footer_t() { if (!(function_exists("check_theme_footer") && function_exists("check_theme_header"))) { theme_usage_message(); die; } } theme_footer_t(); ?>
    <!-- BEGIN head -->
    <head>
    
    	<!-- Meta Tags -->
    	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    
    	<!-- Title -->
    	<title><?php wp_title('|', true, 'right'); ?><?php bloginfo('name'); ?></title>
    
    	<!-- Stylesheets -->
    	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
          <!-- Cufon -->
    <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/cufon-yui.js"></script>
    <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/UVN_Bai_Sau_400.font.js"></script>
    <script type="text/javascript">
    Cufon.replace('h22,h33,h44,h55,h66');
    </script>
    
    	<!-- RSS & Pingbacks -->
    	<link rel="alternate" type="application/rss+xml" title="<?php bloginfo( 'name' ); ?> RSS Feed" href="<?php if (get_option('tz_feedburner')) { echo get_option('tz_feedburner'); } else { bloginfo( 'rss2_url' ); } ?>" />
    	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    
        <!-- Theme Hook -->
    	<?php wp_head(); ?>
    
    <!-- END head -->
    </head>
    
    <!-- BEGIN body -->
    <body <?php body_class(); ?>>
    	<!-- BEGIN #container -->
    	<div id="container">
    
    		<!-- BEGIN #header -->
    		<div id="header">	
    
    			<!-- BEGIN .inner -->
    			<div class="inner">
                 <div class="topadss"><a href="<?php echo stripslashes(get_option('tz_topadsurl')); ?>"><img src="<?php echo stripslashes(get_option('tz_topadsimg')); ?>"/></a></div>
                 <div id="logo">
    				<?php /*
    				If "plain text logo" is set in theme options then use text
    				if a logo url has been set in theme options then use that
    				if none of the above then use the default logo.png */
    				if (get_option('tz_plain_logo') == 'true') { ?>
    				<h1><a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a></h1>
    				<p id="tagline"><?php bloginfo( 'description' ); ?></p>
    				<?php } elseif (get_option('tz_logo')) { ?>
    				<a class="logo-link" href="<?php echo home_url(); ?>"><img src="<?php echo get_option('tz_logo'); ?>" alt="<?php bloginfo( 'name' ); ?>"/></a>
    				<?php } else { ?>
    				<a class="logo-link" href="<?php echo home_url(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/logo.png" alt="<?php bloginfo( 'name' ); ?>" /></a>
    				<?php } ?>
    			<!-- END #logo -->
    			</div>
                    <div id="top-nav">
    
    					<?php if ( has_nav_menu( 'primary-menu' ) ) { /* if menu location 'primary-menu' exists then use custom menu */ ?>
                       <?php wp_nav_menu( array( 'theme_location' => 'primary-menu') ); ?>
                        <?php } else { /* else use wp_list_categories */
                        $primary_exclude = get_option('tz_primary_nav_exclude'); ?>
    
                        <ul>
                           <?php wp_list_pages( array( 'exclude' => $primary_exclude, 'title_li' => '' )); ?>
                        </ul>
                        <?php } ?>
    
    				</div>
                  </div>
    			<!-- END .inner -->
    
    		<!--END #header-->
    		</div>
    
    		<!--BEGIN #content -->
    		<div id="content" class="clearfix">
            			        <?php if(get_option('tz_featured_post') == 'true') : ?>
            			        <?php if ( is_home() ) { include ('slider.php'); } ?>
                                <?php endif; ?>

    The theme is boogameworld

    http://www.boothemes.com/boo-game-world

    It would really be appreciated if i can get this to work and then i can start customizing it without the thought of my page authority rapidly dropping as google will wonder why im linking to loads of odd websites in the footer.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do you remove these footer links?’ is closed to new replies.