Use css to block one part of custom post type page?
-
After some digging I found this code to enable custom post type blocking:
add_filter( 'wpmem_settings', 'my_cpt_settings' ); function my_cpt_settings( $settings ) { /** Complete this block for any CPT **/ // Set to the name of your custom post type $cpt_slug = "acme_product"; // Block by default (1=block, 0=unblock) $settings['block'][ $cpt_slug ] = 1; // Show excerpts (1=yes, 0=no) $settings['show_excerpt'][ $cpt_slug ] = 0; // Show login form (1=yes, 0=no) $settings['show_login'][ $cpt_slug ] = 1; // Show registration form (1=yes, 0=no) $settings['show_reg'][ $cpt_slug ] = 1; /** End CPT Block **/ // Return extra settings at the end. return $settings; }
Unfortunatly it doe not block the whole part of the page. I just got into this plugin, but could someone tell me how to block a specific div with this class “show-coupon”.
Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Use css to block one part of custom post type page?’ is closed to new replies.