• Resolved silcarus

    (@silcarus)


    Hi,
    I turn sidebars on in the options of a page and select a sidebar, but it’s not showing.
    I checked the theme’s options in case something was overriding it but I couldn’t find anything.

    Any idea?

    BTW, thanks for this great theme, it’s very complete.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Where are you trying to add these sidebars? What kind of pages are they exactly? Can you post a link to them?

    Thanks!

    Thread Starter silcarus

    (@silcarus)

    I was trying to add a sidebar to the My account page from Woocommerce. I thought I tried it in another one to check if it was a general issue but I can’t replicate it now. Anyway, I still can’t to make it appear in My account.

    I’m having a difficult time doing this through the menus. It might be something that you would have to create a child theme to accomplish.

    I feel like I could be overlooking something though.

    Thread Starter silcarus

    (@silcarus)

    I do use a child theme. I removed all the additional code that I added but the issue was still there.

    hannah

    (@hannahritner)

    Hey silcarus,
    So sorry for the delay. You shouldn’t need a child theme for this. You should just be able to go into your “my account page” (where you should be using the shortcode: [woocommerce_my_account] ). Ensure you are using a default template. You should see a “sidebar options” tab where you can choose to show your sidebar and which one to show. Have you done all this already?

    Hannah

    Thread Starter silcarus

    (@silcarus)

    Thanks for your support. Unfortunately, I had already done all of that.

    hannah

    (@hannahritner)

    Hmm, if you have already done all that then it must be an issue within your child theme. What all have you added?

    Hannah

    Hey,
    Ok let me clear this up. The theme auto removes the sidebar on the my-account page because the account page already has it’s own sidebar (it’s a menu for all the different my-account pages).

    If you want to add a sidebar on the my-account page (meaning adding another one beyond the sidebar like menu that is already there) you need to use a child theme as this isn’t something the theme is deigned to do.

    You would need to update to version 1.4.3 then add this to the functions.php file of your child theme:

    function kad_sidebar_on_account_page($sidebar) {
      if (is_account_page()) {
        return true;
      }
      return $sidebar;
    }
    add_filter('kadence_display_sidebar', 'kad_sidebar_on_account_page');

    Kadence Themes

    Thread Starter silcarus

    (@silcarus)

    That was the answer I was expecting. Thank you so much!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Sidebars don't show in pages’ is closed to new replies.