Forum Replies Created
-
AuthorPosts
-
MauroGMMember
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">
</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.
MauroGMMemberThanks for you great support.
Best regards.
MauroGMMemberHi, 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.
MauroGMMemberHi, 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.
MauroGMMemberHi, div class right is already closed
Thanks for you great support.
MauroGMMemberHi, 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.`
MauroGMMemberHi, 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.
-
AuthorPosts