Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #512600

    Hi,

    I read thru this

    https://kriesi.at/support/topic/transparent-header-on-woocommerce-pages/#post-471097

    and applied the suggested changes. They work well but for days now I’ve been chasing a problem with the footer on the single product page being screwed up. Ran the page thru a HTML validator and found there were some elements (divs) not getting closed thus the footer css was getting all screwed up because it was falling inside wrong divs.

    So I traced it back to the changes made on the above post.

    Particularly “commenting out lines 1071, 1027 & 1028” is what screws it up. I’m a bit confused have the config.php file works but its there any suggestions how to fix this but still allow me to move the related products?

    Thanks,

    isas

    #512671

    Hi isa_sss,

    Could you please provide us with a temporary admin login so that we can take a closer look? You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

    #512706

    Thanks Rikard

    #513221

    Hi!

    login details do not work for me. Could you check please?

    Cheers!
    Andy

    #513258

    Sorry

    • This reply was modified 8 years, 6 months ago by isa_solutions.
    #513688

    Hi!

    it still does not work for me. Please just put the correct login details here as private reply, so we can copy & paste them to be able to login.

    Regards,
    Andy

    #513771

    So sorry. I don’t know what’s going on, I tested it numerous times!

    I’ve reset the password , I’ve just triple checked it works.

    #514180

    Hi!

    Please try to remove all modifications then add this in the functions.php file:

    add_action( 'after_setup_theme', 'enfold_customization_woocommerce_related' );
    function enfold_customization_woocommerce_related() {
    	remove_action( 'woocommerce_after_single_product_summary', 'avia_woocommerce_output_related_products', 20);
    	remove_action( 'woocommerce_after_single_product_summary', 'avia_woocommerce_output_upsells', 21);
    	remove_action( 'woocommerce_after_single_product_summary', 'avia_woocommerce_display_output_upsells',30);
    	add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 2);
    }
    

    Regards,
    Ismael

    #514212

    Thanks Ismael. I removed the mods and it fixed the problem. But I have another now :)

    We don’t want to use the woo commerce_output_related_products as it comes out in a large 2×2 grid.
    We would prefer to use the avia_woocommerce_output_upsells as it puts 4 items in a line.

    Is it possible to use this?

    If I switch the

    add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 2);

    for

    add_action( 'woocommerce_after_single_product_summary', 'avia_woocommerce_output_upsells', 10);

    I get nothing shown?

    #514913

    Hey!

    We can fix that via CSS. Use this in the Quick CSS field:

    .related .products .product {
        margin: 0 1% 1% 0;
        width: 24.6%;
    }

    Adjust if necessary.

    Cheers!
    Ismael

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