• 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

MauroGM

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 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • April 15, 2016 at 8:18 am in reply to: Magazine Pro Schema Markup Warnings #183554
    MauroGM
    Member

    Hi, right div is already closed:

    HTML code source:

    <section class="author-box" itemprop="author" itemscope="itemscope" itemtype="https://schema.org/Person">
    <div class="left">
    Eddy Pineda
    </div> //***left div ***//
    <div class="right">
    <h3 class="author-box-title"> Autor: <span itemprop="name">Eddy Pineda</span></h3>
    <div class="author-box-content" itemprop="description">
    <p>Soy de Guatemala City, y me especializo en dispositivos móviles, sobre todo smartphones y Tablets con Android, en las Actualizaciones mas recientes, Roms, Mods, Root y Liberaciones , y entre otros dispositivos Android.</p>
    </div> //***author-box-centent *****//
    <div class="author-social">

    <span class="fa fa-facebook"></span>

    <span class="fa fa-twitter"></span>

    <span class="fa fa-google-plus"></span>

    <span class="fa fa-linkedin"></span>

    </div> //**** author-social ***///
    </div>//**** right div ****//
    </section>

    PHP Code in functions.php

    //* Customize the author box
    add_filter( 'genesis_author_box', 'gm_author_box', 10, 6 );
    function gm_author_box( $output, $context, $pattern, $gravatar, $title, $description ) {

    $output = '';

    $output .= '<section class="author-box" itemprop="author" itemscope="itemscope" itemtype="https://schema.org/Person">';
    $output .= '<div class="left">';
    $output .= get_avatar( get_the_author_meta( 'email' ), 100 );
    $output .= '</div>';
    $output .= '<div class="right">';
    $name = get_the_author();
    $title = get_the_author_meta( 'title' );
    if( !empty( $title ) )
    $name .= ', ' . $title;

    $output .= '<h3 class="author-box-title"> Autor: <span itemprop="name">' . $name . '</span></h3>';
    $output .= '<div class="author-box-content" itemprop="description"><p>' . get_the_author_meta( 'description' ) . '</p></div>';

    $output .= '<div class="author-social">';

    if( get_the_author_meta( 'facebook' ) )
    $output .= '<span class="fa fa-facebook"></span> ';
    if( get_the_author_meta( 'twitter' ) )
    $output .= '<span class="fa fa-twitter"></span> ';
    if( get_the_author_meta( 'googleplus' ) )
    $output .= '<span class="fa fa-google-plus"></span> ';
    if( get_the_author_meta( 'linkedin' ) )
    $output .= '<span class="fa fa-linkedin"></span> ';
    $output .= '</div>**//end right div**//</section>';

    return $output;
    }

    Thanks for you great support.

    April 14, 2016 at 1:29 pm in reply to: Magazine Pro Schema Markup Warnings #183627
    MauroGM
    Member

    Thanks for you great support.

    Best regards.

    April 14, 2016 at 11:31 am in reply to: Magazine Pro Schema Markup Warnings #183612
    MauroGM
    Member

    Hi, Thanks for you great support, i fixed the comments schema markup, one last question, about hcards in the demo appears two hcard and in my blog dont appears any hcard.

    Any Ideas??

    Thank U.

    April 14, 2016 at 11:28 am in reply to: Magazine Pro Schema Markup Warnings #183609
    MauroGM
    Member

    Hi, Thanks for you great support, i fixed the comments schema markup, one last question, about hcards in the demo appears two hcard and in my blog dont appears any hcard: https://developers.google.com/structured-data/testing-tool/ demo: http://demo.studiopress.com/magazine/threaded-comments/ and my blog https://getmovil.com/aplicaciones/instalar-google-play-store-android/

    Thank U.

    April 13, 2016 at 12:49 pm in reply to: Magazine Pro Schema Markup Warnings #183556
    MauroGM
    Member

    Hi, div class right is already closed

    Thanks for you great support.

    April 13, 2016 at 12:24 pm in reply to: Magazine Pro Schema Markup Warnings #183550
    MauroGM
    Member

    Hi, div right is already closed the code sourve is:

    //* Customize the author box
    add_filter( 'genesis_author_box', 'gm_author_box', 10, 6 );
    function gm_author_box( $output, $context, $pattern, $gravatar, $title, $description ) {
    
    $output = '';
    
    	$output .= '<section class="author-box" itemprop="author" itemscope="itemscope" itemtype="https://schema.org/Person">';
    	$output .= '<div class="left">';
    	$output .= get_avatar( get_the_author_meta( 'email' ), 100 );
    	$output .= '</div>';
    	$output .= '<div class="right">';
    	$name = get_the_author();
    	$title = get_the_author_meta( 'title' );
    	if( !empty( $title ) )
    		$name .= ', ' . $title;
    		
    	$output .= '<h3 class="author-box-title"> Autor: <span itemprop="name">' . $name . '</span></h3>';
    	$output .= '<div class="author-box-content" itemprop="description"><p>' . get_the_author_meta( 'description' ) . '</p></div>';
    
    	$output .= '<div class="author-social">';
    	
    	if( get_the_author_meta( 'facebook' ) )
    		$output .= '<a href="' . esc_url( get_the_author_meta( 'facebook' ) ) . '"><span class="fa fa-facebook"></span></a> ';
    	if( get_the_author_meta( 'twitter' ) )
    		$output .= '<a href="' . esc_url( get_the_author_meta( 'twitter' ) ) . '"><span class="fa fa-twitter"></span></a> ';
    	if( get_the_author_meta( 'googleplus' ) )
    		$output .= '<a href="' . esc_url( get_the_author_meta( 'googleplus' ) ) . '"><span class="fa fa-google-plus"></span></a> ';
    	if( get_the_author_meta( 'linkedin' ) )
    		$output .= '<a href="' . esc_url( get_the_author_meta( 'linkedin' ) ) . '"><span class="fa fa-linkedin"></span></a> ';
    		$output .= '</div></section>';  //****end right div****//
    
    return $output;
    }

    And html code:

    <section class="author-box" itemprop="author" itemscope="itemscope" itemtype="https://schema.org/Person">
    <div class="left">
    <img width="100" height="100" alt="Eddy Pineda" class="avatar avatar-100 wp-user-avatar wp-user-avatar-100 alignnone photo" pagespeed_url_hash="3239239887" src="https://getmovil.com/wp-content/uploads/2015/03/100x100xEddy-Pineda.jpg.pagespeed.ic.jT9Apg_iPM.webp">
    </div> //***left div ***//
    <div class="right">
    <h3 class="author-box-title"> Autor: <span itemprop="name">Eddy Pineda</span></h3>
    <div class="author-box-content" itemprop="description">
    <p>Soy de Guatemala City, y me especializo en dispositivos móviles, sobre todo smartphones y Tablets con Android, en las Actualizaciones mas recientes, Roms, Mods, Root y Liberaciones , y entre otros dispositivos Android.</p>
    </div> //***author-box-centent *****//
    <div class="author-social">
    <a href="https://facebook.com/getmovil" class="external" rel="nofollow" target="_blank">
    <span class="fa fa-facebook"></span></a> <a href="https://www.twitter.com/eaph02" class="external" rel="nofollow" target="_blank">
    <span class="fa fa-twitter"></span></a> <a href="https://plus.google.com/+EddyPineda" class="external" rel="nofollow" target="_blank">
    <span class="fa fa-google-plus"></span></a> <a href="https://www.linkedin.com/in/eddypineda" class="external" rel="nofollow" target="_blank">
    <span class="fa fa-linkedin"></span></a> 
    </div> //**** author-social ***///
    </div>//**** right div ****//
    </section>

    Thanks for you great support.`

    April 12, 2016 at 8:34 pm in reply to: Magazine Pro Schema Markup Warnings #183493
    MauroGM
    Member

    Hi, thanks for you answer, but i use the native comments from magazine pro genesis child theme, and in the demo with With Threaded Comments http://demo.studiopress.com/magazine/threaded-comments/ dont appears any warning abut schema markup, only in my blog

    Best regards.

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

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

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