Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter TommyFutemarketing

    (@tommyfutemarketing)

    Hello Caleb,

    Just to make sure I understand.

    In the wc-template-hooks.php file, I add “remove_action” instead of add on these two lines that you highlighted.

    In the wc-template-functions.php file, I remove completely the function?

    I did that and I still have the link to the single-product when I hover the image.

    Any idea why?

    Thanks.

    Thread Starter TommyFutemarketing

    (@tommyfutemarketing)

    Hello Mike,

    Thank you for the respond. I created a function.php in my child-theme and I already added this two lines of code but it doesn’t do anything. I can still click and have the link.

    Here is my function.php in child-theme :

    <?php
    function storefront_child_styles_scripts() {
      //Enqueue parent stylesheet
      wp_enqueue_style( 'storefront-style', get_template_directory_uri().'/style.css' );
    
      //enqueue theme css
      wp_enqueue_style( 'storefront-child-style', get_stylesheet_directory_uri().'/style.css' );
    
    }
    
    add_action( 'wp_enqueue_scripts', 'storefront_child_styles_scripts' );
    
    remove_action( 'woocommerce_before_shop_loop_item', 'woocommerce_template_loop_product_link_open', 10 );
    remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_product_link_close', 5 );
    
    ?>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been damaged by the forum’s parser.]

    Thread Starter TommyFutemarketing

    (@tommyfutemarketing)

    Buzztone,

    I fixed the problem. There was no need to go into the Javascript codes.

    There was a conflict with the CSS style: “float:left;” with the input select. I removed the class input select from the css, removed the float:left; and modified the width from 50% to 46% (so that I have two input field on one line) and it solved the clicking problem.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)