• Hi,
    I use the frontpage sections for displaying 3 pages and my blog. Is there a way to make the page titles into links, so that when you click on them, you go to that page? I really miss this feature!

    The titles of the blog posts are clickable on the frontpage, why doesn’t this work for page titles?

    Grateful for any input! ??

    The site is under construction here: A Letter From Sweden

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    Create a child theme and make sure it works. Plugins are available to create a child theme with a click of a button.

    In a child theme, please copy template-parts/page/content-front-page.php from the parent theme (TwentySeventeen theme) into template-parts/page/ folder. If the template-parts/page folder doesn’t exist in the child theme, please create it.

    In content-front-page.php file, look for the line <?php the_title( '<h2 class="entry-title">', '</h2>' ); ?> and then replace it with <?php the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); ?>

    • This reply was modified 8 years, 1 month ago by Pothi Kalimuthu. Reason: forgot php tags. whoops!
    Thread Starter webofsigns

    (@webofsigns)

    Hello Pothi, thank you for your reply!

    I use a child theme, created with Once Click Child Theme plugin.

    I will try to do as you suggested, but as I’m having a hard time connecting to my site with FTP,

    I wonder if there’s any way to accomplish this using the CSS editor instead?
    Thank you for your help! ?? Louise

    Unfortunately, it can’t be done using CSS editor, because CSS isn’t involved in making the titles clickable. This happens behind the scenes in PHP. That’s why the long process. I too wish it is simpler to do some basic tweaks.

    Thread Starter webofsigns

    (@webofsigns)

    I see, thank you for your quick reply!
    Hmm… I like this theme, but I really wish the page title in sections were links.
    Thank you ??

    @pothi
    I followed your instructions but it did not work for me. The work-around I am using is not optimal but good enough. I put html tags in the

      NAME

    of the front page section:
    < a hre f =”https://portadam.com/staging/flood-protection/&#8221; target=”_self”>Flood Protection

    That’s a nice way to solve it. Thanks for sharing.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Make page titles clickable on frontpage?’ is closed to new replies.