Skip to content

Instantly share code, notes, and snippets.

@diggeddy
Created December 22, 2017 14:30
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save diggeddy/6fd1c6d7f79f148a41c81684383aefd5 to your computer and use it in GitHub Desktop.
Save diggeddy/6fd1c6d7f79f148a41c81684383aefd5 to your computer and use it in GitHub Desktop.
Change the All filter title and re-order the filter bar
/* Elementor Portfolio Filter Bar Hacks */
/* Hack 1 - Change or hide the 'All' filter */
/* Hide the Elements visibility */
.elementor-portfolio__filters li:nth-child(1) {
visibility: hidden;
}
/* Add a different title in place of ALL */
.elementor-portfolio__filters li:nth-child(1):before {
visibility: visible;
content: "ChangeMe";
}
/* Hack 2 - Reverse the menu item order */
.elementor-portfolio__filters {
flex-direction: row-reverse;
}
/* Hack 2.1 Switch items to different order */
/* This example will switch order 1,2,3 to 2,1,3 */
.elementor-portfolio__filters li:nth-child(1) {
order: -2;
}
.elementor-portfolio__filters li:nth-child(2) {
order: -3;
}
.elementor-portfolio__filters li:nth-child(3) {
order: -1;
}
@cloudsker
Copy link

Thank you so much for saving the day.

@kappadev
Copy link

Thank you so so much!!!

@Andylicous
Copy link

Thank you! So stupid that this can't be changed in Elementor.

@Mazhev-BZH
Copy link

Mazhev-BZH commented Apr 26, 2021

Hello ! Does this still work ? Is it supposed to be in a page custom CSS ? Thanks a lot ! 👍

@pame614
Copy link

pame614 commented Aug 17, 2022

Hi!

Thank you, but does not work to eliminate the all when its a change name, its get stick following the new name, like this: changethenameall, can you get me with this please? If a eliminate the all i can not show the new word.

Thank you so much

@pame614
Copy link

pame614 commented Aug 17, 2022

Sorry my mistake! I get it, all good thank you!

@helenevdb
Copy link

Sorry my mistake! I get it, all good thank you!

How did you do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment