Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #325494

    Hi there,

    Not sure you can help with this. I have set individual backgrounds for all pages using the COLOR SECTION feature, but the only pages that this cannot be set is for Woo Commerce products. I have tried setting a global background in GENERAL STYLING but this knocks out the stretch feature in all other Woo Commerce pages that I have set an image using COLOR SECTION.

    This only happens when you’ve gone from cart to check-out – you can try by going to the shop, choosing the product then proceeding to check-out.

    Also, when an item is cancelled the RETURN TO SHOP link has no link back..

    Thanks. Silvio

    #325583

    Hey silviouk!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    .woocommerce-cart div#av_section_1 {
    background: #8a8a8a url(https://kingbeer.co.uk/wp-content/uploads/2014/05/14734214526_16e60be8f2_o1.jpg) top center no-repeat fixed !important;
    }

    and then add following code to Functions.php file in Appearance > Editor

    function add_custom_link(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('p.return-to-shop > a').attr('href','https://kingbeer.co.uk/shop/');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_link');
    

    Best regards,
    Yigit

    #325708

    Hi there and thanks, however I can’t locate the area you mention in the functions.php file…

    #325762

    Hi!

    You need to add that code at the very end of functions.php.

    function add_custom_link(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('p.return-to-shop > a').attr('href','https://kingbeer.co.uk/shop/');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_link');

    Regards,
    Josue

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.