Skip Navigation

[Resolved] Link to term archive page in Single field messes up layout

This thread is resolved. Here is a description of the problem and solution.

Problem:
The customer reported that when the option to link to the term archive page is enabled, the layout of the archive is affected.

Solution:
Guided that by the HTML standards, it is not valid to nest one link inside another link and most modern browsers try to fix this on their own by changing the markup/code accordingly.

For this reason, whenever the option "Make the entire container a link" is enabled in a container block, it is better to avoid any other links inside the containing blocks.

Relevant Documentation:
n/a

This support ticket is created 3 years, 1 month 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 5 replies, has 2 voices.

Last updated by simoneM-6 3 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#2425361
Schermata 2022-07-26 alle 10.54.57.png
Schermata 2022-07-26 alle 11.47.55.png

Hi,
I'm building a Blog archive page. I've inserted a Single field to display Post taxonomies.
All good until I select "Link to term archive page" as this option messes up the layout (see screenshot 2 for Before, and 1 for after ).
Can you look into this? you can reach the blog page from the secondary menu

thank you

#2425497

Hi,

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

I've checked the blog page and it seems some styles from the active theme are involved here.

To troubleshoot this, I'll need to see exactly how this view is set up in the admin area. Can you please share temporary admin login details, in reply to this message?

Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.

regards,
Waqar

#2426159

Thank you for sharing the admin access.

I've disabled the option "Make the entire container a link" ( screenshot: hidden link ) and see no difference in how the blog page items are shown on the front-end ( screenshot: hidden link ).

Can you please test this again and confirm the same?

#2426301

Oh now I see, so if I need to make the container as link, this overwrites all other links, so probably that's why the system duplicated the container to have the taxonomy link in it..
Too bad it's not possible to have both, or is it?

#2426355

Yes, that is correct.

By the HTML standards, it is not valid to nest one link inside another link and most modern browsers try to fix this on their own by changing the markup/code accordingly.
( ref: https://stackoverflow.com/a/13054959 )

For this reason, whenever the option "Make the entire container a link" is enabled in a container block, it is better to avoid any other links inside the containing blocks.

#2427249

I see. Well, thank you for your help Waqar!