-
AuthorPosts
-
February 25, 2016 at 4:44 pm #589240
Hi,
Thank you for a fascinating Enfold theme!
My question is: How can I add an author’s name below the gravatar image in the individual blog roll?
Logically, it’s good to see the name of an author at the top of the article along with his gravatar.
Thank you.- This topic was modified 8 years, 10 months ago by jewsforjesus.
February 29, 2016 at 3:02 am #590533Hi,
Can you post the link to your blog please?
Regards,
JosueMarch 19, 2016 at 4:45 pm #600713Hi,
Find the link in the private window, please.Thank you.
March 19, 2016 at 10:32 pm #600761Hi,
Open includes/loop-index.php and look for line:
$blog_meta_output = "<a href='{$link}' class='post-author-format-type'><span class='rounded-container'>".$gravatar.$icon."</span></a>";
Replace it by this:
$blog_meta_output = "<a href='{$link}' class='post-author-format-type'><span class='rounded-container'>".$gravatar.$icon."</span>".$author_name."</a>";
Regards,
JosueMarch 20, 2016 at 11:11 pm #600910Thank you! :-)
Have a good day!March 21, 2016 at 1:57 am #600927You are welcome, glad to help :)
Regards,
JosueMay 9, 2019 at 6:46 pm #1099031Hi,
After the last update to 4.5.6 author’s name disappeared from the page. Your recipe doesn’t work anymore.
Help me please.
Have a good day.May 12, 2019 at 10:35 am #1099719Hi,
Sorry for the late reply, I have tested the code above on the latest update v4.5.7, and it still seems to work on my install, after you updated the theme did you try to add the code again?
Updating would have removed this code.
If you need more help with this please include an admin login & FTP access in the Private Content area, so we can be of more assistance.Best regards,
MikeMay 13, 2019 at 1:32 pm #1100036Hi Mike,
Thank you for your reply.
I’ve updated the theme to 4.5.7. It doesn’t work. No author name.
Here is the code in includes/loop-index.php:
//$blog_meta_output = “<span class=’rounded-container’>”.$gravatar.$icon.”</span>“;
$blog_meta_output = “<span class=’rounded-container’>”.$gravatar.$icon.”</span>”.$author_name.”“;
Another thing. In the category list of posts there are two similar pictures, one thumbnail and one from the post. How can I get rid of the thumbnail in the category list of articles?Thank you.
May 13, 2019 at 11:36 pm #1100325May 14, 2019 at 6:12 pm #1100719This reply has been marked as private.May 14, 2019 at 11:42 pm #1100765Hi,
Thanks for the login, but I was not able to login via FTP, please check.Best regards,
MikeMay 15, 2019 at 10:40 am #1100953This reply has been marked as private.May 16, 2019 at 10:40 pm #1101588Hi Mike,
I know you are busy but I’d like to ask you to find my last inquiry.
Thank you.May 19, 2019 at 7:46 pm #1102320Hi,
Sorry for the late reply, I still couldn’t login, but I see in your child theme > includes/loop-index.php your code is not correct, I tried to update but could not via the WordPress > Appearance > Editor as it needs to be done via ftp. Please try to correct:
This is what you have:$blog_meta_output = "<a href='{$link}' class='post-author-format-type'><span class='rounded-container'>".$gravatar.$icon."</span></a>";
it needs to be:
$blog_meta_output = "<a href='{$link}' class='post-author-format-type'><span class='rounded-container'>".$gravatar.$icon."</span>".$author_name."</a>";
as you will see you need the “.$author_name.”
Best regards,
MikeMay 27, 2019 at 8:05 am #1104435Hi Mike,
Thank you for helping me. Unfortunately, your recipe doesn’t work. I’ve made what you told me but it didn’t start working.
Sorry for inconvenience with passwords. I don’t know why you cannot log in.
Anyway, please find the credentials in the private message.
Let me know what error do you receive if you cannot succeed.Thank you.
May 28, 2019 at 5:06 am #1104641Hi,
Thanks for the feedback, I was able to login to your cPanel once I used an RU VPN.
I added the “.$author_name.” as described above and now the author name is showing.
I also added this css to hide the second featured image in your Quick CSS:#top.archive .big-preview.multi-big { display: none !important; }
Please see the link in the Private Content area.
Please clear your browser cache and check.Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.