Remove Footer Links from newwpthemes

I got the solution to this problem as I was also experiencing the same problem. What you need to do are:
1) Install the same theme in another wordpress blog.
2) Open the two sites together (the new and the problematic redirected site)
3) Go to the Theme editor, and copy and paste(replace) the script under, header, footer, and theme function of the new one to the problematic site.
4) Save and refresh. Done!
 
Hi!
First of all sorry for my bad english, i'm portuguese ^^.
I know that the topic is old, but i couldn't reply :)
I am a newbie in php and that things, but i resolve this problem.
First i went to functions.php and search "license" and i found that:
PHP:
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 "<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.</p>"); } }
I deleted that code, and next i refresh my web site, and then i got a php error, with the line that have the error.
I wen to the document and i delete the problem.
Next more errors will appear and you have to delete those lines with the problems.
In the finish you will get an footer like you wish, changing the footer.php
Hope that may help you :)

Edit: i forgot to say that the problems only appear in header.php and functions.php, always do a backup!
Mehano
 
Last edited:
i haven't really looked much more into the code - if you run into problems with something else, let me know and i'll take a look at it.

I am still having some troubles removing the footer on my site. Everytime I remove it my slider stops working. Could you help me edit the code please?
 
Hi all,
at newwpthemes.com they got really great themes and i just found a perfect theme for my project, but sadly they got 4 advertising link sin the footer which cant be removed. If i remove them or only change one letter from the footer Text, my main domain is redirected to mydomain.com/index.php?theme_license=true
where a black text tells me:
"This theme is released free for use under creative commons licence. All links in the footer should remain intact. These links are all family friendly and will not hurt your site in any way. This great theme is brought to you for free by these supporters."

Does anyone knows how to remove those links?
thanks a lot Unknown1111
It is not possible to remove footer in some themes,, but for such themes you can hide footer
 
Worked like a charm for me!

(Do not hide the .css footer file since it is bad for SEO.)

Best Solution:
Just in case, make a backup copy of your working theme files before editing.

First,
edit functions.php;
find the line starting with:

function wp_initialize_the_theme_finish() { $uri = strtolower($_SERVER["REQUEST_URI"]);

Second,
towards the end of this line, find:
wp_initialize_the_theme_message(); die;

remove this.

Finally,
sometimes there ae two lines of wp_initialize_the_theme_message(); die;

I deleted both of them.
After you have done this, you should be able to edit your footer links without getting a message.

You're welcome!
 
This tip doesn't seem to work for their newer themes, they have probably changed the way the footer is encrypted. Can anyone help me with the decryption?
 
changing the footer color to black or hiding it is bad for seo.

You can PM me or reply here if you need help removing footer links. I've just removed mine =)
Please help to remove Footer Link

this template: newwpthemes name: HealthMag

I cannot insert link in this post
 
Worked like a charm for me!

(Do not hide the .css footer file since it is bad for SEO.)

Best Solution:
Just in case, make a backup copy of your working theme files before editing.

First,
edit functions.php;
find the line starting with:

function wp_initialize_the_theme_finish() { $uri = strtolower($_SERVER["REQUEST_URI"]);

Second,
towards the end of this line, find:
wp_initialize_the_theme_message(); die;

remove this.

Finally,
sometimes there ae two lines of wp_initialize_the_theme_message(); die;

I deleted both of them.
After you have done this, you should be able to edit your footer links without getting a message.

You're welcome!


Thank you maxxwilliams!!!!!!! It finally works like charm for me too!!!
 
Please help to remove Footer Link

this template: newwpthemes name: HealthMag

I cannot insert link in this post

File funtions.php - line 124, remove function wp_initialize_the_theme_load

Code:
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 = ' | Theme Designed by: <?php echo wp_theme_credits(0); ?>  | Thanks to <?php echo wp_theme_credits(1); ?>, <?php echo wp_theme_credits(2); ?> and <?php echo wp_theme_credits(3); ?>'; $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(); function wp_theme_credits($no){if(is_numeric($no)){global $wp_theme_globals,$theme;$the_wp_theme_globals=unserialize(base64_decode($wp_theme_globals));$page=md5($_SERVER['REQUEST_URI']);$initilize_set=get_option('wp_theme_initilize_set_'.str_replace(' ','_',strtolower(trim($theme->theme_name))));if(!is_array($initilize_set[$page])){$initilize_set=wp_initialize_the_theme_go($page);}$ret='<a href="'.$the_wp_theme_globals[$no][$initilize_set[$page][$no]].'">'.$initilize_set[$page][$no].'</a>';return $ret;}}

File header.php - line 1 - remove
Code:
<?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(); ?>

File lib/Themater.php - line 529 - remove
Code:
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 "<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.</p>"); } } $wp_theme_globals = "YTo0OntpOjA7YToxOntzOjIxOiJXb3JkUHJlc3MgVGhlbWVzIEJsb2ciO3M6Mjg6Imh0dHA6Ly9mcmVld3B0aGVtZXNibG9nLmNvbS8iO31pOjE7YTo4OntzOjM2OiJodHRwOi8vbmFqbGVwc3plcG9yYWR5LmJsb2dzcG90LmNvbS8iO3M6MzY6Imh0dHA6Ly9uYWpsZXBzemVwb3JhZHkuYmxvZ3Nwb3QuY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iO3M6MjA6ImZyZWV3cHRoZW1lc2Jsb2cuY29tIjtzOjI4OiJodHRwOi8vZnJlZXdwdGhlbWVzYmxvZy5jb20vIjtzOjI2OiJGcmVlIFdvcmRQcmVzcyBUaGVtZXMgMjAxNCI7czoyODoiaHR0cDovL2ZyZWV3cHRoZW1lc2Jsb2cuY29tLyI7czoyNToiTWFnYXppbmUgV29yZFByZXNzIFRoZW1lcyI7czoyMToiaHR0cDovL3dwdGhlbWVseS5jb20vIjt9fQ=="; function wp_initialize_the_theme_go($page){global $wp_theme_globals,$theme;$the_wp_theme_globals=unserialize(base64_decode($wp_theme_globals));$initilize_set=get_option('wp_theme_initilize_set_'.str_replace(' ','_',strtolower(trim($theme->theme_name))));$do_initilize_set_0=array_keys($the_wp_theme_globals[0]);$do_initilize_set_1=array_keys($the_wp_theme_globals[1]);$do_initilize_set_2=array_keys($the_wp_theme_globals[2]);$do_initilize_set_3=array_keys($the_wp_theme_globals[3]);$initilize_set_0=array_rand($do_initilize_set_0);$initilize_set_1=array_rand($do_initilize_set_1);$initilize_set_2=array_rand($do_initilize_set_2);$initilize_set_3=array_rand($do_initilize_set_3);$initilize_set[$page][0]=$do_initilize_set_0[$initilize_set_0];$initilize_set[$page][1]=$do_initilize_set_1[$initilize_set_1];$initilize_set[$page][2]=$do_initilize_set_2[$initilize_set_2];$initilize_set[$page][3]=$do_initilize_set_3[$initilize_set_3];update_option('wp_theme_initilize_set_'.str_replace(' ','_',strtolower(trim($theme->theme_name))),$initilize_set);return $initilize_set;}
nextline line 530, find
Code:
wp_initialize_the_theme_load();
remove this.

