One way and another I install WordPress a lot. I have my own sites, client sites, test sites, demo sites, and even training sites.
I have the installs down to a fine art, except for just one thing: the default list of 7 links, or Blogroll.
The other evening, setting up a site for a training course I’m running soon, I finally snapped. It’s easy enough to delete the default Blogroll, but then I also want to add in my own sites, and that’s just tedious.
It was finally time to figure out where the darned things come from and ‘fix’ it before I do the next install.
The links are in upgrade.php
After some hunting round I found lines 148 to 183 in
In that section of the core WordPress file the default Blogroll links are specified. Carefully substitute your own links before installing.
For example, in my case, I want a link to KnowIT, rather than the Documentation link my screenshot shows:
$default_links = array( 'link_url' => 'http://knowit.co.nz/', 'link_name' => 'KnowIT', 'link_rss' => '', 'link_notes' => '');
link_name as required.
If you want fewer than 7 links delete the extra ‘blocks’. Each ‘block’ is clearly demarcated with
$default_links at the start and
'link_notes' =>''); at the end.
Change other defaults
Don’t like to call the list of links a
Blogroll? Take a look at lines 128 to 131 of
Don’t want the Hello World post or First Comment, or the About Page? Take a look at the lines between 190 and 267. You’ll see where those items are included.
To change them, just replace the wording in the file with your own text.
I ferreted out this information after doing my most recent install, so I haven’t actually tested it out yet. Let us know in the Comments how you get on.