problem with the presentation page of my shop

  • bartoon

    #49588

    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 you

    Admin

    Syahir Hakim

    #49593

    The WooCommerce pages take the global Graphene column settings as defined in Customizer > Graphene: Display > Columns Layout.

    bartoon

    #49594

    thanks for the answer, but that means I can not change anywhere for just the pages of the shop the number of columns.?
    thank you

    Admin

    Syahir Hakim

    #49602

    Not at the moment. If you have a child theme, it can be achieved by adding a few lines of codes.

    bartoon

    #49608

    I have a child theme, would you be kind enough to explain to me how to please?

    Admin

    Syahir Hakim

    #49619

    Add 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' );
    

    bartoon

    #49622

    thank you very much !!!!!
    it’s really very nice of you.
    cordially

Viewing 7 posts - 1 through 7 (of 7 total)

  • You must be logged in to reply to this topic.