Page 1 of 1
SOLVED - How to replace "Reading Time" with "Author"?
Posted: Tue Mar 11, 2025 11:44 pm
by DonnyBahama
On the home page as well as individual blog post pages, right below the post title, it says, "[Publish Date] - Reading time: [X] minutes". I'd like it, instead, to say, "[Publish Date] - Published by: [author]".
I've poked around quite a bit but I can't seem to figure it out.
Re: How to replace "Reading Time" with "Author"?
Posted: Wed Mar 12, 2025 4:30 pm
by abu
You have to adjust the following places:
- /bl-themes/blogx/php/page.php:20
- /bl-themes/blogx/php/home.php:28
Good luck!
Re: How to replace "Reading Time" with "Author"?
Posted: Wed Mar 12, 2025 4:43 pm
by DonnyBahama
Thanks, but what should the code look like?
Re: How to replace "Reading Time" with "Author"?
Posted: Wed Mar 12, 2025 7:55 pm
by abu
DonnyBahama wrote: Wed Mar 12, 2025 4:43 pm
Thanks, but what should the code look like?
Similar to the existing lines, but with your desired content.
Unfortunately, I don't have the time to solve this for you.

Re: How to replace "Reading Time" with "Author"?
Posted: Fri Mar 14, 2025 11:27 am
by abu
Well, it's not that difficult to realize, and I have a good day up to now.
Please see the following patch.
HTH
abu
Code: Select all
diff --git a/bl-themes/blogx/php/home.php b/bl-themes/blogx/php/home.php
index cff53455..e927993c 100644
--- a/bl-themes/blogx/php/home.php
+++ b/bl-themes/blogx/php/home.php
@@ -25,7 +25,7 @@
<!-- Creation date -->
<h6 class="card-subtitle mt-1 mb-4 text-muted">
<i class="bi bi-calendar"></i><?php echo $page->date(); ?>
- <i class="ml-3 bi bi-clock-history"></i><?php echo $L->get('Reading time') . ': ' . $page->readingTime(); ?>
+ <i class="ml-3 bi bi-person"></i><?php echo $L->get('Published by') . ': ' . $page->username(); ?>
</h6>
<!-- Breaked content -->
diff --git a/bl-themes/blogx/php/page.php b/bl-themes/blogx/php/page.php
index 7b60f3d1..f1e2703e 100644
--- a/bl-themes/blogx/php/page.php
+++ b/bl-themes/blogx/php/page.php
@@ -17,7 +17,7 @@
<?php if (!$page->isStatic() && !$url->notFound()): ?>
<!-- Creation date -->
- <h6 class="card-subtitle mb-3 text-muted"><?php echo $page->date(); ?> - <?php echo $L->get('Reading time') . ': ' . $page->readingTime() ?></h6>
+ <h6 class="card-subtitle mb-3 text-muted"><?php echo $page->date(); ?> - <?php echo $L->get('Published by') . ': ' . $page->username() ?></h6>
<?php endif ?>
<!-- Full content -->
Re: How to replace "Reading Time" with "Author"?
Posted: Fri Mar 14, 2025 8:40 pm
by DonnyBahama
Thank you! Super helpful! I got the changes made.