• Resolved davidsless

    (@davidsless)


    I now know how to add modals to single pages. Thank you for answering that on the
    other topic, even though it was the wrong way to ask it under that topic. My apologies.

    This query is a follow-on from that question.

    Is there a way of adding modals to particular posts?

    I’m using woo commerce, and would like to add modals to particular products. Is that possible?

    http://wordpress.org/plugins/easy-modal/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    You mean custom post types? if so try this.

    add_filter('em_post_types', 'my_cpts');
    function my_opts($post_types)
    {
        $post_types[] = 'my_custom_post_type';
        return $post_types;
    }
    Thread Starter davidsless

    (@davidsless)

    Where do I try it?

    Plugin Author Daniel Iser

    (@danieliser)

    You could add that to your themes functions.php file. You will need to change my_custom_post_type to the correct post type for woo commerce products. It may be ‘product’ but im not 100%.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘adding modals to product posts’ is closed to new replies.