Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1344550
    tiagosgd
    Participant

    Hello
    I am trying to use WooCommerce… but the images are so big on my website!
    And, how can I add the cart in the pages of the shop?
    http://www.passionistas.pt then menu “LOJA”.
    Thanks
    Tiago

    #1344762
    Christian
    Moderator

    Hey Tiago,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1345082
    tiagosgd
    Participant
    This reply has been marked as private.
    #1345412
    Rue Nel
    Moderator

    Hello There,

    Thank you for the clarifications. The recent articles is a sidebar widget added in your main sidebar. If you do not want to see the recent articles widget in your shop and other woocommerce pages, you can make use of the custom sidebar. All you need to do is to create a custom sidebar and insert different sidebar widgets to be display on the sidebar. For more information, please check out these articles: https://community.theme.co/kb/unlimited-sidebars/, https://community.theme.co/kb/wordpress-adding-widgets/

    And to make sure that the cart menu will only be in WooCommerce pages, please add the following code in your child theme’s functions.php file

    //
    // Custom Cart
    // =============================================================================
    
    if ( ! function_exists( 'x_woocommerce_navbar_cart' ) ) :
      function x_woocommerce_navbar_cart() {
    
        if ( is_woocommerce() || is_cart() || is_checkout() ) {
    
          $cart_info   = x_get_option( 'x_woocommerce_header_cart_info' );
          $cart_layout = x_get_option( 'x_woocommerce_header_cart_layout' );
          $cart_style  = x_get_option( 'x_woocommerce_header_cart_style' );
          $cart_outer  = x_get_option( 'x_woocommerce_header_cart_content_outer' );
          $cart_inner  = x_get_option( 'x_woocommerce_header_cart_content_inner' );
    
          $data = array(
            'icon'  => '<i class="x-icon-shopping-cart" data-x-icon="" aria-hidden="true"></i>',
            'total' => WC()->cart->get_cart_total(),
            'count' => sprintf( _n( '%d Item', '%d Items', WC()->cart->cart_contents_count, '__x__' ), WC()->cart->cart_contents_count )
          );
    
          $modifiers = array(
            $cart_info,
            strpos( $cart_info, '-' ) === false ? 'inline' : $cart_layout,
            $cart_style
          );
    
          $cart_output = '<div class="x-cart ' . implode( ' ', $modifiers ) . '">';
    
            foreach ( explode( '-', $cart_info ) as $info ) {
              $key = ( $info == 'outer' ) ? $cart_outer : $cart_inner;
              $cart_output .= '<span class="' . $info . '">' . $data[$key] . '</span>';
            }
    
          $cart_output .= '</div>';
    
          return $cart_output;
    
        } else {
          return '';
        }
    
      }
    endif;
    // =============================================================================

    Please copy the raw code from here (http://pastebin.com/hCx4NP09) to preserve the unicode html entities or the data-x-icon values.

    Hope this helps.

    #1347801
    tiagosgd
    Participant

    Amazing! Thank you 🙂

    #1347829
    Rahul
    Moderator

    Glad we were able to help you out!

    Let us know if we can help with anything else.

    #1347830
    Rahul
    Moderator

    Glad we were able to help you out!

    Let us know if we can help with anything else.

  • <script> jQuery(function($){ $("#no-reply-1344550 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>