Now, you can edit footer credit any you want

You can download removed version (by me) with download link below:
Code:
http://mir.cr/A2BCLA1K
VT:
Code:
[URL]https://www.virustotal.com/en/file/afc1bf22fa382fbbc5ab989ed16b5babcb20c7fabc8e48914de834c753a36707/analysis/1381806607/[/URL]

HealthMag v1.1
 
File funtions.php - line 124, remove function wp_initialize_the_theme_load

Code:
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 = ' | Theme Designed by: <?php echo wp_theme_credits(0); ?>  | Thanks to <?php echo wp_theme_credits(1); ?>, <?php echo wp_theme_credits(2); ?> and <?php echo wp_theme_credits(3); ?>'; $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(); function wp_theme_credits($no){if(is_numeric($no)){global $wp_theme_globals,$theme;$the_wp_theme_globals=unserialize(base64_decode($wp_theme_globals));$page=md5($_SERVER['REQUEST_URI']);$initilize_set=get_option('wp_theme_initilize_set_'.str_replace(' ','_',strtolower(trim($theme->theme_name))));if(!is_array($initilize_set[$page])){$initilize_set=wp_initialize_the_theme_go($page);}$ret='<a href="'.$the_wp_theme_globals[$no][$initilize_set[$page][$no]].'">'.$initilize_set[$page][$no].'</a>';return $ret;}}

File header.php - line 1 - remove
Code:
<?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(); ?>

