beecherbowers.com

of all the places on the internet, you ended up here.

remove the categories bar from the heatmap wordpress theme

No Comments »

The only place I could find that this might be documented was in a support forum for the Heatmap theme, which you have to have a membership to access. So I figured out how to do it on my own. Read on to find out how.

At the time of this writing, I am using the Heatmap 2.5.2 theme for Wordpress, and it contains a Categories Bar  at the top of every page. I don’t care to have it there and there isn’t an easy way (checkbox) in the theme to remove it.

In Wordpress with the Heatmap theme active, click Appearance in the Dashboard and then click the Theme Editor. Choose the header.php file and scroll down through it until you find the section “The Categories Bar”. It looks like this:

<!–
The Categories Bar
~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ –>

<div id=”cat-bar”>

<?php
if (function_exists(‘hmt_extras’)) {                 // Extras plugin? Then go get the suckerfish Javascript
hmt_suckerfish_catbar();
}
else
{
?>
<div id=”cat-bar-content”>
<ul>
<?php
$exclude = hmt_get_option(hmt_exclude_categories);
$clean_cats = wp_list_categories(’sort_column=menu_order&title_li=&depth=1&exclude=’ . $exclude);    //…again, categories can be excluded here as specified in the options page
$clean_cats = str_replace(‘No categories’, ”, $clean_cats); // added 31/1/10 – strip out the ‘No Categories’ message when there are no categories – to leave just a blank line
echo $clean_cats;
?>
</ul>
</div> <!– id=”cat-bar-content” –>
<?php
}
?>

</div> <!– id=”cat-bar” –>

Simply remove the code I’ve marked in red above and the Categories Bar will be removed from the Heatmap theme.

Leave a Reply