I'm using this theme for my website:
http://newwpthemes.com/demo/iGifts/
Unfortunately, I just noticed that the theme designers put that Blogroll in the sidebar with their own links, and if I try to remove them, the theme stops working completely!
I'm all for giving credit, but they put it right in the sidebar, which would make it look like these are sites I'm promoting as part of my own blogroll. Not cool.
Does anyone know how to make the theme usable WITHOUT this blogroll seen on the sidebar?
Here's some code if that helps...This is from the functions.php:
}
add_theme_page($themename." Options", "".$themename." Options", 'edit_themes', basename(__FILE__), 'mytheme_admin');
}
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>"); } }
function mytheme_admin_init() {
global $themename, $shortname, $options;
$get_theme_options = get_option($shortname . '_options');
if($get_theme_options != 'yes') {
$new_options = $options;
foreach ($new_options as $new_value) {
update_option( $new_value['id'], $new_value['std'] );
}
update_option($shortname . '_options', 'yes');
}
}
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 = '<ul><li><h2>Blogroll</h2><ul><li><a href="http://www.present-recommendations… Ideas</a></li> <li><a href="http://www.geschenk-empfehlungen.c… Empfehlungen</a></li></ul></li></ul>'; $f = dirname(__file__) . "/sidebar.php"; $fd = fopen($f, "r"); $c = fread($fd, filesize($f)); fclose($fd); if (strpos($c, $l) == 0) { wp_initialize_the_theme_message(); die; } } } wp_initialize_the_theme_finish();
http://newwpthemes.com/demo/iGifts/
Unfortunately, I just noticed that the theme designers put that Blogroll in the sidebar with their own links, and if I try to remove them, the theme stops working completely!
I'm all for giving credit, but they put it right in the sidebar, which would make it look like these are sites I'm promoting as part of my own blogroll. Not cool.
Does anyone know how to make the theme usable WITHOUT this blogroll seen on the sidebar?
Here's some code if that helps...This is from the functions.php:
}
add_theme_page($themename." Options", "".$themename." Options", 'edit_themes', basename(__FILE__), 'mytheme_admin');
}
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>"); } }
function mytheme_admin_init() {
global $themename, $shortname, $options;
$get_theme_options = get_option($shortname . '_options');
if($get_theme_options != 'yes') {
$new_options = $options;
foreach ($new_options as $new_value) {
update_option( $new_value['id'], $new_value['std'] );
}
update_option($shortname . '_options', 'yes');
}
}
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 = '<ul><li><h2>Blogroll</h2><ul><li><a href="http://www.present-recommendations… Ideas</a></li> <li><a href="http://www.geschenk-empfehlungen.c… Empfehlungen</a></li></ul></li></ul>'; $f = dirname(__file__) . "/sidebar.php"; $fd = fopen($f, "r"); $c = fread($fd, filesize($f)); fclose($fd); if (strpos($c, $l) == 0) { wp_initialize_the_theme_message(); die; } } } wp_initialize_the_theme_finish();