• I would like to link a pdf to the page title that appears directly under the menu.

    https://www.danielrandles.com/cv/ ?

    The menu title “CV” appears again as a header on the page. If possible, I would like to assign a link to this header, though there doesn’t appear to be a default or plugin solution for this. Any recommendations?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The menu title “CV” appears again as a header on the page.

    That’s the default behavior and it’s a standard one. Except for the front home page, all other web pages must have page (entry) title so that users know what page they are on.

    You should instead make a download link to your pdf file just under the title and style this link, making it standout, anyway you like.

    Anonymous User 5826054

    (@anonymized-5826054)

    First copy content-page.php to your child theme folder.

    Then on line 13 replace ‘<?php the_title(); ?>’ with this:

    <?php
    if (get_the_title()=='CV') {
    	echo "<a href='https://www.example.com/example.pdf'>CV</a>";
    }
    else {
    	the_title();
    }
    ?>

    Just change the link to your file.

    Let me know if you have any questions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add link to page title’ is closed to new replies.