• Resolved richardmichael

    (@richardmichael)


    From https://docs.mailpoet.com/article/71-customize-your-confirmation-pages

    MailPoet adds a custom post type on your site that is used to show the subscription Confirmation page and the Unsubscribe page.

    However in most cases, this custom post type will inherit the post template and will show undesired sections from your theme, like comments, trackback, social share icons, etc.

    Yes, this does happen and is not desirable. However, neither is creating a standalone page for each virtual mailpoet page. The documentation mentions 2 but there are more.

    Is it possible modify this custom post type by throwing some code into a functions file, to remove the comments and author name?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @richardmichael that article is related to MailPoet 2. Unfortunately, there’s no way to modify those pages in MailPoet 3 yet.

    Thread Starter richardmichael

    (@richardmichael)

    Yeah I just used the MailPoet 2 link since the statements matched my feelings. I’ll have to make the custom pages for now. Hopefully in the future we can add a quick line of code to our functions file that unsets comment links and author links if post/page belongs to MailPoet. Less pages. It feels dirty to make pages for such a small reason.

    Thread Starter richardmichael

    (@richardmichael)

    Wondering if anyone else reads this, if they could help me. With the storefront theme we can remove post meta like this

    function remove_storefront_post_meta() {
    	remove_action('storefront_post_header_before', 'storefront_post_meta', 10);
    	
    };
    
    add_action( 'init', 'remove_storefront_post_meta');

    Any gurus able to turn this into something that removes post meta whenever the post belongs to MailPoet?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Hooks or Filters to Modify Custom Post Type?’ is closed to new replies.