• Hello there!

    So, I’m playing around with the POST GRID, customizing how I’d like it to display.

    I am able to display the Featured Image, post text, etc. Now, when it comes to the button, I was – in a way – forced to use a custom text block rather than a button, since I need to include a custom image before the “ver mas” link (wasn’t able to include a custom icon.. long story short).

    Anyway, I’d like my TEXT BLOCK to link to the actual post. I’ve tried different things, like including PHP and shortcodes to the href tag, but no luck. I don’t know what I’m doing, to be honest.

    Do you know what I mean? Can you pleeeease help? Thanks so much! ??

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    If you’re making changes to your theme’s templates, you should create a child theme to contain your altered templates. Otherwise your changes will be overwritten when the theme is updated.

    Locate the template responsible for the ver mas output, then identify exactly where that code is. Be sure it is inside The Loop. In most themes the loop is a while():endwhile; structure. You are currently outputting a span element containing the arrow icon and the VER MAS text. Wrap the entire thing in an anchor link, using PHP template tags for the variable portions that relate to the current post. For example:

    <a href="<?php the_permalink(); ?>">
      <span style="font-size={--everything else--}VER MAS</span>
    </a>
Viewing 1 replies (of 1 total)
  • The topic ‘Custom Grid: adding “post link” to href tag’ is closed to new replies.