Support » Plugin: My Live Signature - Personal Signature below each post » [Plugin: My Live Signature – Personal Signature below each post] Signature showing up on pages

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Brute Squad and Volunteer Moderator

    The signature is added via this line in the plugin:

    add_filter('the_content', 'mls_add_top_post');

    Which is good, because you can remove the signature from pages using another plugin that you’ll create. 😉

    Using FTP or whatever file management tools your host provides you with, create a file called not-pages-live-signature.php inside of your wp-content/plugins directory and copy into it these lines.

    <?php
    /*
    Plugin Name: No My Live Signature for pages
    Description: This plugin will remove the My Live Signature from pages
    Version: 0.1
    */
    
    add_filter( 'wp_head', 'mh_remove_mls' , 20 );
    function mh_remove_mls() {
            global $post;
            if( $post->post_type == 'page' ) {
                    remove_filter( 'the_content', 'mls_add_top_post' );
            }
    }

    http://pastebin.com/gM2V63HH

    Save that file and visit your plugins page. You should see listed there a new plugin called No My Live Signature for pages.

    Activate that plugin and visit one of your pages. The signature should be gone now.

    This plugin tests if it’s on a page or not and if it is then remove the signature filter in the_content.

    Thank you Jan! That worked great! 🙂

    Moderator Jan Dembowski

    (@jdembowski)

    Brute Squad and Volunteer Moderator

    Glad to help. 😉

    Hi Jan,
    I just came across this post and tried it.
    Worked for me as well.

    Thanks very much,
    – Ralph

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: My Live Signature – Personal Signature below each post] Signature showing up on pages’ is closed to new replies.