Sidebar showing on the wrong place
-
Hi,
I enabled the sidebar in the customizer under general/sidebar on the right site, but the sidebar is shwoing on all pages under the content. I can see in the dev-tool of the browser that the body class shows this:
`<body class=”home page-template-default page page-id-5 logged-in admin-bar wp-custom-logo wpbf wpbf-startseite wpbf-no-sidebar customize-support” itemscope=”itemscope” itemtype=”https://schema.org/WebPage”>
This website is one of our subdomains. The sidebar works great on our mainpage and other subdomains. But somehow on this new page it does not work properly. It strangely shows “wpbf-no-sidebar” even if the sidebar is enabled. Where does this no-sidebare come from?
The width of “.wpbf-no-sidebar .wpbf-main.wpbf-medium-2-3” is set to 100%. When I set it to 66% it works. But I think it is better when the sidebar will automatically go to the right no matter what is set. The width on the class “.wpbf-no-sidebar .wpbf-main.wpbf-medium-2-3” is not set at all on the main page and other subdomains.
How can I resolve this?
Best regards,
Michael
The page I need help with: [log in to see the link]
-
By default, the sidebar is not displayed on pages until you choose the “Sidebar” page template on a page by page basis. Is that what you’ve done to have the sidebar displayed on the page?
I’m asking because I tried to recreate this on my end and by default, pages don’t come with the sidebar. Also, when selecting the sidebar template, everything was working as expected.
Thanks!
David
Hi David
Thank you for the reply.
Yes, I have already added the “Sidebar” page template and also this to all the pages: do_action(‘wpbf_sidebar_right’);
Yes it is strange that is working on our other subdomains but not the new one we created recently.
Best regards,
Michael
Hi Michael,
that’s strange. Why and where have you added
do_action('wpbf_sidebar_right');?It’s in the “Sidebar” template by default, maybe that’s why it’s being displayed incorrectly.
David
Hi David
It should be on the right place (for wpbf_sidebar_right and left).
I think we might deleted some important codes/file while duplicating the theme. We will try to duplicate the old theme for the new subdomain again and see what was missing.
Thank you for your help.
Michael
The topic ‘Sidebar showing on the wrong place’ is closed to new replies.
