Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #49151

    Shannon H
    Participant

    here is the link to my problem. I have added all that code above and it just won’t work for me.

    http://www.thdmerch.com.au/shop/

    #49465

    Rad
    Moderator

    Hi Shannon,

    I can see that you have sidebar though it was pushed down.

    Could you try adding this css?

    .post-type-archive-product .x-main {
    float:left;
    }

    Hope this helps.

    #49491

    Shannon H
    Participant

    But where should I add that code? in customizer?

    #49495

    Shannon H
    Participant

    Holy crap it worked! thanyou thanyou thankyou!

    #49503

    Shannon H
    Participant

    Actually, it only worked for the shop page, I put that CSS in Customizer, Where should i put that code for the product page? sorry i’m so lame at this.

    #49867

    Alexander
    Keymaster

    Hi Shannon,

    Glad to hear that’s working for you!

    Individual product pages don’t have a sidebar by design in the theme. There isn’t a way to enable them there. This has however been added to our list of feature request. This way it can be taken into consideration for future development.

    #50165

    Shannon H
    Participant

    Really? Well I would have to say that’s a massive theme issue that needs to be addressed,

    After my clients click “Ad to cart” whats the best way for them to navigate to the cart? is there a way to put text in the header that connects to the cart? and accounts like this shop up the top right corner? http://www.theiconic.com.au/

    #50464

    Rad
    Moderator

    Hi Shannon,

    You could use header widget area and use text and woocommerce widgets. It expand when user click the “+” icon on top of the header.

    Maybe this will help you for your sidebar

    Add this code at your child theme’s functions.php

    if ( ! function_exists( 'x_get_content_layout' ) ) :
      function x_get_content_layout() {
    
        $stack          = x_get_stack();
        $mod            = get_theme_mod( 'x_' . $stack . '_layout_content' );
        $content_layout = ( $mod == '' ) ? 'content-sidebar' : $mod;
    
        if ( $content_layout != 'full-width' ) {
          if ( is_home() ) {
            $mod    = get_theme_mod( 'x_blog_layout' );
            $layout = ( $mod == 'sidebar' ) ? $content_layout : $mod;
          } elseif ( is_singular( 'post' ) ) {
            $meta   = get_post_meta( get_the_ID(), '_x_post_layout', true );
            $layout = ( $meta == 'on' ) ? 'full-width' : $content_layout;
          } elseif ( x_is_portfolio_item() ) {
            $layout = 'full-width';
          } elseif ( x_is_product() ) {
            $mod    = get_theme_mod( 'x_woocommerce_shop_layout_content' );
            $layout = ( $mod == 'sidebar' ) ? $content_layout : $mod;
          } elseif ( x_is_portfolio() ) {
            $meta   = get_post_meta( get_the_ID(), '_x_portfolio_layout', true );
            $layout = ( $meta == 'sidebar' ) ? $content_layout : $meta;
          } elseif ( is_page_template( 'template-layout-content-sidebar.php' ) ) {
            $layout = 'content-sidebar';
          } elseif ( is_page_template( 'template-layout-sidebar-content.php' ) ) {
            $layout = 'sidebar-content';
          } elseif ( is_page_template( 'template-layout-full-width.php' ) ) {
            $layout = 'full-width';
          } elseif ( is_archive() ) {
            if ( x_is_shop() ) {
              $mod    = get_theme_mod( 'x_woocommerce_shop_layout_content' );
              $layout = ( $mod == 'sidebar' ) ? $content_layout : $mod;
            } else {
              $mod    = get_theme_mod( 'x_archive_layout' );
              $layout = ( $mod == 'sidebar' ) ? $content_layout : $mod;
            }
          } elseif ( x_is_product() ) {
            $layout = 'full-width';
          } else {
            $layout = $content_layout;
          }
        } else {
          $layout = $content_layout;
        }
    
        return $layout;
    
      }
      add_action( 'customize_save', 'x_get_content_layout' );
    endif;

    Let us know.

    #50558

    Shannon H
    Participant

    Yeah, I don’t like the idea of the cart hiding behind that + up the top right, I need the cart to always be visible.

    Please see this thread http://theme.co/x/member/forums/topic/cart-my-account-in-top-bar/#post-50557

    #50761

    Rad
    Moderator

    Sure, thank you for pointing out another thread.

    #59504

    Kris P
    Participant

    Am I right in thinking that this edit can not be done in version 2? wp-sidebar seems to have been removed.

    #59507

    Kris P
    Participant

    Ok I have found the wp-sidebar file but it seems to have changed, doesn’t look like it’s been described here

    #59614

    Shannon H
    Participant

    I gave up on trying this for now, it was taking too much time away from actually working my job.. Let me know if you get it to work tho.

    #60023

    Alexander
    Keymaster

    Hey there,

    Quite a bit has changed structurally since version 2.0. We’d be happy to help you work some of this out. Our support is limited in that we can’t provide full custom development, but we may be able to help with minor changes. If you still need help with this, feel free to open a new thread, so we can prevent confusion with code from older versions. After opening a thread, it would help us if you could provide a URL to the site and WordPress credentials. Feel free to add these in a private reply.

    Take care!

    #66349

    Rutger v
    Participant

    Has the wp_sidebar.php changed since the last update? I can’t find the function:

    elseif ( function_exists( ‘is_product’ ) && is_product() ) {
    $layout = $shop_layout;
    }

    Also does a change in the woocommerce.php not work for me.

    I hope that you can help me.