How to remove the sorting option in the WooCommerce Storefront Theme

Here’s how it’s done (it’s a PNG):

solution to removing the sorting in woocommerce

Put this snippet in your theme’s function.php

This is the official way to do it. It will remove the sorting from the entire webshop. I am not against the display: none method, I just thought there must be another way to do this except with css.

All the other code like this did not work for me:
remove_filter( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );

And here is why it does not work

First of all, the remove_filter() function and the remove_action() function are the same function. As are the add_filter() and the add_action(). That means it does not matter which one you will be using.

That being said, if you want to remove a feature that comes from a plugin (which is what WooCommerce is) you cannot simply place in your functions.php this line of code:

remove_filter( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );

You have to wrap it into a function. This is literally stated in the WordPress Codex:

remove_action() must be called inside a function and cannot be called directly in your plugin or theme.

Let me know if you don’t know what the, remove_filter, remove_action, add_filter and add_action actually are. I’ll explain that.


If you worship money and things — if they are where you tap real meaning in life — then you will never have enough. Never feel you have enough. It’s the truth. Worship your own body and beauty and sexual allure and you will always feel ugly, and when time and age start showing, you will die a million deaths before they finally plant you. On one level, we all know this stuff already — it’s been codified as myths, proverbs, clichés, bromides, epigrams, parables: the skeleton of every great story. The trick is keeping the truth up-front in daily consciousness. Worship power — you will feel weak and afraid, and you will need ever more power over others to keep the fear at bay. Worship your intellect, being seen as smart — you will end up feeling stupid, a fraud, always on the verge of being found out. And so on.

David Foster Wallace

Reasons and meaning

People say a lot of dumb shit like that. That proverb is the instigator of a lot of people blinded with some sort of weird thinking that they are important in the universe.

Things happen because of a cause or an event. Mostly, they have no meaning, or no reason. We, as humans, give it a meaning or a reason. We do that after the event or cause has occurred. But, because “Everything happens for a reason”, people like to get paralyzed. They enjoy giving away the choices they can make, the power of assigning a value and then proceed to lay blame.

There are some things that cannot be explained. And that has its reasons. Usually because our brain does not have the capacity to fathom it.

The math and science that applies in the universe is beyond our comprehension. Celestial bodies are destroyed and created on a daily basis or over an expansion of time. Our atomic-sized brains could never really understand our (lack of) meaning.

We all need to get a grip on that. We need to know about realism, how to find our own truths and anchoring. And throw in some Cartesian doubt in there and we’re all pretty much good to handle those hardships.

Some Cartesian doubt from Clueless
Some Cartesian doubt from Clueless

5 things you think are stupid but really should do now

    You don’t have to be a freaking Steve Jobs or John Grisham to write things down. I know, bad examples, but there is no need to get things perfect. Just start writing, strike them through, write again. But do it. Write it down. It will help you so much. You will be focused. You will have more possibilities to reflect.
    What the hell are you doing? You are actually not doing anything! And why? Because you will mess up? So what? If your kid draws that shitty drawing, and shows it to you, you gleam “aw it’s a dinosaur! very well done!”, and your kid yells “It is a banana!”, what is it you do? Do you stop your kid from drawing? Or do you let it keep on drawing? (If you stopped your kid, you are one bad parent. That is a legitimate judgement call.)
    If you failed in your business? Fix it. Start again. Failed in your project? Find the problem, just fix it. Just keep on going. Get up. Keep going. Do something else, but just go.
    Surround yourself with as many things that inspire you, give you energy and serve a purpose. Get rid of everything else, or replace them as fast as you can. Need help with that?
  4. THINK
    Think about what you are saying. Think about what you are doing. Think about the people and crap in your life. Who are you? Are you where you want to be? What is it you really (REALLY) like to do to give you energy? (and you can be as weird and awkward about that one as it takes.) What do you really need to give your life value? What sort of people do you want to surround yourself with? Go get it, or do it. Now.
    There is a huge difference between privacy and keeping things secret. If you look at other people’s life and judge them, your mind is avoiding your own problem. It doesn’t matter to you what another person does in their life. Keep your eye on the ball. Or as Kacey Musgraves sings:

    Just hoe your own row and raise your own babies
    Smoke your own smoke and grow your own daisies
    Mend your own fences and own your own crazy
    Mind your own biscuits and life will be gravy


I feel a bit like a 16 year old Justin Bieber fan (or are they 12?), but hey, whatever it takes to get this train of thought efficient and beneficial.

It is the 14th of December 2015 as I write this. I have a lot on my plate and I am making small, but crucial changes in my life. If I don’t organize these thoughts digitally, as well as on paper, I will lose my mind. I will lose my mind faster. I might still lose my mind, just not as fast now.

Starting on the first day of 2016 would have been a good start. I know. I am not a believer of starting things based on the Gregorian calendar though. Now sounds like a good time to me.

I started to think about a blog. Did I want Tumblr? Did I want WordPress? Did I want my own domain name? Do I want to build my own blog? Because I can, you know. But I don’t wanna. I realized it wasn’t relevant. It would be bullshit to make a fancy blog and register a domain. I would merely do it just to impress people. And I am not here to impress people. Though, I would like to impress UPON people some messages. Or a hammer. In the face. But that’s a story for another post.

Anyway, I’ve started. Here’s to many to come.