- This topic has 3 replies, 2 voices, and was last updated 4 years, 4 months ago by Andrew Misplon.
- AuthorPosts
- July 2, 2020 at 1:42 am #14678
SebastianParticipantHi, I have been trying to figure out how to remove excerpt content from archive pages. I want to have only titles displayed. I am sure this can be achieved by removing some code but I cannot find the right file. Thank you in advance.
July 2, 2020 at 8:52 am #14679
Andrew MisplonKeymasterHi Sebastian
Thanks for reaching out.
Please, keep in mind that the entire theme folder is replaced during the theme update process. Code level changes can be made using a child theme or custom functions in a plugin or a plugin like Code Snippets.
If you’re making use of a child theme, the following can be added to the child theme functions.php file:
if ( ! function_exists( 'ultra_excerpt' ) ) : /** * Outputs the excerpt. */ function ultra_excerpt() { return; } endif;
If you aren’t using a child theme, a starter child theme can be found here https://purothemes.com/documentation/ultra-theme/child-theme-library/.
Here is how you can migrate Customizer settings from a parent to a child theme https://purothemes.com/customizer-settings-export-import/.
July 4, 2020 at 8:26 pm #14680
SebastianParticipantExcellent. This is exactly what I was looking for. Thank you.
July 5, 2020 at 10:11 am #14681
Andrew MisplonKeymasterSuper, glad to hear that helped. All the best with your site.
- AuthorPosts
You must be logged in to reply to this topic.