.
Hi Friends @shamal @n4sa @tomshaft @luca
0.)
I have (
yet) no other experience than modern theme (
and slightly twitter)
so modern it is:
- -
1.)
There is another way also (
view quicker) and better in e.g. testers like
http://gtmetrix.com/But as you can
see here on my private test site, -
click:
http://www.10venner.dkit only goes for one language pages (
or else you must make the png,s multi-lingual)
The following works in IE 6-7-8-9 (
I have _not_ tested in IE10)
- -
2.)
First set up
x2 new sub
dir,
s under theme modern:
\server\yourdomain\oc-content\themes\modern\
yourextra\
maincategoryicons\*.*
Now produce a number of png files (
as the number of your main categorys) ,
* And name them with _
EXCACT_ same names & characters as you have given through your Admin - in main categories.
*
IMPORTANT NOTE: No intervals between characters - and absolutely no ,
funny, characters - only pure alphabet characters.
* I dont use gif or jpg ect. = because you can save png in lossyless compression,
and through this you have no loss of speed.
- -
3.)
Now remember to take a safe copy of your working main.php -
before you begin to experiment OKAY
* 1) FIND THIS
?>
<?php while ( osc_has_categories() ) { ?>
<div class="category">
* 3) REMOVE all lines Between here *
* 2) FIND THIS
<h1><strong><span>(<?php echo osc_category_total_items(); ?>)</span></strong></h1>
<?php if ( osc_count_subcategories() > 0 ) { ?>
<ul>
- -
4.)
And then insert this piece of code where you took the original code out =
IMPORTANT remember to rename sub dir,s and set you own png: width and height.
<!-- YourOwnInsertCodeNameDate -->
<a href="<?php echo osc_search_category_url();?>"><img src="<?php echo osc_current_web_theme_url('yourextra/maincategoryicons/') . osc_category_name() .'.png' ?>" width="140px" height="60px" alt="" title=""/></a>
<!-- YourOwnInsertCodeNameDate -->
Best Regards.: / s51
.