{"id":5036,"date":"2018-10-21T10:50:15","date_gmt":"2018-10-21T08:50:15","guid":{"rendered":"https:\/\/www.zylstra.org\/blog\/?p=5036"},"modified":"2018-10-21T10:53:17","modified_gmt":"2018-10-21T08:53:17","slug":"fixing-h-card","status":"publish","type":"post","link":"https:\/\/www.zylstra.org\/blog\/2018\/10\/fixing-h-card\/","title":{"rendered":""},"content":{"rendered":"<p>Task 1 now complete. My blog declared 16 h-cards, one for each time my name was mentioned as author under the 15 blogposts on my front page, and 1 in the side bar. That last one is the only one I want to have, so I wanted to remove those underneath blogposts.<\/p>\n<p>To do that, I had to <a href=\"https:\/\/optimizerwp.com\/wordpress-child-theme\/\">create a child theme<\/a> of the theme I use, <a href=\"https:\/\/wordpress.org\/themes\/sempress\/\">Sempress<\/a>. I created it on my hosting server directly, not through WordPress. <\/p>\n<p>In the original theme I then hunted down the function used to show the author information for each posting, the sempress_posted_on function. This by viewing the various Sempress files in the WordPress internal Themes Editor. Then I copied that over to my child theme, and changed it. I simply removed the bits that turned my name into a link and all the h-card elements declared as classes around it. There&#8217;s no need to link to my author page here. I&#8217;m the only author, don&#8217;t have a profile page, and if you look at the &#8216;author archive&#8217; it is a list of all the postings on this site.<\/p>\n<p>I also cleaned up my single remaining h-card, adding a &#8220;p-note&#8221; class so that the blurb becomes part of the h-card, and making sure it lists the e-mail addresses correctly now. <\/p>\n<p>The child theme I created will be useful for changing the way webmentions are presented on my blog as well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Task 1 now complete. My blog declared 16 h-cards, one for each time my name was mentioned as author under the 15 blogposts on my front page, and 1 in the side bar. That last one is the only one I want to have, so I wanted to remove those underneath blogposts. To do that, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"webmentions_disabled_pings":false,"webmentions_disabled":false,"footnotes":""},"categories":[115,487,89],"tags":[793,711,914,888,933],"class_list":["post-5036","post","type-post","status-publish","format-standard","category-conferences","category-timeline","category-technology","tag-h-card","tag-indieweb","tag-indiewebcamp","tag-nuremberg","tag-sempress","no-title","h-entry","hentry"],"archive_meta":{"categories":["conferences","Day to Day","technology"],"tags":["h-card","IndieWeb","indiewebcamp","nuremberg","sempress"],"page_categories":[],"format":null,"kind":null,"ref":null},"_links":{"self":[{"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/posts\/5036","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/comments?post=5036"}],"version-history":[{"count":4,"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/posts\/5036\/revisions"}],"predecessor-version":[{"id":5040,"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/posts\/5036\/revisions\/5040"}],"wp:attachment":[{"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/media?parent=5036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/categories?post=5036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/tags?post=5036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}