How to remove fTheme footer without error?

Joined
Mar 28, 2010
Messages
42
Reaction score
4
I have a free fTheme for wordpress and when i remove their link in the footer, it disables all my pages and says i have to put it back.

Does anyone know what i have to edit so it wont check for its own link?
 
In the file functions.php replace (line 63 onwards..)

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 = '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();'

with

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 { /* */ } } wp_initialize_the_theme_finish();'

In the file lib/themater.php replace this (line 512 onwards) replace:

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>"); } }
if(!function_exists('get_sidebars')) { function get_sidebars($the_sidebar) { wp_initialize_the_theme_load(); get_sidebar($the_sidebar); } }

with

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

In the file header.php on line 1, remove everything after the doctype thing.

Then you can remove or adjust the text in footer.php to what you like.
 
I was wondering if anyone knows how to add footer widgets to Limex theme from Fthemes. They don't come with footer widget area. I was able to add the footer sidebar but the widgets align vertically instead of horizontally. Any help will be greatly appreciated.
 
In the file functions.php replace (line 63 onwards..)

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 = '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();'

with

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 { /* */ } } wp_initialize_the_theme_finish();'

In the file lib/themater.php replace this (line 512 onwards) replace:

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>"); } }
if(!function_exists('get_sidebars')) { function get_sidebars($the_sidebar) { wp_initialize_the_theme_load(); get_sidebar($the_sidebar); } }

with

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

In the file header.php on line 1, remove everything after the doctype thing.

Then you can remove or adjust the text in footer.php to what you like.

You Rock dude... Thank you Thank you Thank you!!
 
I get an error still

Code:
Warning: Missing argument 1 for get_sidebars(), called in /var/www/stuff/wp-content/themes/themename/index.php on line 53 and defined in /var/www/stuff/wp-content/themes/themename/lib/Themater.php on line 520

Any ideas?
 
I had the same problem, you have to do is remove 2 lanes on themater.php, just like it was said, but you need to put this code instead:

Code:
if(!function_exists('get_sidebars')) { function get_sidebars($the_sidebar = '') { get_sidebar($the_sidebar); } }
 
thanks for your help kaper.
it works.
and now, i can have all of the themes from fthemes with free.
 
In the file functions.php replace (line 63 onwards..)

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 = '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();'

with

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 { /* */ } } wp_initialize_the_theme_finish();'

In the file lib/themater.php replace this (line 512 onwards) replace:

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>"); } }
if(!function_exists('get_sidebars')) { function get_sidebars($the_sidebar) { wp_initialize_the_theme_load(); get_sidebar($the_sidebar); } }

with

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

In the file header.php on line 1, remove everything after the doctype thing.

Then you can remove or adjust the text in footer.php to what you like.

Cool...
It's works..!!!
 
I tried everything the suggestions i found here but i'm not lucky enough to make it work. I got an error while doing what has Kaper mentioned. I've been browsing through other threads here in BHW and i found the short solution. This is what i did.

in the functions.php look for this code:

Code:
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: LINKSLINKSLINKS'; $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();

and replace with:

Code:
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 { } } wp_initialize_the_theme_finish();

And it works like a charm :).. Hope this help.
 
you use to two way.
1) you use to wordpress footer section and can edit.
2) also you use to function.php page to php coding.
as your like.
 
Hello . i am new in the wordpress .. i tried your way to edit my footer but it has the Fatal Error -"Fatal error: Call to undefined function wp_initialize_the_theme_message() in on line 105" i have this issue please let me know what to do.......

Waiting for your reply,,,

Regards:
 
I have a free fTheme for wordpress and when i remove their link in the footer, it disables all my pages and says i have to put it back.

Does anyone know what i have to edit so it wont check for its own link?
for such cases, you can hide footer links rather than deleting them
 
Hi,

Not sure if anyone can help a newbie on this site so pls do be gentle.

I have followed the examples as above but but the website simply fails to load when I did this. I am using a different template 'Martina' from newwpthemes.

Can you help me remove this footer/encryption it's a hard for me to figure out?

Thanx
 
Hi,

I found your post and followed the steps in my Anolis theme (from fwpthemes) and now I get this warning:
Warning: Missing argument 1 for get_sidebars(), called in C:\Program Files (x86)\EasyPHP-12.1\www\wordpress_symphony\wp-content\themes\Anolis\page.php on line 32 and defined in C:\Program Files (x86)\EasyPHP-12.1\www\wordpress_symphony\wp-content\themes\Anolis\lib\Themater.php on line 529

I was able to modify the footer.

Thanks beforehand




 
Warning: Missing argument 1 for get_sidebars(), called in F:\xampp\htdocs\Wordpress\wp-content\themes\NewsMix-1.2\NewsMix\index.php on line 39 and defined in F:\xampp\htdocs\Wordpress\wp-content\themes\NewsMix-1.2\NewsMix\lib\Themater.php on line 529

I am following all of the step by "Kaper". But I am still getting this on all themes of fthemes! Please help to find out the right way!
 
Last edited:
Back
Top