• Resolved biznext

    (@biznext)


    Hi,

    I am using the Reader template.

    I am using the site description to show on non-AMP pages.
    But he isn’t shown on Reader/legacy template mode.

    I see only the site title+link and the icon.

    I want to add the site description below the title.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @biznext

    Thank you for the support topic, We will recommend using SEO plugins such as Yoast SEO, Slim SEO, and All in One SEO which provides a file to edit the meta description for each page.

    You can however use the amp_post_template_head hook to add meta description on AMP Legacy Theme, but adding meta description for each page will be difficult and so we recommend using SEO plugins that are meant to improve your site’s SEO.

    eg:

    add_action(
    	'amp_post_template_head',
    	function() {
    		echo sprintf( '<meta name="description" content="%s">', get_the_title() );
    	}
    );

    Hope this helps!

    Thread Starter biznext

    (@biznext)

    Hi,

    No. not the page description.

    I mean, I want to show the “Tagline” of the website.
    What I wrote in the site settings below the site title.

    Plugin Support Milind More

    (@milindmore22)

    Hello @biznext

    The Legacy Template doesn’t display a tagline, you may need to overwrite the legacy theme to add it.

    Step 1 Go to your the currently active theme (the main theme of your site)
    Step 2 Create a directory inside your theme name it as amp
    Step 3 Create a new file name it as header-bar.php
    final path : wp-content/themes/you-theme/amp/header-bar.php
    Step 4 Copy and paste code from this pastebin code into your header-bar.php

    Hope this helps!

    Thread Starter biznext

    (@biznext)

    Hi,
    Thanks.

    This will override the header-bar of the original AMP plugin?

    Plugin Support Milind More

    (@milindmore22)

    Yes, it will override the header-bar of the original AMP plugin

    James Osborne

    (@jamesosborne)

    @biznext Just following up to check whether you have any further questions on the above?

    James Osborne

    (@jamesosborne)

    As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to add site description to Reader template?’ is closed to new replies.