Help Changing Default Shema Markup

Community Forums Forums General Discussion Help Changing Default Shema Markup

This topic is: not resolved

This topic contains 6 replies, has 2 voices, and was last updated by  sdbroker 7 months, 3 weeks ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #76468

    sdbroker
    Participant
    Post count: 106

    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.php where 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?

    #76477

    braddalton
    Participant
    Post count: 8794

    Try the Micro data Manager plugin http://wordpress.org/plugins/microdata-manager/


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #76485

    sdbroker
    Participant
    Post count: 106

    @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?

    #76496

    braddalton
    Participant
    Post count: 8794
    #76563

    sdbroker
    Participant
    Post count: 106

    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.

    #76593

    braddalton
    Participant
    Post count: 8794

    Can you link to your site please.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #76627

    sdbroker
    Participant
    Post count: 106

    Thanks Brad! Here’s an example of a dynamic created page that I’m trying to create a custom template page which will replace the default genesis schema.

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

You must be logged in to reply to this topic.