How to take code off particular wysija page


#1

This is a newsletter confirmation page for wysija. Any idea of how to take the code for rtsocial off? I tried to choose manual option and place only in single.php, but it still showed up. Also, I have included remove_action commands in functions.php. Would there be a particular command for this kind of page? http://screencast.com/t/kEmqf4sEASj


#2

You'd have to manually add this code in your single.php file, apart from switching to the maual mode in rtSocial settings:

<?php  
$title = get_post_field( 'post_name' , get_the_ID() );  
if( $title != '{thanks-page-slug}' ) {  
    if ( function_exists( 'rtsocial' ) ) {  
        echo rtsocial();  
    }  
}   
?>  

Replace {thanks-page-slug} with the actual slug of the page from the Edit screen, right under the Title textbox.


#3

Hmm...not sure I'll be able to make this work, but thanks for trying. The issue is that the page is created by the wysija plugin. It's not actually on my pages list in Wordpress, because I think the slug that is generated is different each time a new subscriber confirms subscription. I'm considering just taking out the confirmation step. The plugin has a link to the page so I can see it. This is what the link goes to: http://themannionchronicles.com/?wysija-page=1&controller=confirm&wysija-key=2d538ae768cc3364d87e436f71f82b67&action=subscribe&wysijap=subscriptions&demo=1


#4

Hi @yadish11,

Actually, since there’s no way this page could be differentiated from others, rtSocial can’t be hidden on such a page unless the developer is using an actual page from WordPress (like BuddyPress or WooCommerce do).

Regards.


#5