Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

'My Account' page with sidebar?

Home / Forums / Virtue Theme / 'My Account' page with sidebar?

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
September 11, 2015 at 8:43 am

Hi Ben – sidebars again!!!

In the past you gave me code for getting a sidebar onto WooCommerce pages and also the 404 page. But I have just seen that the WC ‘My Account’ page is without a sidebar:

Now this is strange as I thought your general is_account_page() conditional would catch this. But then I thought I’d adapt your 404 code to add my own conditional filter:
add_filter('kadence_display_sidebar', 'my_account_sidebar');
function my_account_sidebar($sidebar) {
if (is_page( 'my-account' )) {
return true;
}
return $sidebar;
}

As well as the slug, I also tried the ‘My Account’ full name. and even just the page ID.

Neither is working though, so I’d really appreciate some help on where this is going wrong.

Many thanks, Colin

  • The forum ‘Virtue Theme’ is closed to new topics and replies.