• Resolved motmat

    (@motmat)


    Thank u nice plugin.
    1. columns not working a couple of last versions
    alternative solution in child functions.php u add

    add_filter( ‘storefront_loop_columns’, ‘smsexshop_pocet_sloupcu’ );
    function smsexshop_pocet_sloupcu() {
    return 4;}

    2. Can u do an option with no button description.
    like for option 20 40 100. It displays just the number in basic and dropdown poition
    – less space needed and functional for all languages

    manually – in plugin editor class-wppp-front-end.php u remove “products per page” from this code section:
    ?><option value=”<?php echo esc_attr( $value ); ?>” <?php selected( $value, $this->loop_shop_per_page() ); ?>><?php
    $ppp_text = apply_filters( ‘wppp_ppp_text’, __( ‘%s products per page’, ‘woocommerce-products-per-page’ ), $value );
    esc_html( printf( $ppp_text, $value == -1 ? __( ‘All’, ‘woocommerce-products-per-page’ ) : $value ) ); // Set to ‘All’ when value is -1
    ?></option><?php

Viewing 1 replies (of 1 total)
  • Plugin Author Jeroen Sormani

    (@sormano)

    Hi,

    1) Did that code snippet work for you?
    Unfortunately there are some themes that override settings where something like that would be required to use.

    2) For this I’d advise to user the ‘wppp_ppp_text’ filter thats also in your example. That way you can remove the text and only leave the number in there.

    Cheers,
    Jeroen

Viewing 1 replies (of 1 total)
  • The topic ‘remove button label’ is closed to new replies.