I am setting up a blog for a journalist - the blog and the theme is in Danish, so I suggest using Google Translate.
I am using the Smells Like Facebook theme (2.5). In the theme the pages are displayed in the top (where the Facebook-logo usually is) whereas the categories are displayed in tabs beside the 'profile picture'.
For my needs I need to change this so the pages are shown in the tabs (and the categories are hidden).
By replacing <?php wp_list_categories to <?php wp_list_pages( in header.php I can easily display the pages in the tabs instead of categories, although now the selected tab doesn't seem to be working. By selected tab I mean a colorchange that displays which of the tabs that are selected. I've included the original code below.
<div id="categories">
<ul>
<?php $showcats = abs(intval(get_option("slf_showcats"))); ?>
<?php $showcats = ($showcats != 0) ? $showcats : 5; ?>
<li class="cat-item<?php echo is_category() ? '' : ' current-cat' ?>"><a href="<?php bloginfo('url') ?>/">All</a></li>
<?php wp_list_categories("orderby=count&order=desc&number=$showcats&depth=1&title_li="); ?>
<li id="liplus">
<a id="plus" href="#" title="More categories.." onclick="showbox(this); return false" class="none"> </a>
<div id="hiddencats" style="display: none;">
<div id="hiddenleft"><div id="hiddenplus" onclick="hidebox()"> </div></div>
<div id="hiddenright">
<ul>
<li class="browsecat">Browse more categories</li>
<?php wp_list_categories("orderby=count&order=desc&number=100&offset=$showcats&depth=1&title_li="); ?>
</ul>
</div>
</div>
I've tried replacing all of the following in the code, with no luck:
categories with pages.
cat with page
cats with pages
I'm suspect it might have something to do with the style.css
Kind regards and thanks in advance
Chris