How do I get rid of the signature from pages? I only want it on posts.
How do I get rid of the signature from pages? I only want it on posts.
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' );
}
}
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! :)
Glad to help. ;)
Hi Jan,
I just came across this post and tried it.
Worked for me as well.
Thanks very much,
- Ralph
You must log in to post.