Forum Replies Created

Viewing 3 replies - 46 through 48 (of 48 total)
  • Hi,

    I have a similar issue. After searching the internet for hours and trying different solutions without having the desired effect I end up here trying to find help.
    @mikey Arce: Your solution illustrates perfect where I got stucked.
    If you take a look at my project (https://www.gluecklichezwerge.de) and visit a single product page you’ll see that I removed the sidebar to have a bigger product description.
    In the header I added a thin image and would like to stretch it and make it fit the width of the main body. With repeat enabled it will end up looking just like the solution you mentioned before.
    Now I am asking myself if it is possible to reduce the width of the background (for header, body and footer) to match with the rest of the shop (primary navigation/single product description)?
    The same should happen with a background image for main body and the footer.
    It would be great to achieve this through code and avoid installation of a plugin. If you need any more details, just let me know.

    Any help would be great and is highly appreciated! ??

    Best regards,

    -Bj?rn

    Thread Starter gluecklichezwerge

    (@gluecklichezwerge)

    Hello,

    thank you for your reply, but I decided to do it on my own for now.
    For everybody who is interested in changing PPOM labels: Open hooks.php located in ‘inc’-folder and go through each of them. Rename output between ” “.
    This might last until next update, hope I’m used to string translation then. ??

    Thanks for your hint anyways, I will take a look at it. Best regards,

    -Bj?rn

    Hello,

    I would like to bring this up again, because recent updates seem to contain changes which make the code not work anymore.
    In my case I was able to come up with another solution to get rid of the sidebar on product pages.

    /* Remove Sidebar */
    add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
    function woo_remove_product_tabs( $tabs ) {
        unset( $tabs['description'] );      	// Remove the description tab
        unset( $tabs['reviews'] ); 			// Remove the reviews tab
        unset( $tabs['additional_information'] );  	// Remove the additional information tab
        return $tabs;
    }

    Now we need to add the product description again:

    /* Add Product Description */
    function woocommerce_template_product_description() {
    wc_get_template( 'single-product/tabs/description.php' );
    }
    add_action( 'woocommerce_single_product_summary', 'woocommerce_template_product_description', 30 );

    This might be the reason why I am not able to make it full width through CSS.
    I tried several different solutions, none of them had any effect. Because I want to use the sidebar on customer and review pages, I would like to use this on single product pages only.

    Any help would be highly appreciated! Thank you so much!

    Best regards,

    -Bj?rn

    *EDIT:
    Just went through my code again and found the error, the wrong hook. In the code for the product description the add_action needs to be replaced with this:
    add_action( 'woocommerce_after_single_product_summary', 'woocommerce_template_product_description', 10 );

Viewing 3 replies - 46 through 48 (of 48 total)