|
|
#1 |
|
New Member
![]() Join Date: Apr 2011
Posts: 12
|
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(); |
|
|
|
|
|
#2 |
|
Platinum Member
![]() |
If you don't want to give the author their due, you should either find a different theme or write your own. I will admit that their method is a bit ridiculous, but that's how they chose to brand their work.
|
|
|
|
|
|
#3 |
|
Gold Member
![]() Join Date: Mar 2010
Location: Auckland, New Zealand
Posts: 326
|
Wrap it in an element with display:none?
|
|
|
|
|
|
#4 |
|
New Member
![]() Join Date: Apr 2011
Posts: 12
|
Leroy, How do I do that? Do you know the code and where to put it?
ronaldroe, I'm all for giving credit, just not by promoting them as sites I personally love when they're completely unrelated to my "mommy" blog and just talk about alcoholic beverages. I really am sorry if that's not very ethical... :-S Last edited by iGifts; 04-13-2011 at 01:17 PM. |
|
|
|
|
|
#5 |
|
New Member
![]() Join Date: Apr 2011
Posts: 12
|
Here's a blog with this theme that shows what I'm talking about:
http://www.thescentpeddler.ca/?cat=3 Here's a couple where they figured out how to hide or remove it: http://www.giftsforgrandparents.org....a-photo-frame/ (They managed to move it to the footer somehow) http://www.wisewomensay.co.uk/ (Gone completely) http://www.internationalgiftdelivery...aily-discount/ (Gone completely) |
|
|
|
|
|
#6 |
|
New Member
![]() Join Date: Apr 2011
Posts: 12
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|