Ultimate All-in-One Membership - Best Value Website Solution Package!

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

We are here to serve :)

Our support team is currently online to solve your issues.

Our support team is currently offline

Our support heroes might not be around this hour. Please expect some delays.

Our support is available from

Monday - Friday 8am - 5:30pm GMT+7

Your time: 00:00:00
Our time: 00:00:00

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 6 years, 11 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 6 years, 11 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 6 years, 11 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 6 years, 11 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.42 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.

Suggested Posts

(/)
Result not found!

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
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes
Quà Tết Cao Cấp Hộp quà tết Giỏ quà tết Túi quà tết