Editing Loop.php and Loop-single.php — Please help w/ author information…
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″
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.
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!!
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?
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.