Even with a woosidebars plugin, my sidebar doesn't show on the shop page. I think it may be due to the free plan theme limitations, however on the pro theme description it doesn't mention an added feature. Could anybody help? Thank you!
You must check your shop page template, usually it is placed in the folder /woocommerce of the theme. Sidebar must been there, find it by id.
Also you can to rewrite Woocommerce templates and add the sidebars here: just create the new directory named Woocommerce in your theme and add your customized templates here. In this case, you need to name the template files exactly as they are called in the plugin, you can see it here
Related
I am trying to edit the Product and checkout Page on Woocommerce. WE have a Divi theme installed, but it doesn’t allow me to customize the product page. Does anyone know where I can find the files that generate the product page so I can edit them? For example, I want to remove the product image, and make it a 2 column layout instead of 1. I know PHP/HTML/JS/CSS so I can edit it once I find out where to edit.
Divi has the Theme Builder which can definitely let you custom design a Product page: https://www.elegantthemes.com/blog/theme-releases/divi-4
Here are some examples:
https://www.elegantthemes.com/examples/product/divi-theme-builder-6/
https://www.elegantthemes.com/examples/product/divi-theme-builder-5/
https://www.elegantthemes.com/examples/product/divi-theme-builder-4/
https://www.elegantthemes.com/examples/product/divi-theme-builder-3/
https://www.elegantthemes.com/examples/product/divi-theme-builder-2/
https://www.elegantthemes.com/examples/product/divi-theme-builder-1/
In order to override the woocommerce templates you look for:
If there is not exist a woocomerce folder in your theme root folder then, add one and name it woocommerce like YourTheme->woocommerce
Then in your woocommerce folder add a folder and name it checkout
Go into your wp-content->plugins->woocommerce->templates->checkout and copy the
files that you want to override in you theme->woocommerce->checkout
folder
In wp-content->plugins->woocommerce->templates you will also find the
content-product.php & content-single-product.php. Copy both and add them to your theme->woocommerce folder.
You can then start editing the files you want to change
First, you need to create the Child Theme.
Then, go to the WooCommerce folder of the Child Theme, here is the template hierarchy for the checkout page: https://woocommerce.com/document/template-structure/
www.YourWebsiteURL.com/woocommerce.5.9.0/woocommerce/templates/checkout/ Here you can access the checkout templates.
Let me know if that helps!
I created my-account.php inside woocommece folder in my custom theme.
But, when I want to display what is inside my-account.php file, My Account page take template from page.php. What a drag coherent content...
My custom theme support WC, in settings all is (at least it should) adjusted properly.
How to fix this?
Thanks.
I need help in achieving the following:
Move the shoping cart infront of the search button.
fiting the menu items in the page, several are disapearing to the right
This is a very broad question. I'm unfamiliar with the theme but guessing it uses WooCommerce?
It sounds like you may want to create a Child Theme on this new theme and edit it that way - if you're adamant on using it.
https://developer.wordpress.org/themes/advanced-topics/child-themes/
WooCommerce offers lots of documentation on how to edit their themes by creating your own template files which overwrites the default ones they use.
https://docs.woocommerce.com/document/woocommerce-theme-developer-handbook/
The cart, my-account and checkout pages are all blank when I try view them. All I get is the header and footer. All I have done so far is download WooCommerce, go through the settings and add theme support. My shop page wasn't working until I added theme support but now thats the only page that does. Also I've noticed that if I use WooCommerce shortcode in my php files I can get the pages. But the shortcode doesn't seem to be working in the backend. BTW I'm using my own custom theme incase thats relevant.
What can I do to fix this?
update:
This must be an issue with my theme as if I set one of the default ones to active all the WooCommerce pages show. But I don't know what my themes issue is yet.
update: I have noticed that the WooCommerce pages are allowing me to add templates to them, apart from the shop page which is working. Why is this happening?
There are few steps to do.
First turn on debug, by switching WP_DEBUG to true.
View source of page, and check if everything is being rendered, and also check console for JS error.
At last, for theme, if after switching to default theme, content shows up, there is a theme related issue.
Check for missing templates or template parts or structure within related with page from which content is missing and compare it with default themes templates and template parts.
See if there is some template part missing, or modified, like content.php or content-page.php, the_content() , etc.
I want my theme to include files such as:
about.php, contact.php, blabla.php etc.
And I want those pages to be editible through the wordpress admin interface, how should I proceed to do this?(I want the pages to exist as soon as my theme is selected, so to say I want a already predefined number of pages that is customizable).
I mean there is no problem just making links to these pages and make them use the wordpress header and footer but how can I make the content of them editible like a 'page' in the wordpress adminpanel?
Thanks in advance.
You can user Custom page template for more information regarding custom page template .. http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates