Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( class_exists('woocommerce') || class_exists('bbPress')){
- if ( is_account_page() || is_checkout() || is_cart() || is_woocommerce() || is_bbpress()){
- get_template_part('page-custom');
- }
- else {get_template_part('page-default');}
- }
- else {
- get_template_part('page-default');
- }
- if (class_exists('woocommerce') == is_account_page() || is_checkout() || is_cart() || is_woocommerce()){
- get_template_part('page-woocommerce');
- }
- elseif ( class_exists('bbPress') == is_bbpress() ) {
- get_template_part('page-bbpress');
- }
- else {
- get_template_part('page-default');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement