Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #912772
    dalatarzan
    Participant

    Hi.
    I have recently changed design on my x-site and removed a sidebar on my product page. Even if its gone it has left a big hole to the left of the product, where the sidebar was positioned before. I suspect that some code prevent the product from going from left to right correctly. Can you please help out? I will attach the current functions.php since I suspect that it may be updated. I’m pretty useless myself on coding. This only occur on the product page and not on product category pages.

    Thanks
    Jonas

    #912810
    dalatarzan
    Participant
    This reply has been marked as private.
    #913237
    Rahul
    Moderator

    Hello There,

    Thanks for writing in! To assist you better with this issue, would you mind providing us the url of your site with login credentials so we can take a closer look? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    To do this, you can make a post with the following info:
    – Link to your site

    – WordPress Admin username / password
    – Your site’s FTP details

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

    Thank you.

    #913282
    dalatarzan
    Participant
    This reply has been marked as private.
    #913704
    Rad
    Moderator

    Hi there,

    You mean to set the product page’s layout to full-width? If yes, then please remove this

    add_filter( 'ups_sidebar', 'product_sidebar', 9999 );
    
    function product_sidebar ( $default_sidebar ) {
    if ( x_is_product() ) return 'ups-sidebar-woocommerce-start'; //Must match the ID of your target sidebar
    return $default_sidebar;
    }

    Then add this code before this line, return $layout;

    if ( x_is_product() ) {
    $layout = 'full-width';
    }

    Hope it helps.

    #913851
    dalatarzan
    Participant

    Absolutely brilliant!!
    Thanks a lot!
    Fast and supergood.

    Happy Jonas

    #914121
    Lely
    Moderator

    You’re welcome Jonas!

    Cheers!

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