-
AuthorPosts
-
January 30, 2014 at 7:25 am #194268
I cant find how to stop showing date (year) on grid – category view.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
January 30, 2014 at 5:03 pm #520554Assuming I’m understanding you correctly as to what it is you’re referring to, try this . . .
Within file path –> /templates/ja_lens/css/template.css
at line 557, add a “display: none” property to the CSS rule, as follows:
body.layout-l .masonry .item-timeline h2, body.layout-l .masonry .item-timeline p {
display: none;
margin-bottom: 0;
margin-top: 0;
}The beauty of this method is that if, at some future point, ever decide that you want the date to display, you can simply remove the “display: none” proeprty from the CSS rule and it will display.
Is that what you were wanting to accomplish?
If not, can you, perhaps, be a bit more specific and/or provide a mock-up screenshot of what it is you are referring to?
January 30, 2014 at 9:03 pm #520595thank you for your quick answer.
I know i can globally hide title from css(i use firebug)
But i need to hide the date title only in one of my pages(equipment page) where the date(year) title has no meaning..
On the other hand i want to keep the title on other pages like”projects” where i use order by date(created)
u can check it yourself, i think you ll see what i mean..
expose.gr*maybe this would help
http://extensions.joomla.org/extensions/style-a-design/templating/14053
will it work with your template?Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
February 2, 2014 at 4:43 am #520770<em>@mikekaramgr 408490 wrote:</em><blockquote>I cant find how to stop showing date (year) on grid – category view.</blockquote>
Please open templates/ja_lens/html/com_k2/ja_lens/category_item.php file,
Change:
<?php if ($addTimelineBox) : ?>
<div class="item <?php echo $xclass ?> item-timeline year-<?php echo $this->currTimeline; ?>">
<div class="inner item-inner clearfix">
<h2><?php echo $timeline; ?></h2>
<p><?php echo $this->yearCounts[$this->currTimeline]; echo ' item' . ($this->yearCounts[$this->currTimeline] > 1 ? 's' : '') ; ?></p>
</div>
<input class="year-<?php echo $this->currTimeline; ?>" type="hidden" value="<?php echo $this->yearCounts[$this->currTimeline];?>" />
</div>
<?php endif ?>
With:
<?php if ($addTimelineBox) : ?>
<div class="item <?php echo $xclass ?> item-timeline year-<?php echo $this->currTimeline; ?>">
<div class="inner item-inner clearfix">
<p><?php echo $this->yearCounts[$this->currTimeline]; echo ' item' . ($this->yearCounts[$this->currTimeline] > 1 ? 's' : '') ; ?></p>
</div>
<input class="year-<?php echo $this->currTimeline; ?>" type="hidden" value="<?php echo $this->yearCounts[$this->currTimeline];?>" />
</div>
<?php endif ?>
-
AuthorPosts
This topic contains 4 replies, has 3 voices, and was last updated by Ninja Lead 10 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum