January 12, 2014 at 6:21 am #8647
I have done a little bit of research and it seems like I need to edit Loop.php and Loop-Single.php. I just need help with the exact coding…
Basically, I would like the ‘author’ information to be connected to my Google+ account.. Looking at the SOURCE of my page, the ‘V-card’ currently looks like this:
<p class=”post-author author vcard”>
by <span class=”fn nickname”>My Name</span> </p>
If I were to go into the code in Loop.php and Loop-Single.php, what do I need to do to put in the following code?
<span class=”vcard author”><span class=”fn”>
by <a href=”https://plus.google.com/00000″
Thank you!!January 12, 2014 at 4:12 pm #41725Kenneth John OdleModerator
You should not edit theme files. You should create a child yheme first.
However, if you actually want people to visit your profile, you might be better off using an action hook widget area to create a separate link to it.
Moved to Support. Please post in the correct section next time.January 13, 2014 at 3:07 am #41726
Hi! I am looking for help for the two following errors.
Webmaster Tools (Google) shows that Author:Missing
Googles’ Richsnippet has everything confirmed except the following:
Automatically detected author name on webpage: Not Found
How do I fix these? I went into the Graphene Options>Advanced> Custom Head Tags and put in the following (a code I found online).
<span class="vcard author"><span class="fn">
by <a href="https://plus.google.com/105700000"
Would it work this way? I noticed when I checked the ‘front page’, the source showed the code I added at the top, but at the ‘post’ (on same page) the information shows as following:
<p class="post-author author vcard">
by <span class="fn nickname"><a href="http://www.domain.com/author/admin/" class="url" rel="author">My Name</a></span> </p>
So basically, on the front page, the source shows two areas where the “vcard” is…
Any help would be appreciated! Thank you!!January 13, 2014 at 3:21 am #41727
I am very confused, I was trying to figure out this last night and added in the coding (above) to the header in Advanced settings.
Now, it seems like by doing that, all the pages except for the front page are fine.
I tested on Richsnippet and the pages show my author name has been confirmed to use automatically. Perfect!
The front page is having issues because it is set to “Your Latest Post” and while I have the code above in the header. The other “vcard” code is showing up before the posts in the source. So, it is overriding the code I have in the header.
Basically, can I just override the author information that is in the loop.php and loop-single.php without touching the file?January 16, 2014 at 12:08 am #41728Kenneth John OdleModeratorQuote:Basically, can I just override the author information that is in the loop.php and loop-single.php without touching the file?
Yes, by creating copies of those files with the necessary changes in your child theme.
You must be logged in to reply to this topic.