Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter ballin-

    (@ballin-2)

    Anyone?
    Seems like non-www do not redirect to www version, at least Google Analytics says so. Sounds like this issue is not caused in my end.

    Thread Starter ballin-

    (@ballin-2)

    Thank you for your help! I got it work.

    Thread Starter ballin-

    (@ballin-2)

    Actually it isn’t. I have good feeling how I could use custom template in the Shop page but I can’t figure out how I can make it dynamically. Like I said, in normal WordPress Pages if I echo out get_page_template(); it shows it’s template, page.php if default and custom if chosen. But if I make same check in WooCommerce page, it shows always only page.php no matter what.

    Your URL’s talking about how to show templates for specific taxonomies.

    This is all what I would like to do.

    // If user has selected custom template
    if( is_page_template( 'mycustomtemplate-for-shop-page.php ) ) {
        echo 'Do something';
    
    // If user use default template
    } else {
        echo 'Default';
    }

    But the problem is the output what WooCommerce pages give from get_page_template function, it’s always the same no matter what.

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