Custom button card module failing to reach linked page
Hi, I've developed a little card that houses an image and title text. When you hover over the card it will animate slightly and the image turns from black and white to color. I'd like the entire card to act as a button and link to another page. For some reason that hasn't been possible and I continuously get a 404 not found. I've tried the 'page' field and the 'link' field. Neither seem to work...
.card-content { display: flex; flex-direction: column; justify-content: space-between; height: 100%; /* Ensure the content takes up the entire card height */ }
.card-text { text-align: center; padding-top: 5px; /* Add 10 pixels of padding above the text */ padding-bottom: 0px; /* Add 10 pixels of padding below the text */ font-size: 24px; font-weight: bold; color: white; /* Set the text color to white */ }
.card-title { margin-bottom: 10px; /* Add spacing below the title */ }
Here are two things you can try to help narrow down where the issue is occurring:
Try hardcoding a value for the URL <a href="https://www.google.com" class="card-link"> If it works, you can look at how you're retrieving or storing the URL in the page_field