Тёмный

Display Conditional Content with Elementor (no plugins) for Logged In & Out Users 

Jeffrey @ Lytbox
Подписаться 26 тыс.
Просмотров 16 тыс.
50% 1

Опубликовано:

 

7 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 90   
@dharmeshspandey
@dharmeshspandey Год назад
Man really where you was for so long, your content is gold.
@GCRice2
@GCRice2 3 месяца назад
Thank you for actually giving & explaining the code rather than just giving plugins. Out of curiosity, since it has been over a year since you posted this, is there a coding or elementor method that allows you to securely...even in inspector... hide content without a third party (membership) plugin?
@LytboxStudio
@LytboxStudio 2 месяца назад
Thanks! Since this video Elementor has added the Conditions feature but it’s in beta. I’ll be testing it more soon and sharing videos on it.
@bradleylambert3284
@bradleylambert3284 Год назад
This works perfectly!!! I couldn't get a similar piece of code to work so used the conditional logic for elementor plugin but that doesn't always work so I have to clear the cache every now and then to get it to work but this works, awesome! Cheers mate, one less plugin to use.
@LytboxStudio
@LytboxStudio Год назад
That’s great! I love reducing plugins! Cheers
@Webmindstudio
@Webmindstudio 2 месяца назад
This helped me, Thank you sir
@LytboxStudio
@LytboxStudio 2 месяца назад
That's awesome! Thanks
@chrisdann1477
@chrisdann1477 7 месяцев назад
Thanks for this, very simple and elegant solution
@LytboxStudio
@LytboxStudio 7 месяцев назад
Thanks!
@CharlesBirdm
@CharlesBirdm Год назад
Thank you for doing this instead of most people showing how to use a plugin!
@pleuratpllana
@pleuratpllana Год назад
Great content! Have you ever thought of creating a light/dark mode website? I would like to see that part done/covered by you.
@LytboxStudio
@LytboxStudio Год назад
Thanks and for sure! I’ve had that on my idea board. It’s something I’ve been wanting to explore.
@wpeasy
@wpeasy Год назад
@@LytboxStudio Hey Jeff, Alan Blair here. I already have a solution for alternate theme styles in Elementor. reach out if you want to use that.
@David-zp8rx
@David-zp8rx Год назад
Dude you're amazing rockin it!! I don't like using plugins if I don't need to, I found out its the lazy way that will cost time and headaches in the long run.
@bagel8472
@bagel8472 Год назад
Was searching all over for a simple solution! Thank you!
@LytboxStudio
@LytboxStudio Год назад
So good hear!
@plastic_hand
@plastic_hand Год назад
thank you so much man. You saved me so much work
@LytboxStudio
@LytboxStudio Год назад
That’s so good to hear! Thanks
@JuanMontes-xo4th
@JuanMontes-xo4th Год назад
Great tutorial, I use it to show and hide elements from the cart page if the cart had or not items on it👌🏼🙋🏼‍♂.
@motisho
@motisho 29 дней назад
Thanks for the tutorial, Can you tell me which widget you recommend for the website registration process?
@RajeshChauhan-bz5zj
@RajeshChauhan-bz5zj 2 месяца назад
Very Appreciated! Thank you Jeffrey. Its helps me a lot.
@Gamestation_IRI
@Gamestation_IRI 4 месяца назад
dude, you are amazing thx 🤝🏻🗿
@LytboxStudio
@LytboxStudio 2 месяца назад
Thanks! 🙏
@keyleads2604
@keyleads2604 Год назад
Worked like a charm. Thanks!
@LytboxStudio
@LytboxStudio Год назад
Cool 😎
@williamjonline
@williamjonline 4 месяца назад
Conditional content in elementor is almost a necessity. I use memberpress to accomplish this. But hey, if Elementor incorporated it into their pro version of their software, it would make it much more valuable.
@LytboxStudio
@LytboxStudio 4 месяца назад
They finally did! I’ll need to make updated videos on Elementor conditions. It’s in the experiment features now.
@kk_srl
@kk_srl 4 месяца назад
@@LytboxStudio please do it as soon as possible, your content is gold! Thank you!
@scottgeithman193
@scottgeithman193 Год назад
I need a step further ... is it possible to conditionally LOAD content? Not just show or hide, but actually include or exclude a complete "Elementor Container" conditionally? I do not want certain things included in the html markup at all ...
@monkeygeek8431
@monkeygeek8431 8 месяцев назад
Super! thanks for the help!
@PianoLessonwithWarren
@PianoLessonwithWarren 11 месяцев назад
Such a good tutorial man, thank you :)
@kmmarch60
@kmmarch60 Год назад
Fantastic video - just what I’ve been looking for
@LytboxStudio
@LytboxStudio Год назад
That’s great to hear!
@adrian.or.
@adrian.or. Год назад
Thanks, a lot! Works fine.
@coding2395
@coding2395 Год назад
Great content
@LytboxStudio
@LytboxStudio Год назад
Thanks you!
@ranifrah
@ranifrah Год назад
Thanks!
@raphaelbranco9516
@raphaelbranco9516 8 месяцев назад
Great great great content pure gold 🤩 tks a lot
@travisdip
@travisdip 8 месяцев назад
THANK YOU!!!!
@stulawson
@stulawson Год назад
Thanks Jeff. Great video!. Yes, would love to see conditions on page per element - based on classes, data, custom variables, logged in status etc. I imagine they're working on it...
@LytboxStudio
@LytboxStudio Год назад
I have a feeling conditions are in the works for Elementor. I’m seeing some of the other new builders adding these and Elementor has been paying attention to what we’ve been all asking for and what’s working for the new builders. It is much needed
@TottoHolm
@TottoHolm Год назад
Worked perfectly! Thank you so much :)
@revivelearning740
@revivelearning740 Год назад
Brilliant. This as just what I needed - thank you.
@creativekarenwebdesign
@creativekarenwebdesign Год назад
THANK YOU SO MUCH! helped me big time!
@ot_baby
@ot_baby Год назад
Thanks Bro
@juxhin
@juxhin Год назад
Great content. Just subscribed 😄
@LytboxStudio
@LytboxStudio Год назад
Thanks!🙏❤️
@danieluwana2790
@danieluwana2790 2 месяца назад
Thank you helpful. Had no choice + 1 sub
@blueskyalldayeveryday
@blueskyalldayeveryday Год назад
Nice tut, thanks for sharing. Is something like this possible with various user roles?
@LytboxStudio
@LytboxStudio Год назад
Great question and yes, this is possible. You can add multiple classes to the body based on user roles
@nonxexus3092
@nonxexus3092 Год назад
@@LytboxStudio Hi Jeff, Thank you for the fantastic video tutorial! How can I filter user roles same as Blue Sky mentioned?
@AmazdivSolutions
@AmazdivSolutions Год назад
thanks
@nonoitart
@nonoitart 29 дней назад
hi jeffrey! tysm for the video, i just had a question. in the beginning i don't have the hello elementor child theme nor any child theme, could you tell me how can i obtain that type of theme?
@lironlombroso7464
@lironlombroso7464 5 месяцев назад
Thanks for this, it works on Elementor product grid widget. is there a way to use this code to hide just the price and add to cart for logout users?
@LytboxStudio
@LytboxStudio 4 месяца назад
It’s possible. The code would need to be adjusted. Try ChatGPT and asking to update the code for this. It’ll take a so,e trial and error but it’s a good place to start.
@user-yk9rn5te2x
@user-yk9rn5te2x 7 месяцев назад
Awesome tutorial. Works well in Chrome but not Safari. Safari does not work with the "display:none" on elements as far as I can tell. I tried setting the opacity to zero, but that doesn't work either. Anyone know a workaround for Safari?
@herman8hk1
@herman8hk1 Год назад
I must to tell you that you are my god. You help me a lot.
@LytboxStudio
@LytboxStudio Год назад
Haha I’m glad I can help 😅
@herman8hk1
@herman8hk1 Год назад
@@LytboxStudio I have other problems. I’m trying to use Ultimate Member registration forms in popups created with Elementor but popups were blank. The UM shortcode form in Elementor Popup not working right. They seem to have a tutorial website, but I don't understand where the java code is placed, can you help me? Thanks. ( RU-vid can’t have the link)
@muazzamchoudhury3939
@muazzamchoudhury3939 7 месяцев назад
Can I do this for a whole page?
@wpeasy
@wpeasy Год назад
The old KISS method.. Love it. :)
@LytboxStudio
@LytboxStudio Год назад
I love keeping things simple and minimal!
@ThisIsNVMedia
@ThisIsNVMedia 8 месяцев назад
do you have a video to do the same based on user role?
@oxmaanqureshee8592
@oxmaanqureshee8592 Год назад
Thanks, that's I want
@basketballforce
@basketballforce Год назад
correct me if I'm wrong, but there used to be an option in elementor for this. Select an Element > Advanced > Dynamic Visibility?
@LytboxStudio
@LytboxStudio Год назад
Addons like Dynamic OOO added this function in the advance tab
@basketballforce
@basketballforce Год назад
Aaah, I get it now. I was wondering why I don't see the option on the project I'm currently working on. I'mma use your approach. Thank you good sir for your great videos. I'm learning something useful with each one of them.
@adopteunconteneur
@adopteunconteneur Год назад
How should we proceed to add the PHP code using Code Snippet Plugin ? I don't use a child theme on my website, and it doesn(t work when using code snippet, I might do someting wrong.
@adelmenasria8064
@adelmenasria8064 Год назад
Whats your shortcut for change apps? Thx
@rickvanderwal66
@rickvanderwal66 7 месяцев назад
Merci
@slingsandarrows
@slingsandarrows Год назад
I tried to apple this to an elementor popup I created that would only show for logged in users. Unfortunately this didn't work.
@kovinhas
@kovinhas Год назад
Here is an idea. Can u teach how to use GSAP in Elementor? Maybe some content teaching landingpage animations would be great and there isn't much content about it It's just an idea if you are expertise in this matter.
@LytboxStudio
@LytboxStudio Год назад
That's a really great idea and something I'v been considering. My agency site lytbox.co is built using GSAP - I'll keep this open for future videos
@helmutgobel9974
@helmutgobel9974 Год назад
GSAP?
@kovinhas
@kovinhas Год назад
@@LytboxStudio Good 😎I look forward to a video series of configuration tutorials applying GSAP with Elementor. I've seen some videos (but not with Elementor or in Wordpress) showing some examples of amazing websites. I've already searched for those keywords on youtube and even outside youtube and there is almost no one talking about it, teaching, showing examples, setting up beautifull loading the landing pages, the transitions, animations, etc. I think that if you are a specialist in the field you could distinguish yourself in the area and it would be an excellent content. 😀
@darknesther
@darknesther Год назад
Is it posible to do it using user role condition?
@mitchellterblanche5890
@mitchellterblanche5890 Год назад
How is this for security? Would it not be easy to make the content show again if you are a nefarious user?
@LytboxStudio
@LytboxStudio Год назад
Good points and I did mention in the video if there’s sensitive content/data and needs extra security then it’s better to use a membership or hide content type of plugin.
@amrfarrouh
@amrfarrouh Год назад
Frist of all I would like to thank you Jeffrey so much for your efforts and useful tutorials I used to see in this channel Would you please check what i try to do to make the container that we want to hide more secure and safe I made an inverse for every thing , the container will be normally hide so i add in its custom CSS : selector{ display:none; } then I changed and inverse the CSS classes to be show-logged-in / show-logged-out ( by this way we make sure that the container is normally invisible and if we put this CSS classes it will show according the logged in and out and also changed the Theme Custom CSS code to be inverse , and make the code to be display: inline for that requested input /* Logged in & out conditions */ .logged-in-condition .show-logged-in { display: inline !important; } .logged-out-condition .show-logged-out { display: inline !important; } Please check is this safe and i can use and don't worry about data I want to hide like prices and promotions or still have the same problem thank you so much
@aminvalipoor2061
@aminvalipoor2061 Год назад
nice thank you
@BharataIshaya
@BharataIshaya Год назад
This works. But it is making the item disappear even in the Elementor area. Problematic for new users who may forget how to find the item, especially when only using just one status, either hide-logged-in or hide-logged-out, which really makes the item difficult to find - impossible to click on to edit and only find-able in the navigator dialogue. It would be awesome if it could still show in the Elementor edit area - maybe not hidden for logged in/out users with edit privileges.
@LytboxStudio
@LytboxStudio Год назад
It definitely would be better and hopefully Elementor adds conditional options soon.
@spida79
@spida79 9 месяцев назад
Simple solution to ensure your content is always visible in the Elementor Editor is to adjust the CSS as follows .logged-in-condition .hide-logged-in, .logged-out-condition .hide-logged-out { display: none!important; } .elementor-editor-active.logged-in-condition .hide-logged-in, .elementor-editor-active.logged-out-condition .hide-logged-out { display: block!important; }
@ArifRimel
@ArifRimel Год назад
how can i apply codition for specific product purchased users?
@LytboxStudio
@LytboxStudio Год назад
You’ll need to add a custom user role for someone purchasing a product. And then adjust the code. I use StudioCart and this gives the ability to add a user role to someone that purchase a specific product. There should be a way to do the same with Woo. Look for assigning a user role when purchasing a product in WooCommerce
@PeteCurrington
@PeteCurrington 4 месяца назад
Not sure why elementor decided to make this so difficult. Divi has a condition for every module, row, section, etc.
@LytboxStudio
@LytboxStudio 4 месяца назад
True, conditions have taken a while to reach Elementor. They started adding them but will take time to reach a level where we don't need code snippets for more complex conditions
@MrWack0Jack0
@MrWack0Jack0 2 месяца назад
How is this possible in Divi? Is there a tutorial of it?
@charlesm9910
@charlesm9910 2 месяца назад
The problem with this approach is that it can easily be reversed using dev tools. For something that needs to be completely blocked, another approach may be necessary.
Далее
Первый день школы Катя vs Макс
19:37
Пришёл к другу на ночёвку 😂
01:00
How to win a argument
9:28
Просмотров 514 тыс.
Different Menus for Logged-In and Logged-Out User
12:18
Bricks - Top Features & Why You Should Use It
6:01
Просмотров 5 тыс.
FINALLY! - Elementor Display Conditions
9:29
Просмотров 13 тыс.