• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Add schema.org markup in

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Add schema.org markup in

This topic is: not resolved

Tagged: schema

  • This topic has 3 replies, 2 voices, and was last updated 8 years, 12 months ago by Brad Dalton.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • December 11, 2016 at 9:37 pm #197436
    dmcs32653
    Member

    Hi,

    Theme: Square One

    When we design pages, we like to reserve the "genesis_footer" for Creative Work schema markup including the copy rights. So our "actual footer" lies above that in the <div id=genesis-footer-widgets" class="footer-widgets"> This is our primary footer which we markup with schema.org for a particular client (e.g. a plumber or a dentist).

    Genesis considers this part as schema.org/WebPage. I do not want to overwrite Genesis (and we shouldn't) but I want to include schema.org/Plumber in the div tag <div itemscope itemtype="http://schema.org/Plumber id="genesis-footer-widgets" class="footer-widgets">. Our "footer" consists of 3 columns which make up the entire schema markup for a plumber.

    What is the easiest way to insert the markup?

    Will the markup disappear when we update Genesis or the Theme?

    Perhaps, we should use "genesis_footer" for this purpose and "genesis_after_footer" for Creative Work markup but the widgets are so easy to markup and to put in columns.

    Thank you,

    Sebastian

    http://jwfreemanplumbing.com
    December 12, 2016 at 12:59 am #197444
    Brad Dalton
    Participant

    You can filter the default schema in Genesis and change the link.

    Try line 1054 genesis > lib > functions > markup.php


    Tutorials for StudioPress Themes.

    December 12, 2016 at 12:25 pm #197479
    dmcs32653
    Member

    Thank you, Brad.

    A follow up question:

    Do I just change this code:

    function genesis_attributes_site_footer( $attributes ) {

    $attributes['itemscope'] = true;
    $attributes['itemtype'] = 'http://schema.org/WPFooter';

    return $attributes;

    to:

    function genesis_attributes_site_footer( $attributes ) {

    $attributes['itemscope'] = true;
    $attributes['itemtype'] = 'http://schema.org/Plumber';

    return $attributes;

    Or will I have to insert one of the Genesis Filters? If so, which one and where do I place it?

    Your answer is much appreciated.

    December 12, 2016 at 1:44 pm #197483
    Brad Dalton
    Participant

    Make sure you take the entire code snippet including the filter hook and change the link.

    You can then use the filter function with a unique function name in your child themes functions file.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble