Community Forums › Forums › General Discussion › Remove Authors from Site Map
Tagged: remove Authors, Site Map
This topic contains 8 replies, has 3 voices, and was last updated by fiddles5 4 months, 3 weeks ago.
-
AuthorPosts
-
December 28, 2012 at 8:27 am #7880
Hello — I would like to remove the “Authors” and “Monthly” listings from the Site Map — how do I do this?
http://mywholelifehealthcare.com.previewdns.com/site-map/
thank you!
December 28, 2012 at 11:31 am #7908Make a copy of the page_archive.php file and put it in your child theme folder. Then edit your copied file to remove lines 49-52 (the forum keeps stripping out the copy of the code. Grrr…)
Basically it’s the h4 tag and the ul tag for the authors. It should be pretty obvious I hope.
December 28, 2012 at 11:48 am #7911Thanks but I don’t have a page_archive.php visible. I only have functions.php. Using the Executive theme.
December 28, 2012 at 11:51 am #7912You have to copy the page_archive.php file from the core Genesis theme folder. This is the template you used when you created your sitemap page.
When you put a template file in your child theme folder that duplicates one in the core Genesis theme folder then Genesis will use the one in your child theme folder instead of the one in the Genesis folder.
December 28, 2012 at 11:52 am #7914December 28, 2012 at 11:55 am #7916Chris — strike that! I looked in the Genesis directory and found the page_archive.php and copied it to the Executive Theme directory and modified it as you mentioned, and it worked.
Does anyone see any reason NOT to do it this way, or is it okay to do it this way?
Thanks, Chris! Happy New Year!
December 28, 2012 at 12:01 pm #7920December 28, 2012 at 12:05 pm #7924December 28, 2012 at 12:20 pm #7928thank you all so much!
-
AuthorPosts
The topic ‘Remove Authors from Site Map’ is closed to new replies.