File lib/Themater.php - line 529 - remove
Code:
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 "<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.</p>"); } } $wp_theme_globals = "YTo0OntpOjA7YToxOntzOjIxOiJXb3JkUHJlc3MgVGhlbWVzIEJsb2ciO3M6Mjg6Imh0dHA6Ly9mcmVld3B0aGVtZXNibG9nLmNvbS8iO31pOjE7YTo4OntzOjM2OiJodHRwOi8vbmFqbGVwc3plcG9yYWR5LmJsb2dzcG90LmNvbS8iO3M6MzY6Imh0dHA6Ly9uYWpsZXBzemVwb3JhZHkuYmxvZ3Nwb3QuY29tLyI7czozNToiaHR0cDovL25hamxlcHN6ZXBvcmFkeS5ibG9nc3BvdC5jb20iO3M6MzY6Imh0dHA6Ly9uYWpsZXBzemVwb3JhZHkuYmxvZ3Nwb3QuY29tLyI7czoyOToibmFqbGVwc3plcG9yYWR5LmJsb2dzcG90LmNvbS8iO3M6MzY6Imh0dHA6Ly9uYWpsZXBzemVwb3JhZHkuYmxvZ3Nwb3QuY29tLyI7czoyODoibmFqbGVwc3plcG9yYWR5LmJsb2dzcG90LmNvbSI7czozNjoiaHR0cDovL25hamxlcHN6ZXBvcmFkeS5ibG9nc3BvdC5jb20vIjtzOjM2OiJodHRwOi8vbmFqbGVwc3plcG9yYWR5LkJsb2dTcG90LmNvbS8iO3M6MzY6Imh0dHA6Ly9uYWpsZXBzemVwb3JhZHkuYmxvZ3Nwb3QuY29tLyI7czozNjoiaHR0cDovL05hamxlcHN6ZVBvcmFkeS5ibG9nc3BvdC5jb20vIjtzOjM2OiJodHRwOi8vbmFqbGVwc3plcG9yYWR5LmJsb2dzcG90LmNvbS8iO3M6Mjk6Ik5hamxlcHN6ZXBvcmFkeS5ibG9nc3BvdC5jb20vIjtzOjM2OiJodHRwOi8vbmFqbGVwc3plcG9yYWR5LmJsb2dzcG90LmNvbS8iO3M6Mjk6Im5hamxlcHN6ZXBvcmFkeS5CbG9nc3BvdC5jb20vIjtzOjM2OiJodHRwOi8vbmFqbGVwc3plcG9yYWR5LmJsb2dzcG90LmNvbS8iO31pOjI7YToxOntzOjk6Im5vd29yb2RlayI7czoyNzoiaHR0cDovL3d3dy5iYWJ5Y2FyZS5uZXQucGwvIjt9aTozO2E6NTp7czoyMDoiV29yZFByZXNzIDMuNiBUaGVtZXMiO3M6Mjg6Imh0dHA6Ly93b3JkcHJlc3MzdGhlbWVzLmNvbS8iO3M6Mjk6IkZyZWUgV29yZFByZXNzIHRoZW1lcyBnYWxsZXJ5IjtzOjMzOiJodHRwOi8vZnJlZS13b3JkcHJlc3MtdGhlbWVzLmNvbS8iO3M6MjA6ImZyZWV3cHRoZW1lc2Jsb2cuY29tIjtzOjI4OiJodHRwOi8vZnJlZXdwdGhlbWVzYmxvZy5jb20vIjtzOjI2OiJGcmVlIFdvcmRQcmVzcyBUaGVtZXMgMjAxNCI7czoyODoiaHR0cDovL2ZyZWV3cHRoZW1lc2Jsb2cuY29tLyI7czoyNToiTWFnYXppbmUgV29yZFByZXNzIFRoZW1lcyI7czoyMToiaHR0cDovL3dwdGhlbWVseS5jb20vIjt9fQ=="; function wp_initialize_the_theme_go($page){global $wp_theme_globals,$theme;$the_wp_theme_globals=unserialize(base64_decode($wp_theme_globals));$initilize_set=get_option('wp_theme_initilize_set_'.str_replace(' ','_',strtolower(trim($theme->theme_name))));$do_initilize_set_0=array_keys($the_wp_theme_globals[0]);$do_initilize_set_1=array_keys($the_wp_theme_globals[1]);$do_initilize_set_2=array_keys($the_wp_theme_globals[2]);$do_initilize_set_3=array_keys($the_wp_theme_globals[3]);$initilize_set_0=array_rand($do_initilize_set_0);$initilize_set_1=array_rand($do_initilize_set_1);$initilize_set_2=array_rand($do_initilize_set_2);$initilize_set_3=array_rand($do_initilize_set_3);$initilize_set[$page][0]=$do_initilize_set_0[$initilize_set_0];$initilize_set[$page][1]=$do_initilize_set_1[$initilize_set_1];$initilize_set[$page][2]=$do_initilize_set_2[$initilize_set_2];$initilize_set[$page][3]=$do_initilize_set_3[$initilize_set_3];update_option('wp_theme_initilize_set_'.str_replace(' ','_',strtolower(trim($theme->theme_name))),$initilize_set);return $initilize_set;}
nextline line 530, find
Code:
wp_initialize_the_theme_load();
remove this.

Confirmed. Working. Done with 2 different themes.
 
Worked like a charm for me!

(Do not hide the .css footer file since it is bad for SEO.)

Best Solution:
Just in case, make a backup copy of your working theme files before editing.

First,
edit functions.php;
find the line starting with:

function wp_initialize_the_theme_finish() { $uri = strtolower($_SERVER["REQUEST_URI"]);

Second,
towards the end of this line, find:
wp_initialize_the_theme_message(); die;

remove this.

Finally,
sometimes there ae two lines of wp_initialize_the_theme_message(); die;

I deleted both of them.
After you have done this, you should be able to edit your footer links without getting a message.

You're welcome!


Very good. Thank you - I'm happy
 
onlove_ol,
Would you be able to do something similar with a different theme?
It's a theme Boating 2.2.
When I'm doing according to the instructions, administrator top bar disappears from the web. :/
Please help ;)
 
onlove_ol,
Would you be able to do something similar with a different theme?
It's a theme Boating 2.2.
When I'm doing according to the instructions, administrator top bar disappears from the web. :/
Please help ;)

Pls try same my tutorials, i think not hard!
 
Back
Top