Show Author's name under the headline

Photo, amazing way to showcase your architecture, photography or artistic projects | Support forum.
GK User
Tue Jun 21, 2016 11:39 am
Hello,

I use the Theme Photo for my Blog at http://www.blog.goamus.de.
First of all: it is a very expressive theme. I like it very much!
I want to show the author's name under the headlne, before the date on single post's.
So how can I do this?? ( I'm not very familiar with PHP. So, if it nessesary to change anything in a php-file in would like to know the name of the file.)
Thank you for your support!
Greetings
K. Mosbach
User avatar
Fresh Boarder

Joshua M
Wed Jun 22, 2016 7:45 am
Hi,

Great to hear that you like our theme :)
Regarding the issue, please edit your Photo/content-header.php file and add the following line:
Code: Select all
echo '<span>' .get_the_author().', </span>';


before line 113:
Code: Select all
echo sprintf('<time class="entry-date" datetime="'. esc_attr(get_the_date('c')) . '">'. $date_format . '</time>');
User avatar
Moderator

GK User
Wed Jun 22, 2016 10:37 am
Thank you very much. It work's fine!
User avatar
Fresh Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.