I am using Beans Theme Framework and Beans Starter Child Theme. I would like to remove the date from Google Search Result for a bbPress forum. I was going to try by modifying theme files index.php for the homepage, single.php for the single post, archive.php for archives.
In those theme files it states - This core file should strictly be overwritten via your child theme.
Because of my skill level I normally don't venture beyond putting code in the function.php and style.css pages in the Beans Starter Child Theme. Any help with this would be appreciated.
Yoast SEO is not an option.
The Date I am trying to remove appears on monroe-county-ny.pagesquares.com
Thank you for your time,
You can overwrite Beans parent theme files like
index.php, page.php, single.php etc.. just by creating that file with the same name in Beans child theme directory/folder.
If you are familliar with Beans API, your new file should look like this:
<?php /* * My child theme index.php */ // Beans has some cool functions to modify the DOM, use them after this line... ... .. . /* * Now you should load the entire document. * This function should be always at the end of the file. */ beans_load_document();
Or the classic way:
<?php /* * My classic index.php * * Sidebar(s) are automatically generated when get_header() is called. */ get_header(); // your custom content... ?> <div id="content"> <?php while ( have_posts() ) : the_post(); ... endwhile; ?> </div><!-- end content --> <?php get_footer();
Edited 2 weeks ago by Joseph B