Solved Templates

How Do I Remove "Published By"???

Asked by Nader A. 3 years ago Last activity 3 years ago

Hello - Quick question, how do I hide or delete this line? I've tried all the article option settings and everything is on "hide" but it still appears. I do not want to show this "Posted By" line. I'm sure I'm missing something simple, but I can't figure it out. Please help :)

Nader

Accepted answer

Marked as the solution
Ofi Khan Staff

Please go to this location:

templates/magnin/html/com_content/article

and replace default.php file with the attached file. You need to unzip the file and then replace.

default.php.zip

Nader A. Asked this

Thank you! That worked. May I ask what the fix or issue was so that I can learn?

Nader

5 more replies

Ofi Khan Staff

Hello Nader A.

Apology for the inconvenience. Please share your administrator access here to check the issue. Use the Hidden Content box to share the credentials. Make sure that you have a full site backup with you before sharing.

Best regards

Mehtaz Afsana Borsha Staff

Hi

Thanks for contacting us. Could you please give me that specific page link? So that I can check.

-Regards.

Ofi Khan Staff

You are welcome 😊

Please accept the answer that helped you. It will be then easier to find the solution for the other users with the same issue. There is a button to accept answer after each comment.

I have a humble request too. It would be very kind of you if you can manage some moment to give us feedback on 

  1. Joomla Extension Directory
  2. TrustPilot

This will inspire us to improve.

What I did:

on line 100, I have commented out the line that is responsible for Posted by Author_Name text. If you change the line from this

<?php //echo LayoutHelper::render('joomla.content.blog.author_info', $this->item); ?>

to this

<?php echo LayoutHelper::render('joomla.content.blog.author_info', $this->item); ?>

then the line will be visible again.

Nader A. Asked this

Hi Ofi,

I accepted the answer that resolved my issue. Thanks again. Ok, so why isn't this an option through the admin console? Why does someone have to edit a line of code in order to hide the article information? Is this just how the template was built?

Nader

Ofi Khan Staff

Unfortunately, there is no option from admin. It would be better if there was. But overrides works like this. Since it is possible by commenting out 1 line easily, I think we should accept it.

I have a humble request. It would be very kind of you if you can manage some moment to give us feedback on 

  1. Joomla Extension Directory
  2. TrustPilot

This will inspire us to improve.

Log in to reply.