• Resolved frenchomatic

    (@frenchomatic)


    It’s Friday so I thought to share a nice little customisation.

    In your regular blog posts you may well be linking to your about us page or author profile.

    This doesn’t currently happen in your amp pages and the author in meta info is not hyperlinked. To hyperlink it you can go to templates/design-manager/design-X/elements/meta-info.php – there are two places you can do this depending upon whether you are showing meta on pages and/or posts.

    Here I link the author name to an amp page called about us.

    <span class="amp-wp-author author vcard"><?php echo '<a href="' . home_url( 'about-us' ) . '/amp/">' . esc_html( $post_author->display_name ) . '</a>'; ?></span>

    ? for Marqas – is there a hook for the author link – we get one in Genesis so we can link, unlink or modify very easily in functions.php.

    • This topic was modified 7 years, 7 months ago by frenchomatic.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Hyperlink the author name on AMP posts /pages’ is closed to new replies.