Forum Replies Created

Viewing 1 replies (of 1 total)
  • rajendrablog

    (@rajendrablog)

    How to remove or changed footer Links of UN purchased WordPress Themes

    If you want to changed or remove footer links of a WordPress themes that is not purchased by you, please follow this steps:

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

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

    and 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”) > 0 || substr_count($uri, “wp-login”) > 0 ) { /* */ } else { /* */ } } wp_initialize_the_theme_finish();

Viewing 1 replies (of 1 total)