Tell us what you are trying to do?
On my woocommerce account page, I want to add an extra link/button that only displays for logged-in users. The link is to a database webpage I created using toolset. Only logged in users have access.
Is there any documentation that you are following?
This seems like exactly what I need, except I am using elementor to build the page. https://toolset.com/lesson-placement/lesson-placements-1719471-1719351/ I also saw some other help forums that discussed adding code, but I didn't find anything regarding logged in user access, only fields.
Hi Minesh,
Yes, thank you. I do understand how to do this in the regular block builder. But, I am using elementor. Do you have tips for how to get these same results with elementor?
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Hi Minesh,
I included a screenshot with the buttons I do not want to appear for not-logged in users. ("Access the new material and activity database" and "Write your own activity for your materials") They should only appear for logged in users. The buttons are the ones at the bottom of this login screen. They should only be appearing on the logged in dashboard and not here.
I have since removed the shortcode because it did not work. I added it into the elemetor text module and also tried it in the shortcode as you said.
Please note that you can not wrap any elementor module with the conditional shortcode.
You should try to add conditional shortcode within the text module or shortcode module and within the conditional (within the text module) you will have to add the add the buttons HTML.
Can you pleases share buttons HTML that you want to display and I will wrap the conditional statement with that shared HTML.
Okay, I'm realizing I might be needing more than just this because I actually need that entire boxed element to not appear, not just the buttons. And since I can't wrap the elementor element, then I don't think this will work how I need it to.