problem with the presentation page of my shop
-
I have a problem with the presentation page of my shop.
all my site is done with a column and a sidebar on the right side.
When I create a page I have a page attribute option with a list of model choices.
I would like my shop page to have just one column, and I have a template that offers exactly what I want in my theme: one collumn no sidebar. (my theme is graphene by the way)
It works with all pages, but when I tell woocommerce to use a page for the presentation, this option (template) disappears, in page attribute I only have “parent” but no “template”.
I inquired about a woocommerce forum and someone told me “I feel like the graphene theme works in a special way so there is something else to do.”
Can you help me ?
thank youAdminThe WooCommerce pages take the global Graphene column settings as defined in Customizer > Graphene: Display > Columns Layout.
AdminNot at the moment. If you have a child theme, it can be achieved by adding a few lines of codes.
AdminAdd this code into your child theme’s
functions.php
file after the opening<?php
tag:/** * Set column layout for WooCommerce pages */ function graphene_wc_column_layout(){ if ( ! function_exists( 'is_woocommerce' ) ) return; if ( ! is_woocommerce() ) return; global $graphene_settings; $graphene_settings['column_mode'] = 'one_column'; } add_action( 'template_redirect', 'graphene_wc_column_layout' );
Viewing 7 posts - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.