Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't link empty Categories #45

Open
xstable opened this issue Feb 20, 2015 · 0 comments
Open

Don't link empty Categories #45

xstable opened this issue Feb 20, 2015 · 0 comments

Comments

@xstable
Copy link

xstable commented Feb 20, 2015

Please change Template, so that empty categories (on Startpage) are not linked to #.

To got it go to functions.php Line 245 (inside the else-block) and change it to the following:

With this:

<?php } else { ?>
    <span><?php echo osc_category_name() ; ?> (<?php echo osc_category_total_items() ; ?>)/span>
<?php } ?>

If you like to have some eyecandy (Categories with content blue, empty-categories gray) to got a better overwiew (example see this image: http://pix.toile-libre.org/upload/original/1424453874.jpg ) change styles in main.css:

body #main{font-family:arial}
.r-list li {color: rgb(177, 177, 177);}
select#sCategory {height: 43px;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant