Support » Plugin: WooCommerce » need to show below snippet in category page also

  • Resolved tajmohamed30

    (@tajmohamed30)


    Hi I use below snippet to resize products on homepage only but now I need it to have this snippet to category page also

    —————————————

    function sp_testimonial_free_display13(){
    if( is_front_page() ):
    ?>
    <style>
    @media only screen and (min-width: 769px) {
    .product-type-simple{
    /*background-color:rgba(164,25,64,0.05)!important;*/
    width:24%!important;
    }
    }
    </style>
    <?php
    endif;
    }
    add_action( ‘wp_head’, ‘sp_testimonial_free_display13’ );

    —————————————————-

    particularly the line “if( is_front_page() ): ” i need to include category page also

    could you please help

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘need to show below snippet in category page also’ is closed to new replies.