Disable the excerpt on all page

  • Unknown's avatar

    Hello, please i want disable the excerpt on all blog but this code does not work

    add_action('init', 'my_child_Theme_remove_post_type_support');
    function my_child_Theme_remove_post_type_support() {
      remove_post_type_support('post', 'excerpt');
    }

    I put this in function.php code after:

    <?php
    add_action('wp_enqueue_scripts', 'carica_stili_parent');
    function carica_stili_parent() {
        wp_enqueue_style('parent-style', get_template_directory_uri() . '/style.css');
    }
    add_action( 'wp_head', 'carica_head_custom' );
    function carica_head_custom() { ?>
        <!-- Custom <head> content -->
     <?php }  
    

    it’s wrong?

    Theme is ItaliaWP2
    Thank

  • Unknown's avatar

    Hi there,

    From the information you have provided, it looks like you are using the open-source WordPress software rather than WordPress.com.

    For help, you can visit https://wordpress.org/support/

    Since your site isn’t hosted here, we do not have access to your account. To read about the difference, please visit our support page:

    https://wordpress.com/support/com-vs-org/

  • The topic ‘Disable the excerpt on all page’ is closed to new replies.