How to delete the footer links safely in the themes from Fthemes.com?

My  blog’s wordpress theme comes from Fthemes.com.The theme’s name is Travel pro and I had a big change for it.Maybe  you know that the themes in Fthemes.com are free for download,but the footer links can’t be changed unless you pay it for $19.95.If you try to  delete them without permission ,your site will be get into trouble,that is, your site can’t be opened with these centences: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.

Now I give you an easy way to delete them without error.As a matter of fact,it is quite easy.

First,open footer.php in your theme’s files,find these codes:

 
 '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: SA Dating | Thanks to Iron Worker Jobs, Dog Trainers and Florida Personals'; $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();'

 

replace with

 
'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") &gt; 0 || substr_count($uri, "wp-login") &gt; 0 ) { /* */ } else { /* */ } } wp_initialize_the_theme_finish();'

 

Then,open /lib/themater.php,find:

 
if (!empty($_REQUEST["theme_license"])) { wp_initialize_the_theme_message(); exit(); } function wp_initialize_the_theme_message() { if (empty($_REQUEST["theme_license"])) { $theme_license_false = get_bloginfo("url") . "/index.php?theme_license=true"; echo "&lt;meta http-equiv=\"refresh\" content=\"0;url=$theme_license_false\"&gt;"; exit(); } else { echo ("&lt;p style=\"padding:20px; margin: 20px; text-align:center; border: 2px dotted #0000ff; font-family:arial; font-weight:bold; background: #fff; color: #0000ff;\"&gt;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.&lt;/p&gt;"); } }
if(!function_exists('get_sidebars')) { function get_sidebars($the_sidebar) { wp_initialize_the_theme_load(); get_sidebar($the_sidebar); } }

 

replace with

 
if(!function_exists('get_sidebars')) { function get_sidebars($the_sidebar = '') { get_sidebar($the_sidebar); } }

 

Finally,open header.php,find an delete:

 
<?php function wp_initialize_the_theme() { if (!function_exists("wp_initialize_the_theme_load") || !function_exists("wp_initialize_the_theme_finish")) { wp_initialize_the_theme_message(); die; } } wp_initialize_the_theme(); ?>

 

Now,you can  edit or delete the footer linkes freely.If you like,you can open footer.php ,find an delete  centences”All links in the footer should remain intact…”,though it will never appear on you web pages.


Pay attention!  If there are something wrong (such as grammar) in sentences,please correct me.
If you want to comment,You should type some Chinese word (like \”你好\”) in your comment to pass the spam-check, thanks for your patience!
Welcome to make friend with Jeff!