- Posts: 99
COMMUNITY FORUM
Bullets in the CSS on the toolbar and module...
- Different Color
-
Topic Author
- Offline
- Premium Member
div.k2ItemsBlock ul li,div.itemToolbar ul li {background-image:none; list-style:none;}
behrcommunications.com/blog/item/1-communications-audits
What now!? I'm so annoyed, because I've been spinning my wheels on this dang bullet problem. I can't get rid of the bullets in my template because I use them on other pages - this is how I've solved the K2 styling problems in the past.
What's wrong with my template(s)?
Martha
Please Log in or Create an account to join the conversation.
- Terry Britton
-
- Offline
- Elite Member
- Posts: 198
.itemToolbar li {background:none !important;}
Please Log in or Create an account to join the conversation.
- canderson
-
- Offline
- Senior Member
- Posts: 50
Please Log in or Create an account to join the conversation.
- Terry Britton
-
- Offline
- Elite Member
- Posts: 198
Please Log in or Create an account to join the conversation.
- canderson
-
- Offline
- Senior Member
- Posts: 50
Please Log in or Create an account to join the conversation.
- Terry Britton
-
- Offline
- Elite Member
- Posts: 198
Please Log in or Create an account to join the conversation.
- canderson
-
- Offline
- Senior Member
- Posts: 50
Thank you!
Please Log in or Create an account to join the conversation.
- Terry Britton
-
- Offline
- Elite Member
- Posts: 198
<?php if($this->item->params->get('itemTags') && count($this->item->tags)): ?> <!-- Item tags --> <div class="itemTagsBlock"> <span><?php echo JText::_("Tagged under"); ?></span> <ul class="itemTags"> <?php foreach ($this->item->tags as $tag): ?> <li><a href="<?php echo $tag->link; ?>"><?php echo $tag->name; ?></a></li> <?php endforeach; ?> </ul> <div class="clr"></div> </div> <?php endif; ?>
With this:
<?php if($this->item->params->get('itemTags') && count($this->item->tags)): ?> <div class="itemTagsBlock"> <!-- terry added seperator for tags --> <span><?php echo JText::_("Tags:"); ?></span> <ul class="itemTags"> <?php $count_tags = 0; ?> <?php foreach ($this->item->tags as $tag): ?> <?php if ($count_tags > 0) { ; ?> <li>|&nbsp;&nbsp;<a href="<?php echo $tag->link; ?>"><?php echo $tag->name; ?></a></li> <?php } else { ?> <li><a href="<?php echo $tag->link; ?>"><?php echo $tag->name; ?></a></li> <?php } ?> <?php $count_tags = $count_tags + 1; ?> <?php endforeach; ?> </ul> <div class="clr"></div> </div> <?php endif; ?>
I used pipe signs, or you can just replace the pipe sign with a comma. For the css I used display:inline and list-style:none. Hope this helps.
Please Log in or Create an account to join the conversation.
- canderson
-
- Offline
- Senior Member
- Posts: 50
I put the css file in the thirdparty.css with the first mention of itemTagBlock to no avail.
Please Log in or Create an account to join the conversation.
- Terry Britton
-
- Offline
- Elite Member
- Posts: 198
.itemTagsBlock ul, .itemTagsBlock li {list-style:none !important; display:inline !important;}
If you don't already you should try using Firefox with Firebug to view and modify your css. It works great, although I hate the new gantry templates from Rockettheme because all they've done is make the css more confusing.
Please Log in or Create an account to join the conversation.
- canderson
-
- Offline
- Senior Member
- Posts: 50
Any idea?
I agree with the Gantry templates, they also load an insane amount of css files (I saw a site that had a page calling over 450 css files that was Gantry-based!).
Please Log in or Create an account to join the conversation.
- Terry Britton
-
- Offline
- Elite Member
- Posts: 198
div.itemTagsBlock ul.itemTags li {display:inline;list-style:none;padding:0 4px 0 0;margin:0;text-align:center;}
Enter the line exactly as I gave you in the thirdparty.css and see if that works. Again I hate gantry.
Please Log in or Create an account to join the conversation.
- canderson
-
- Offline
- Senior Member
- Posts: 50
I actually like the | tags, think I'll keep 'em. Thank you so, so much Terry.
Please Log in or Create an account to join the conversation.
- Terry Britton
-
- Offline
- Elite Member
- Posts: 198
Please Log in or Create an account to join the conversation.