brizy post widget add catagory class or attribute to post single item
Is it possible to add the value of a field in this case status as a class or data attibute to a single item in a brizy post widget? We would like to target styling based on the status of a post item. We see the option to add the status to the card but its not showing on the frontend (please see provided image)
We use ACF plugin to acquire this field.
Thank you for your time and consideration
-
Hi Kuperus,
We would like additional information to help you with this request. Could you please share your design goal with us so that we can better grasp your requirement? The design goal describes how your page will function if your request is granted (without referring to Brizy page builder or its features). If you're attempting to replicate a design you saw on another website, could you please share the URL of the page?
0 -
Thank you for picking up my support request. I’ll try and explain the design goal: Our client would like to see a visual indication if a land plot is sold To make this possible with styling we need a class that signify’s that this post item is sold We use the ACF plugin to create a custom field that connects to the post item and gives it a status of for sale, or sold. We saw that in the Brizy Post items widget you can add the status, but nothing seems to happen Are hope is that it will create a class based on the status of the post item: I hope this informes you of our intentions if not please let me know Met vriendelijke groet, Thijs Telefoon: 079 - 593 75 16 E-mail: joert@softtech.nl Support: 079 - 303 01 10 software@softtech.nl Website: www.softtech.nl Adres: Buitenom 243 2711 KB Zoetermeer Route parkeergarage (https://www.softtech.nl/contact#BookmarkParkeren) Disclaimer SoftTech verzoekt u in het geval deze mail onbedoeld bij de verkeerde persoon terecht komt om de mail te verwijderen en de verzender hiervan op de hoogte te stellen. Acest Tiket a fost facut Recovery din Suspended Tickets. Trebuie editat si la final in PS. trebuei de zis la user "Please do not reply to noreplay email, pentru ca mesajele ajung in SPAM" 0 -
Hello i replied to your comment in the email i got not realizing its a noreply.
Thank you for picking up my support request.
I’ll try and explain the design goal:
Our client would like to see a visual indication if a land plot is sold.

To make this possible with styling we need a class that signify’s that this post item is sold. We use the ACF plugin to create a custom field that connects to the post item and gives it a status of for sale, or sold.

We saw that in the Brizy Post items widget you can add the status, but nothing seems to happen.

Are hope is that it will create a class based on the status of the post item:

I hope this informes you of our intentions if not please let me know
0 -
Hi Kuperus,
Thank you for your cooperation.
Unfortunately, this approach may not work as expected and is not intended for this purpose.
However, this can be possible with custom CSS and short JavaScript.
I have made an example for you on this link - https://staging.server001.xyz/lands/This screencast will explain how this was made - https://youtu.be/DJLR0VSb6hU
Feel free to inspect this staging site using this link. The access is valid for three days.
Kindly note that the provided code is for illustrative purposes only and each website is unique, and modifications may be necessary to suit your specific requirements. We do not offer continuous support for custom scripts.
Review the code carefully and adjust it as needed to fit your website. While we strive for accuracy, it is your responsibility to test and adapt the code to ensure proper functionality in your environment.
If you encounter difficulties or have questions, consult relevant documentation or seek assistance from the developer community or online resources specializing in web development.
Best regards,
Ariel H.0 -
Thank you Ariel for supplying such a detailed alternative option. Your method does work for our situation so thats great :) We do wonder if the option to add classes directly via the ACF custom fields to a brizy item will be available in the future? Is there a feature submission I can upvote?
0 -
Hi Kuperus,
Thank you for the update. I'm glad to hear that the alternate option is working well for you.
Regarding your suggestion about adding classes directly via the ACF custom fields to a Brizy item, we appreciate your input and will submit this to our internal list of requested features so it may be possibly considered for future updates.
Best regards,
Ariel H.0
Please sign in to leave a comment.
Comments
6 comments