• Hi,
    I am currently working on this site: galmi.org
    I would like to make the titles of the child pages become links to the child pages on the parent grid page. I have already made the images on the grid page become links to the child as on this page galmi.org/departments
    I would just like for people to be able to click through to the child page without scrolling down to the “more” button.
    Thanks

Viewing 1 replies (of 1 total)
  • Hi @hellofriend!

    Definitely doable! First, if you aren’t already using a child theme, set one up so you can be sure your edits don’t get lost in the next theme update ??

    Next, in your child theme, you’ll need to do a couple of things (you may have done some of them already during your changes to the grid thumbnails).

    – create a folder named components
    – in that folder, drop a copy of the parent theme’s /components/content-grid.php file

    Now we can edit your copy. Replace this line:

    <?php the_title( '<h3>' , '</h3>' ); ?>

    with

    <?php the_title( '<h3><a href="'. esc_url( get_the_permalink() ) .'">', '</a></h3>' ); ?>

    That should do the trick! Let me know how it goes! ??

Viewing 1 replies (of 1 total)
  • The topic ‘How to make titles on grid page into links?’ is closed to new replies.