Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #914133
    AdventureTickets
    Participant

    Hi,

    I was wondering if it is also possible to add some items or text to the product pages.

    If a customers visits are site and they arrive directly in a product page they don’t immediately see our USP’s. It would be really nice if it is possible to add something here however I can’t find out how to. Maybe with a standard widget or something?

    Can you please advise me?

    Thanks in advance.

    #914485
    Joao
    Moderator

    Hi There,

    Based on the information given I cant be 100% sure of what you want to achieve.

    Would you mind please sending us the URL of your page and a screenshot explaining where you would like to add this information

    Thanks,

    Joao

    #983888
    AdventureTickets
    Participant

    Hi Joao,

    Thanks for your reply. Here you can find the link of a normal product page: http://www.adventuretickets.nl/product/basic-canyoning-cetina-rivier-kroatie/

    We include all the information for an activity. However when you arrive on this page you don’t immediately see our unique selling points or how it works.

    All the normal pages we can make ourselves with X theme builder however I can’t found out how to change the product pages.

    I want to add a widget for example on the left or right side or maybe add something that will be on the bottom.

    Thanks in advance for your help!

    #984124
    Christopher
    Moderator

    Hi there,

    Do you want to add sidebar to product page?

    Please add this code in child theme’s functions.php file :

    //Add sidebar to single product
    // =============================================================================
    
    if ( ! function_exists( 'x_get_content_layout' ) ) :
      function x_get_content_layout() {
    
        $stack          = x_get_stack();
        $content_layout = x_get_option('x_layout_content', 'content-sidebar' );
    
        if ( $content_layout != 'full-width' ) {
          if ( is_home() ) {
            $opt    = x_get_option( 'x_blog_layout', 'sidebar' );
            $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt;
          } 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_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() || x_is_product_category() || x_is_product_tag() || x_is_product() ) {
              $opt    = x_get_option( 'x_woocommerce_shop_layout_content','sidebar' );
              $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt;
            } else {
              $opt    = x_get_option( 'x_archive_layout', 'sidebar' );
              $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt;
            }
          } elseif ( x_is_buddypress() ) {
            $opt    = x_get_option( 'x_buddypress_layout_content', 'sidebar' );
            $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt;
          } elseif ( is_404() ) {
            $layout = 'full-width';
          } else {
            $layout = $content_layout;
          }
        } else {
          $layout = $content_layout;
        }
    
        return $layout;
    
      }
    endif;
    

    To display sidebar, you should select one of content layouts with sidebar under Customize -> Layout and design.

    Hop eit helps.

    #989750
    AdventureTickets
    Participant

    Hi,

    I tried this and went to the layout and design part to change it to Content Left, Sidebar Right. However nothing is changing.

    Is there something that I am doing wrong? Or is there not an easier way to do this?

    Thanks in advance.

    #990293
    Jade
    Moderator

    Hi there,

    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.

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