Site logo

Archived topic

Category Link not Working

3 replies · Started by Rebecca on January 12, 2022

Viewing posts 1–4 of 4

Hello! I'm using Rank Math's primary category to show only one category in a button on the archive pages. I followed the instructions here, and it worked perfectly except the link isn't clicking out.

My site is only on local but I pasted the view source code below, which looks correct. The category is Overwater Bungalows, and it's surrounded by the correct a tag. Any idea why it wouldn't be linking?

<div class="gb-button-wrapper gb-button-wrapper-d3e3487f">

<span class="gb-button gb-button-59240e74 gb-button-text "><span class="primary-category"><a href="http://resorts-daily-2022.local/style/overwater-bungalow/">Overwater Bungalows</a></span></span>

</div>

Thanks!

Hi Rebecca,

The HTML looks correct, we'd have to see the live site to know the exact reason Unfortuanly.

Thanks for the reply, and that makes sense! I did figure it out - I put the button in a separate container and then adjusted the z-index to be higher than the background post/link. Works great now!

Thanks,
Rebecca

Great! Glad you figured it out :)

This archived topic is closed to new replies.