• Resolved noritarte

    (@noritarte)


    I am trying to prevent the pagination numbers from being visible on my site, and I have succeeded with this css:

    .woocommerce-result-count,
    .woocommerce-ordering {
    display: none;
    }

    The problem is that when I load the site, for a fraction of a second I still see the numbers, which then disappear. To avoid this little problem I tried with some actions (see below) but I don’t get any results. Do you have any idea how I could solve this problem? Thank you

    // remove default sorting dropdown in StoreFront Theme
    add_action(‘init’,’delay_remove’);
    function delay_remove() {
    remove_action( ‘woocommerce_after_shop_loop’, ‘woocommerce_catalog_ordering’, 10 );
    remove_action( ‘woocommerce_before_shop_loop’, ‘woocommerce_catalog_ordering’, 10 );
    }
    // Remove the result count from WooCommerce
    remove_action( ‘woocommerce_before_shop_loop’ , ‘woocommerce_result_count’, 20 );
    remove_action( ‘woocommerce_before_shop_loop’, ‘storefront_woocommerce_pagination’, 30 );
    remove_action( ‘woocommerce_after_shop_loop’, ‘woocommerce_pagination’, 30 );

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @noritarte,

    I’m sorry we missed your post. Have you been able to resolve this issue?

    If not, as your post involves a development topic, I’m going to leave it open for a bit longer to see if anyone is able to chime in and help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources about WooCommerce development.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there too.`

    Hi @noritarte,

    Hope you managed to get the pagination working! We haven’t heard back from you for a while, so I’m going to mark this post as resolved. If you have any further questions or need additional help with the Storefront theme, please start a new thread and we’ll be able to help you out there.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Prevent pagination loading’ is closed to new replies.