[Resolved] Remove excerpt from archives

  • Author
    Posts
  • #14678

    Sebastian
    Participant

    Hi, 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.

    #14679

    Andrew Misplon
    Keymaster

    Hi 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/.

    #14680

    Sebastian
    Participant

    Excellent. This is exactly what I was looking for. Thank you.

    #14681

    Andrew Misplon
    Keymaster

    Super, glad to hear that helped. All the best with your site.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Scroll to top