-
AuthorPosts
-
November 8, 2023 at 11:18 am #1424977
Hi. I’m trying to update the author section on my website from “About Andreas” to “Om Andreas”* and need some help. So far, I’ve attempted the following:
CSS Edits: Tried using CSS in the child theme’s style.css to replace “About” with “Om”. Despite clearing all caches, the text remains unchanged.
JavaScript Insertion: Added JavaScript in functions.php to modify the text, which partially worked but resulted in “About Om”, not what I intended.
PHP File Search: Looked through various theme PHP files for the relevant HTML structure but couldn’t find it.
P.S. I’m also looking to change instances where it says “by”*,”Entries by”* to a different text. Can you guide me on that as well?
*This are to be found on the author page (/author/)Thanks
November 9, 2023 at 1:40 am #1425055Hey andersjensen055,
Thank you for the inquiry.
You can directly override and modify the enfold/includes/loop-about-author.php file. You’ll find the text around line 32.
$heading = __( 'About', 'avia_framework' ) . ' ' . $name;
The “Entries by” string can be found in the enfold/author.php file around line 24.
$heading_s = __( 'Entries by', 'avia_framework' ) . ' ' . $name;
Best regards,
IsmaelNovember 9, 2023 at 11:03 am #1425099Thank you, Ismael, for pointing me in the right direction. The correct file to modify was enfold/includes/loop-about-author.php.
As for the second string, while there wasn’t an author.php file in the Enfold folder, I managed to locate the necessary code to change through the Theme File Editor under the Appearance section in WordPress. I made the edits directly in the Enfold parent theme.
For anyone else looking to make similar edits, you can navigate to Appearance > Theme File Editor and access the relevant strings within the Enfold parent theme to make your changes.
November 13, 2023 at 3:50 am #1425363Hi,
Thanks for the update.
If you’ve installed a child theme, you can create duplicates of the template files and override the ones in the parent theme to retain modifications after a theme update.
// https://kriesi.at/documentation/enfold/child-theme/
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.