This topic has 9 replies, 3 voices, and was last updated 10 years, 12 months ago by Fem.
Viewing 10 posts - 1 through 10 (of 10 total)
Missing: author
Missing: updated
this is from Google search console or google webmaster tools.
Hi javierrebelde,
Find the follwoing path :
http://www.aivahthemes.com/hostmev2/wp-content/themes/hostmev2/framework/common/atp_generator/
find the postmetaStyle() :
echo '<span>';
the_time("M j, Y");
echo '</span><span >';
the_author_posts_link();
echo '</span><span>';
replace with this code
echo '<span class="post-date updated" >'; // added class="post-date updated"
the_time("M j, Y");
echo '</span><span>';
the_author_posts_link();
echo '</span class="vcard author post-author"><span>';
// added class="vcard author post-author"
Regards,
krishnaveni
I’m using the Lifecare Theme and I didn’t see your exact code. I see the following code:
// P O S T M E T A D A T A
//--------------------------------------------------------
function postmetaStyle() {
global $format;
ob_start();
$out = '<div class="post-metadata">';
echo '<div class="iva_date">';
echo '<span class="month">';
the_time("M");
echo '</span>';
echo '<span class="day">';
the_time("j");
echo '</span>';
echo '</div>';
if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ){
echo '<span class="meta-comments"><i class="fa fa-comment fa-fw"></i>';
comments_popup_link( __( '0', 'iva_theme_front' ), __( '1', 'iva_theme_front' ), __( '%', 'iva_theme_front' ) );
echo '</span>';
}
echo '<span class="meta-likes">'.iva_love('iva_like') .'</span>';
$out .= ob_get_clean();
$out .= '</div>';
return $out;
}
// A B O U T A U T H O R
//--------------------------------------------------------
function aboutauthor(){?>
<div id="entry-author-info">
<div class="author_entry">
<div class="author-description">
<p><?php the_author_meta('description'); ?></p>
</div>
</div>
</div>
<?php
}
Hi allsafepool,
Find the following path :
http://www.aivahthemes.com/lifecare/wp-content/themes/hostmev2/framework/common/atp_generator/
echo '<span class="month">';
the_time("M");
echo '</span>';
echo '<span class="day">';
the_time("j");
echo '</span>';
echo '</div>';
replace with this code
echo '<span class="month post-date updated">';
the_time("M");
echo '</span>';
echo '<span class="day post-date updated">';
the_time("j");
echo '</span><span class="vcard author post-author"><span class="fn">';
<?php the_author(); ?>
echo '</span></span></div>';
The <?php the_author(); ?> line blanks out my website. If I do not include that line of code, my website loads normally. Can you please advise with that line of code? Thanks.
echo '<span class="month post-date updated">';
the_time("M");
echo '</span>';
echo '<span class="day post-date updated">';
the_time("j");
echo '</span><span class="vcard author post-author"><span class="fn">';
<?php the_author(); ?>
echo '</span></span></div>';
But, I am saying that when I include <?php the_author(); ?>, my website becomes blank. If I leave it out, my website is ok.
Ok and then I just need to copy the file atp_generator.php in the child theme root folder or in
hostmev2-child/frameworks/common/atp_generator.php
Viewing 10 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic.