In your sidebar, can you tell me what widget is after the recent posts widget. Your page is crashing there, which is causing all the styling and page break.
Ben
Let me try and clarify, id doesn’t matter if the template is an exact copy, the sidebar is not determined by the code in the template. You can have an empty template and still a sidebar can be added if it’s set.
I’m updating the logic, before custom templates all got a sidebar by default, I’m including some code to give custom templates the same metabox options that show on the default template so you can define it in the post whether or not you want a sidebar,
Ben
Ok I will wait for the update, then test and respond. I will also say that on our development site I did a test and copied the code from the page.php file exactly and only changed the endpoint, then on the endpoint copied the code exactly from content-page.php and the sidebar is still not showing. So I think it may be an issue with settings not the override.
I understand however this problem only presented recently. Has there been a change to how the sidebar is calculated in recent patches that I missed?
We do have an override for this specific page template in our child theme, but it was a copy of the page.php template that led to a different endpoint.
That would still change how the sidebar is calculated. You have to use filters to setup your sidebar if you’re going to create a custom template.
For example in your child theme:
function kad_sidebar_on_custom_page_template( $sidebar ) {
if ( is_page_template( 'page-copy.php' ) ) {
return true;
}
return $sidebar;
}
add_filter('kadence_display_sidebar', 'kad_sidebar_on_custom_page_template');
For the past week or so we cannot get the sidebar to show on this page *Login to see link I double checked the Page Options and they are set to show the sidebar. The odd part is that pages with the same settings are still showing the sidebar like here *Login to see link We do have an override for this specific page template in our child theme, but it was a copy of the page.php template that led to a different endpoint.
Hey Chad,
This will give a background to your entry content for your posts”
.single-post div#ktmain {
background: #fff;
}
And this the sidebar:
.single-post aside#ktsidebar {
background: #fff;
padding: 10px;
}
Hope that helps!
Hannah
Hi there
I have a sidebar that I’m using on my shop page, and I’ve also got the same sidebar selected (in theme options) for the product categories pages but it’s not showing on the page – could you tell me why? (Links to follow)
Hi Harry,
You have an open media query in your css here:
@media (max-width: 992px) {
#ktsidebar {
display: none;
}
You just need to add a closing bracket to that. Like this:
@media (max-width: 992px) {
#ktsidebar {
display: none;
}
}
Hannah
You should see an option to choose a sidebar under theme options > misc settings > search results.
Hannah
This reply has been marked as private.
Hey,
You can edit/remove the sidebar from your search page from Theme Options > Misc Settings.
Hope that helps!
Hannah
Hi
I’d like to remove/change the sidebar from the search results on my website. How can I do so?
Thanks!
Hi Olga,
In Theme Options > Shop Settings do you have “Display the sidebar on Shop Page?” turned on?
Hannah
Is there a way to remove the sidebar from shop category pages? I went through all theme options and removed sidebar from everything I could but still shows up.
Screenshot: *Login to see link
thank you,
after last update I can’t see my side bar, in settings all corecty *Login to see link
Apparently the Theme Options -> Home Layout -> Display a sidebar on the Home Page? setting was reset to Sidebar Layout after the update. The error is now fixed.
I’m encountering the same issue since the latest update on two different sites. I’ve confirmed I have this setting:
“Display the sidebar on Product Category Pages?” set to “Full Layout”. Just to be sure I’ve also cleared the setting “Choose a Sidebar for your Product Category Pages”. I can’t confirm if this occurs on the main page since I’m using a static page for that.
For now I’ve deleted everything in the Primary Sidebar widget so it only shows whitespace:
https://www.turbokeychains.com/product-category/keychains/
Both sites are vanilla WordPress(5.2.2) installs + Virtue Premium(Version: 4.9.12) + Woocommerce(3.6.5).
Thanks.
Hi Bre,
Just to confirm, in Theme Options > Shop Settings do you have “Display the sidebar on Product Category Pages?” set to “Full Layout”?
Hannah
Dear all,
HYDROC Website
after the last update to Virtue – PremiumVersion: 4.9.12 all the sudden the Sidebar pops up on the front page, despite the front page being set to
I am not sure what went wrong and also cannot change it. You will see that the sidebar serves the purpose to display a filter plugin, which now overlays the frontpage:
Thanks a lot for your help in advance
Sebastian