WordPress.org

Forums

Disable Word Count (3 posts)

  1. janolima
    Member
    Posted 4 years ago #

    Hello guys:

    I am trying to put a great amount of text on a web page but wordpress freezes. I suspect it is due to the script of the word count.

    Did you have this problem before? How can I disable the word count at wordpress so I can test if that is the problem?

    Thank you very much,

    Alejandro

  2. Michael Bishop

    Posted 4 years ago #

    You can disable the script that does the word count by adding to your functions.php file in your theme:

    function my_init_method() {
        wp_deregister_script( 'word-count' );
    }    
    
    add_action('init', 'my_init_method');
  3. janolima
    Member
    Posted 4 years ago #

    Thank you very very much. I added the code at the end of the functions.php file and it works! But is that the right place for the code?

    As I supposed, now wordpress does not freeze even if I put larges amounts of text on a web page. So would you think this is a wordpress issue or a theme issue? I am a little bit worried because my theme is a paid one so I would want to know in order that I can report the bug.

    Thanks again man,

    Alejandro

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.