Ready to get started?Download WordPress


My Live Signature - Personal Signature below each post
[resolved] Signature showing up on pages (5 posts)

  1. meredith1986
    Posted 1 year ago #

    How do I get rid of the signature from pages? I only want it on posts.


  2. 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.

    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' );


    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.

  3. meredith1986
    Posted 1 year ago #

    Thank you Jan! That worked great! :)

  4. Glad to help. ;)

  5. jrbucks
    Posted 1 year ago #

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

    Thanks very much,
    - Ralph

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.