• I am using Twentyfourteen. I want to add class=”hentry”></article but not sure where to put it. Content.php? Template-tags.php? With single.php, I have no idea where to place it as the file doesn’t have any classes. I want to add this to resolve one of many hAtom errors I have.

Viewing 15 replies - 16 through 30 (of 53 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you link your site

    Thread Starter Dan14

    (@dan14)

    Andrew, my guess is that is in template-tags, I need to add it all there but no idea where, https://github.com/WordPress/WordPress/blob/master/wp-content/themes/twentyfourteen/inc/template-tags.php

    I maybe wrong and it could be elsewhere like content.php or single.php but have literally no idea.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Dan, could you link your website so that we can attempt to debug why your Child Theme functions aren’t working?

    Thread Starter Dan14

    (@dan14)

    I would prefer note because of Google will index it right away and it will come up on search engines. How can I send it to you privately?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You can’t send it privately, as these are publicly facing forums.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Check that your Child Theme is active in the dashboard, under Appearance > Themes.

    Edit: Actually it already is active since you received a white page when editing your Child Theme functions.php file

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Do you have any caching plugins?

    Thread Starter Dan14

    (@dan14)

    Yes, W3 Total cache. I am going to post my site once and then delete it. I am sure I have many problems that prevent this from working.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    In W3 Total Cache’s section of the dashboard it should have a setting to clear its cache. Use that, clear its cache. Then deactivate that plugin.

    Then you should see your changes come through to your website.

    Thread Starter Dan14

    (@dan14)

    There are many references to this aside the link I posted earlier but can’t get this to work, https://www.asiogroup.net/fix-hatom-feed-warnings-structured-data-blog-posts/

    Thread Starter Dan14

    (@dan14)

    Ok. I need to clear the cache first, deactivate the plugin and then reavtivate it? This will not cause any problems as I already have over 20 posts, pages, widgets, plugins etc.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Clearing its cache should do the trick, but if you’re developing your site you don’t want to be using a caching plugin.

    Thread Starter Dan14

    (@dan14)

    The site is already live and I am updating it as I go a long. If I deactivate the W3 total cache will it cause any problems to the posts I already made and that are already indexed by google? I understand what you mean but I will always have to make changes as I go a long.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I’m sorry I do not know an answer to that, can you create a new thread on your plugin’s support section asking:

    If I deactivate the W3 total cache will it cause any problems to the posts I already made and that are already indexed by google?

    Thread Starter Dan14

    (@dan14)

    I will ask them. I cleared the cache but the errors persist:

    Error: Missing required field “updated”.

    Error: At least one field must be set for HatomEntry.
    Error: Missing required field “entry-title”.
    Error: Missing required field “updated”.
    Error: Missing required hCard “author”

    I am more concerned with hentry and updated.

Viewing 15 replies - 16 through 30 (of 53 total)
  • The topic ‘Where to add class hentry in twentyfourteen’ is closed to new replies.