Hide author name and date

Hi,

I’m trying to solve the structured data errors with the following code and if I add it the author name and date show up,
<span class=“date updated published”><?php the_time( get_option(‘date_format’) ); ?></span>
<span class=“vcard author author_name”><span class=“fn”><?php the_author(); ?></span></span>

I actually don’t want to show those author and date on my page, is it possible to hide them after adding the code?

thanks

Hi,

You can add the code below to hide them:
span.date.updated, span.date.published{ display: none; }

span.vcard.author, span.vcard.author_name { display: none; }

Regards,
Awan

Thank you, it works.