• 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

paulang

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • August 21, 2017 at 2:59 am in reply to: Where is the Custom Redirect URL in the database? #210573
    paulang
    Member

    wow.

    Redirect has a few levels.

    You can redirect from ur DNS, server (apache or Nginx) or from wordpress, and all are found in different places. What is it you want to achieve?

    August 21, 2017 at 2:58 am in reply to: Where is the code? #210572
    paulang
    Member

    u need to get to the directory. If you are not into code.

    Perhaps try this?

    December 11, 2016 at 12:42 am in reply to: Best approach to implement Schema.org markup! #197419
    paulang
    Member

    I figured out the problem, it is the wordpress editor that is removing the span tags as it doesnt recognise it to be useful.

    So i used an easy way out, someone's plugin: "Protect schema.org markup in HTML editor"

    So i managed to get the page working for now... I'm just going to leave it alone for now. I am happy enough getting my localBusiness schema up

    https://www.punggolgp.com/contact/

    But it somehow breaks images!!!

    So anyway, you have to copy and paste your images urls directly into the code to get it working...

    Not perfect, but can someone smart please save us please hahahha...

    December 10, 2016 at 11:13 pm in reply to: Best approach to implement Schema.org markup! #197418
    paulang
    Member

    Hey guys, don't bother clicking around these above links. I'm ashamed i wasted so much time googling.

    But this nice dude here has done the work for us. Apparently quite easy as long we have done our due diligence in understanding genesis.

    https://www.rfmeier.net/custom-microdata-with-genesis-2-0/

    His code definitely works:

    <?php
    //* do not include php tag
    add_filter( 'genesis_attr_body', 'about_page_body_schema' );
    /**
     * Callback for Genesis 'genesis_attr_body' filter.
     * 
     * Use the AboutPage microdata schema for the About page.
     * 
     * @package Genesis
     * @category Attributes
     * @author Ryan Meier http://www.rfmeier.net/
     * 
     * @param array $attributes The array of attributes
     * @return array $attributes The array of attributes
     */
    function about_page_body_schema( $attributes ) {
            
        // if About page, use the AboutPage schema
        if ( is_page( 'about' ) ) {
            $attributes['itemtype'] = 'http://schema.org/AboutPage';
        }
        
        // if Services page, use the ContactPage schema
        if ( is_page( 'services' ) ) {
            $attributes['itemtype'] = 'http://schema.org/ContactPage';
        }
        
        return $attributes;
            
    }

    i've modified the is_page parameters to fit either the post id or the post title (google that). Pretty easy.

    Works on my site here: punggolgp.com/contact/

    Now the next step is to add the child elements: itemscope and itemprop .

    Does anyone know if these can be keyed in directly in the body of the wordpress editor?

    Thanks guys!

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 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