Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

hide Post by and comment
(1 viewing) (1) Guest
User guides, update and bug fixes
  • Page:
  • 1

TOPIC: hide Post by and comment

hide Post by and comment 10 years, 2 months ago #17757

hi

Can you please help ,i need to remove the post by and comment from the home page ...

I tried may ways but nothing works .....

Postby is not linked same for comment as well

basically there is 2 issues...
Attachments:

Re: hide Post by and comment 10 years, 2 months ago #17785

Dear Walkys lemaine,
Please open the file: \templates\sj_honrat\html\mod_sj_k2_meganews\theme1.php
and remove lines 63 - 77:

<!-- Comment -->
<div class="item-comment">
<?php if(!empty($item_first->event->K2CommentsCounter)){ ?>
<?php echo JText::_('Comment(s)').': '.$item_first->event->K2CommentsCounter; ?>
<?php } else{?>
<?php echo JText::_('Comment(s)').': '.$item_first->numOfComments; ?>
<?php } ?>
</div>
<!-- Created by -->
<div class="item-postby">
<?php
$user = JFactory::getUser($item_first->created_by);
echo JText::_('Post by').': '.$user->name;
?>
</div>

Thanks & regards!
The following user(s) said Thank You: walkys

Re: hide Post by and comment 10 years, 2 months ago #17792

Thanks for the answer, let say if one day i want to add them back ....this not what im looking for i think ..i need to fin a way to hide hem and to add then anytime i want

I can use css code to hide them it works(.item-postby {
color: red;
display: none;
}

.other-postby {
color: #999999;
display: none;
}

,but for some articles i woud like to keep the commments Link ,the post by etc....

Let me know if here is another option ..i think the issue is with K2

Re: hide Post by and comment 10 years, 2 months ago #17796

Dear Walkys lemaine,
Unfortunately module doesn't support this feature yet. You could add a module suffix and use your code (display: none;) to select the modules that you want to hide these features and where to show them.

Thanks & regards!
The following user(s) said Thank You: walkys
  • Page:
  • 1
Time to create page: 0.26 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes