Return to Support

Editing Loop.php and Loop-single.php — Please help w/ author information…

Home Forums Graphene WordPress theme Support Editing Loop.php and Loop-single.php — Please help w/ author information…

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #8647
    irishgem
    Member

    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”></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″

    rel=”author”>My Name

    </span></span>

    Thank you!!

    #41725

    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.

    #41726
    irishgem
    Member

    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"
    rel="author">My name</a>
    </span></span>

    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!!

    #41727
    irishgem
    Member

    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?

    #41728
    Quote:
    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.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.