December 1, 2013 at 1:11 pm #76468
Does anyone know how to change the Genesis default Schema.org markup on dynamic pages? Been searching over the last couple days with no luck.
Fairly easy to change on a static page on
functions.phpwhere you know the page ID but how can this be done on a dynamic generated page where you don't know the page ID and the page title changes according to the product or whatever included on that page?
Tried creating a custom template page and added some attribute filters code with no luck. I don't know what code to include and I keep getting errors on the page.
Tried following Yoast's tutorial on events, but from what I understand that's based on static pages so it doesn't work either.
I know that can be done using the proper code on a custom page template but what's that code? Anyone knows?December 1, 2013 at 1:38 pm #76477December 1, 2013 at 2:15 pm #76485
@braddalton The plugin works fine on static pages or posts that have an ID but it cannot be used on dynamic created pages which you cannot edit. 🙁
Only a custom page template which changes the default markup will work... but what's the code on that CTP for the markup to work?December 1, 2013 at 3:47 pm #76496December 2, 2013 at 1:46 am #76563
Thanks Brad, I had previously seen Ryan's blog post and I actually used it for changing the schema on a few pages (for my needs I think it's better than the Microdata Manager plugin as it gives you more control and options) but again this only works for static pages and posts that have an ID and can be edited.
I've got more than 7,000 dynamic generated pages that have no ID, no slug and they all have unique titles that can change based on item availability. That is why I believe that only a custom page template will work.
The closest I have found is Yoast's speaking page example which uses a custom template page and a genesis markup helper file.
From what I saw on the video you have included on your blog, there's a big possibility that child themes that include the specific scheme will arrive sometime in the near future, so I guess we'll have to wait for them to get a better idea on how that works... I'm pretty sure that it's not difficult if you know what filters to use, as using an incorrect filter can break that custom template page.December 2, 2013 at 8:39 am #76593December 2, 2013 at 12:10 pm #76627
You must be logged in to reply to this topic.