Hi
I would like to add some S2member conditional code to the masonry elements for products so the price is only shown to people who are logged into the site.
Please could you let me know where I can find the code for the masonry elements.
Thanks
Clyde
Hi Clyde!
You can use WordPress is_user_logged_in condition – https://codex.wordpress.org/Function_Reference/is_user_logged_in
Best regards,
Yigit
Hi Thanks
I know what code to use, I just need to know where the code for the Masonry product display is please.
Regards
Clyde Thomas
Hey!
Please go to Enfold/config-templatebuilder/avia-shortcodes folder and edit masonry_entries.php file
Cheers!
Yigit
Hi!
Thank you for coming back.
I’m not sure, what element you are using but the code for the elements you find in:
themes\enfold\config-templatebuilder\avia-shortcodes\
Look into the files like:
masonry_entries.php
product_grid.php
productslider.php
If you do not find, what you are looking for, can you give us a link to this page please? Then we can check and give you the correct file.
Cheers!
Günter