Skip Navigation

[Resolved] Background image used for a dynamic link

This support ticket is created 4 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 7 replies, has 2 voices.

Last updated by johnR-26 4 years, 3 months ago.

Assisted by: Jamal.

Author
Posts
#1924571
mock-up.png

Tell us what you are trying to do?
I need to know how to make the container with a background image used for a dynamic link to only appear when there is a link entered into a custom field.

I'm attaching the image of what I'm trying to accomplish. I need this template to cover all single view posts for this CPT. Please help me achieve this layout.

What is the link to your site?
This is where I'm doing development hidden link

#1924799

Hello and thank you for contacting the Toolset support.

If I understood well your request, I would suggest that you put this container block inside a conditional block. In the conditional block condition, check if the custom field holds a value or not. Check this article https://toolset.com/course-lesson/using-toolset-conditional-block/

If you want this content template to be used for all CPT's posts, just assign it to the CPT in the "Usage: Single Pages" section. Check this screenshot hidden link

I hope this helps. Let me know if you have any questions.

#1928299

I'm not able to get either the container block or the image blocks inside of a conditional block.

#1928325

Let me be more specific. First, I have a container block that holds 70/30 columns. In the 30 column, I have two columns that each hold a container block that use an image as a bg for the buttons that have the CPT URL's. I'm not able to get those containers to be able to add the conditional block around the image.

#1928351

Hello John,

I created a test site and built a container block, that uses a dynamic image as a background image, and that uses a custom field to set a link on that container block. This only displays when the post has a URL in that custom field. Check the results here:
- Post not containing link: hidden link
- Post containing link: hidden link
Check this screenshot for the generated link hidden link

You can log in to this test site using this URL hidden link
The URL custom field is setup here hidden link
You can check the content template here hidden link
The condition is set on an empty value, by making the condition evaluate to false. Check this screenshot hidden link
Note that you can activate debugging for the conditional block to get more information about the values being evaluated. Check this screenshot hidden link

I hope this explains a bit how to implement this. If you still encounter any issues, please allow me temporary access to your website and provide more details about the content template, the view, the fields, etc.
Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **

#1928361

NM, I was able to figure it out. I think the problem was I was trying to use Kadence block as a row rather than just using the Toolset container and then adding columns inside it. But, between you and the FB group, I was able to get the information I needed. I most likely will need more help though as I progress through this website build using Toolset.

Thanks again!

#1928377

You are welcome! I am glad we can be of help.

However, for support rules, we are able to handle only one issue at a time. This helps us to bring you a better service and also helps other users to find all the information here exposed. For that reason, I have to kindly ask you to mark this ticket as resolved and open a new ticket for any other request or question.

#1928383

My issue is resolved now. Thank you!