Customise Your Dynamic Data With CSS Pseudo Classes

  Рет қаралды 4,123

WPTuts

WPTuts

Күн бұрын

Пікірлер: 23
@tjsayers5428
@tjsayers5428 Жыл бұрын
Hadn’t tried custom css with meta data before…nice! Thank you for taking the time to make this video.😊
@SamFrysteen
@SamFrysteen Жыл бұрын
:after and :before are pseudo elements aren’t they? Not pseudo classes 🤷‍♂️
@PilatesinSacramento
@PilatesinSacramento Жыл бұрын
Agreed. Those are pseudo elements. And, although the single colon “:” works, it’s good practice to use the double colon “::” in the CSS. Anyway, thank you, Paul for showing a nice use case. 👍
@PilatesinSacramento
@PilatesinSacramento Жыл бұрын
Just FYI, when I mentioned the double colon above, I’m referring specifically to pseudo elements. A single colon is correct for pseudo classes.
@SamFrysteen
@SamFrysteen Жыл бұрын
@@PilatesinSacramento agreed - I was typing them as Paul did.
@franktielemans6624
@franktielemans6624 Жыл бұрын
::after and ::before are psuedo elements, not psuedo classes and they should have double colon instead of one.
@arianhernandez4943
@arianhernandez4943 Жыл бұрын
You can even add icons to buttons, for example if you want to add an icon for the add to cart button and you don't want to create a custom loop just for that.
@WPTuts
@WPTuts Жыл бұрын
Lots of use cases for sure. :)
@v_gauther
@v_gauther Жыл бұрын
Really nice tips ! I go even further with it by replacing content. For traduction purpose, for example. I can change “add to cart” by “ajouter au panier”🇫🇷 with CSS Only, using after or before
@WPTuts
@WPTuts Жыл бұрын
Great idea :)
@danstevens1974
@danstevens1974 Жыл бұрын
That's great - thanks Paul. I assume a lot of page builders would have this built in with Prepend and Append type functionality?
@ratty112
@ratty112 Жыл бұрын
Really useful vid 👌 also where are your star wars pictures from? I need them!
@DaniGoMu
@DaniGoMu Жыл бұрын
Good tip Paul!!! By the way, do you have or are you going to do a tutorial on those query loops with ACF data. I am very interested. Thanks !!!!
@WPTuts
@WPTuts Жыл бұрын
I'm not 100% sure what you're referring to with ACF loops. Can you explain what you're looking for? :)
@DaniGoMu
@DaniGoMu Жыл бұрын
Hello again Paul! I was referring to the GenerateBlocks Query Loop with dynamic data (meta value) that you show in the video. I suppose they are achieved with Generateblocks + ACF, right? Do you have any tutorial to do this? Thank you.@@WPTuts
@m31c31
@m31c31 Жыл бұрын
Would pseudo classes like this be the correct way to display 4 and a half stars for a custom value like "4.7"?
@Elsteck
@Elsteck Жыл бұрын
Cool!
@steala
@steala Жыл бұрын
This is great.. however the only thing to really consider is SEO, because you wouldn't want to do this for important SEO pieces of content...
@WPTuts
@WPTuts Жыл бұрын
As with all these techniques, there are times to use them and times for alternative measures. :)
@steala
@steala Жыл бұрын
@@WPTuts - Absolutely! But great tip, nonetheless. I use it for decorative things only. :)
@John.Rearden
@John.Rearden Жыл бұрын
Bricks would have had been a better builder than GB to showcase the power of Psuedo classes. Bricks handles Psuedo classes really nice.
@WPTuts
@WPTuts Жыл бұрын
As I mentioned in the video, CSS it builder agnostic and you can choose to use it on any tool that let's you easily attach CSS classes. :)
@isaac_feldman
@isaac_feldman Жыл бұрын
nice shirt
Why These 10 Webpage Components Are Ruining Your Site
12:25
Top 10 Advanced CSS Responsive Design Concepts You Should Know
20:16
Web Dev Simplified
Рет қаралды 551 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Transform Your Site with Dynamic WordPress Shortcodes
18:45
CSS Line_Clamp - No More Text Length Woes
4:28
WPTuts
Рет қаралды 6 М.
9 Web Design Trends 2025 to Spruce Up Your Site
16:33
Showit
Рет қаралды 98 М.
Why Beautiful Websites Don’t Convert
12:57
Malewicz
Рет қаралды 264 М.
12 Of The BEST FREE Web Design Tools
15:31
WPTuts
Рет қаралды 10 М.
How to Properly Layout A Website (For Beginners)
14:50
The Website Architect
Рет қаралды 701 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 219 М.
The Easy Way to Design Top Tier Websites
11:54
Sajid
Рет қаралды 707 М.
What's going on with WordPress?
10:45
Craylor Made
Рет қаралды 39 М.
The Secret to Faster Website Design with Bricks Builder
27:51
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН