Whistle

4 Replies ·

  1. How to disable automatic formatting in the editor? In my file functions.php already have

    `remove_filter( ‘the_content’, ‘wpautop’ );`

    On the page Edit Whistle does not work.

  2. Justin Tadlock

    Do you want to disable automatic formatting in the editor or in the output on the front end? I’m unfamiliar with how to disable formatting with the editor. That’s outside the scope of this plugin.

    Are you only wanting to disable paragraphs? Or, do you want to disable all formatting?

  3. Natali

    HTML-editor in WP automatically inserts `

    ` and `
    ` when writing a text post. If remove the filter as shown above, in the editor of ordinary posts automatic formatting disappears. And in the editor whistles still inserted paragraphs and breaks.

    Justin, and another question. Is it possible on the tabs to make a fade in/fade out content (as in the slider)?

  4. Justin Tadlock

    HTML-editor in WP automatically inserts `

    ` and `
    ` when writing a text post. If remove the filter as shown above, in the editor of ordinary posts automatic formatting disappears. And in the editor whistles still inserted paragraphs and breaks.

    I think you’re talking about the front end, not the editor. The code you listed above has nothing to do with the editor. This might just be us confusing terminology.

    Assuming you want to remove auto paragraphs on the front end, this is the code to do it:

    `
    remove_filter( ‘whistle_content’, ‘wpautop’, 25 );
    `

    Justin, and another question. Is it possible on the tabs to make a fade in/fade out content (as in the slider)?

    You’d need to have someone custom build a plugin for this. It’d take some custom jQuery code. It’s not something you can do out of the box with the plugin.

    Also, please try to ask unrelated questions in separate topics. 🙂