How remove the blogroll
-
I hope this is not tantamount to blasphemy but I’d like to remove the blogroll. Is this possible in WordPress? I’m using v.1.5.2. It’s not possible to remove it in wp-admin.
-
You can delete all of the links, and then in your template you can delete any tag, such as get_links_list or whatever it might be.
Delete the blogroll category in your links admin. Should get rid of it.
The code in sidebar.php is this:
<!-- start links -->
<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?><?php
$link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories");
foreach ($link_cats as $link_cat) {
?>
<h3><?php echo $link_cat->cat_name; ?></h3>
<ul>
<?php wp_get_links($link_cat->cat_id); ?>
</ul>
<?php } ?><!-- end links -->
I’ve tried several things deleting all of it and also deleting the <?php wp_get_links bit with surrounding tags. The result is always this error:
Parse error: parse error, unexpected '}' in /home/philipu/public_html/wp-content/themes/plain-vanilla/sidebar.php on line 105
Deleting in wp-admin does not work. It renders this error:
Can’t delete the Blogroll link category: this is the default one
Any ideas?
philpus- If I remember correctly, if you simply remove all the links in the Blogroll category, the category will no longer appear in the sidebar. The php code for the category and links remains, but the Blogroll category remians invisible on your site until you add a new link to that category. Not a perfect solution, but it worked for me,
DB~Most peculiar, i deleted all the default links upon WP installation and blogroll is still there…sigh
try deleting all of the links themselves, not the category.
That’s weird that you’re getting that error. try just deleting everything between php and php (including the < before and > after). If that doesn’t work, try pasting or linking all of the code from your sidebar php.
Yeah it’s strange. The answer is probably in the code somewhere; i’m just not clever enough to see it. Here’s the full code:
<p class="cmeta"><?php bloginfo('description'); ?></p>
<?php if (function_exists('wp_theme_switcher')) { ?>
<li><h2><?php _e('Themes'); ?></h2>
<?php wp_theme_switcher(); ?>
</li>
<?php } ?><!-- site related posts get listed here: remove comments if you have Pages created and want them listed -->
<!--
<h3>Site Related</h3>
<ul>
<?php wp_list_pages('title_li='); ?>
</ul>
--><br><br>
<h1><strong><a href="https://philipus.com"><font color="#000066">PHILIPUS.COM</font></a></strong></h1>
<div align="center"><font color="#000066">Intermittently ranting<br>since 1999
</font></div>
<div align="center">
<br>
Welcome.
<br>
I'm Philip Dygeus
<br>
and this is my site.
<br>
<br><font color="#888888"><u>Status:</u></font><font color="#006699"> Learning manga</font><br><br>
<a href="https://philipus.com/about/"><strong>Let's talk about me</strong></a><br><a href="https://philipus.com/latest-news/"><strong>"Latest News"</strong></a><br>
<a href="mailto:blog AT philipus DOT com"><strong>Drop me a line</strong></a> <br>
<br>
</div><h3>Recent</h3>
<ul>
<?php get_archives('postbypost', 12); ?>
</ul><h3><?php _e('Categories'); ?></h3>
<ul>
<?php list_cats(0, '', 'name', 'asc', '', 1, 0, 1, 1, 1, 1, 0,'','','','','') ?>
</ul><h3><?php _e('Archives'); ?></h3>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
<br>
<br>
<!-- start links -->
<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?><?php
$link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories");
foreach ($link_cats as $link_cat) {
?>
<h3><?php echo $link_cat->cat_name; ?></h3>
<ul>
<?php wp_get_links($link_cat->cat_id); ?>
</ul>
<?php } ?><!-- end links -->
<!-- // <?php get_calendar(); ?> -->
<!-- // <label for="s"><?php _e('Search:'); ?></label> --> <br />
<form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<div><p>
<input type="text" name="s" id="s" size="15" />
</p>
<p>
<input type="submit" value="<?php _e('search'); ?>" />
</p>
</div>
</form><?php /* If this is a category archive */ if (is_category()) { ?>
<p class="cmeta">You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p><?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
<p class="cmeta">You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
for the day <?php the_time('l, F jS, Y'); ?>.</p><?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<p class="cmeta">You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
for <?php the_time('F, Y'); ?>.</p><?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<p class="cmeta">You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
for the year <?php the_time('Y'); ?>.</p><?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
<p class="cmeta">You have searched the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
for <strong>'<?php echo wp_specialchars($s); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p><?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<p class="cmeta">You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives.</p><?php } ?>
<h3><?php _e('Meta'); ?></h3>
<br>
<a href="https://validator.w3.org/check/referer" title="<?php _e('Check it yourself'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr> 1.1'); ?></a><br>
<?php } ?><a href="https://www.remarpro.com">WordPress</a><br><a href="feed:<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a>
<br><a href="feed:<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a>
<!-- <?php echo $wpdb->num_queries; ?> queries. <?php timer_stop(1); ?> seconds. --><!-- This nice layout and design is by Chyetanya Kunte - https://ckunte.com/ -->
Since the only thing showing up is the header, what if you just delete the
<h3><?php echo $link_cat->cat_name; ?></h3>
part?That’s it! Thanks a million to all of you.
Someone else suggested a fix that really appealed to me since I install WP manually. You can easily find the section in install.php that creates the blogroll and delete it. Then you’ll never have to fiddle with it again.
I also found it easy to change the first post and comment, and well as the default category.
Lane
how do you change the default catagory?
1. Goto wp-admin
2. Links -> Link Categories
3. Edit ‘Blogroll‘, set ‘Limit‘ to 0 (zero), and Save.If you go to the SideAdmin|Links|Manage Links and select all those Links you want to vanish then press the Button “Toggle Visibility” at the bottom you have those Blogrolls gone – at least in WP v2.0.1 and up.
- The topic ‘How remove the blogroll’ is closed to new replies.