Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • mikekaramgr Friend
    #194268

    I cant find how to stop showing date (year) on grid – category view.

    TomC Moderator
    #520554

    Assuming 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?

    mikekaramgr Friend
    #520595

    thank 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 Moderator
    #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 ?>

Viewing 4 posts - 1 through 4 (of 4 total)

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