Skip Navigation

[Resolved] Container as link in toolset view

This support ticket is created 2 years, 7 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: Asia/Karachi (GMT+05:00)

This topic contains 4 replies, has 2 voices.

Last updated by sharlaC 2 years, 7 months ago.

Assisted by: Waqar.

Author
Posts
#2169217
Screen Shot 2021-09-14 at 1.58.29 PM.png

Tell us what you are trying to do?
Hi, I'm trying to link a container to the post url so that when a user hovers over an accordion menu selection the entire container links, not just the title in the container. We're setting up an accordion menu with different charter planes. When a user clicks on the drop down in the accordion we have several planes in each dropdown, created in a toolset view. When the user hovers, the title becomes a clickable link. We want the entire plane's container to be clickable.

Is there any documentation that you are following?
No

Is there a similar example that we can see?
hidden link

What is the link to your site?hidden link

#2169573

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

example-container-block-nesting.png

Hi,

Thank you for contacting us and I'd be happy to assist.

From looking into your page's source code, it seems that the container block is added at the same level as the grid block that is showing the plane's picture and title. To make the entire loop item clickable through this container block, it is important the grid block is nested inside it.
( example screenshot attached )

I hope this helps and let me know how it goes.

regards,
Waqar

#2170027
Screen Shot 2021-09-15 at 8.40.47 AM.png

Waqar,
Thanks for your reply. I checked my template, and it does appear that it is nested as your screenshot suggests.
I'll attach it for you.

thanks,
Deanna

#2170121

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for sharing the screenshot.

Can you please make sure that no other block or element inside the container is set as a link? When the whole container is wrapped inside a link, no other link should be nested within it, as it is not a valid HTML standard to nest a link (a tag) within another link.

Currently, your paragraph text inside the container also seems to be set as a link.

#2170157

My issue is resolved now. TThank you Waqar! You are a rock star 🙂

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.