• Hi. Firstly thank you for your plugin.
    But I have a problem with it as it shows a site with this
    https://www.google.com.hk/amp/s/dampden.com/shop/joyetech-cuaio-d22-starter-kit/amp/
    when clicking from google search

    Where the user cant get further from this site.
    only if they figure out to click on the logo then they get to the website, but not the product they where searching for.
    any help here please
    sdit. I can see that when i click the link I get the rigt page, but if you search on google and click on the result you dont get that page.

    • This topic was modified 7 years, 1 month ago by dampden.
Viewing 1 replies (of 1 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    I’m not 100% sure what you’re asking. I think you’re asking about adding additional navigation to elsewhere on your site in the post templates provided by the plugin. To do this, you could override the header.php template to add a nav menu.

    For example, in your theme you could create a amp directory, and inside this directory create a header.php file that contains:

    $this->load_parts( array( 'header-bar' ) );
    wp_nav_menu( array( 'location' => 'primary' ) );

    You’ll also want to style the menu by adding something like this to your theme’s functions.php:

    add_action( 'amp_post_template_css', function() {
    	?>
    	.menu li {
    		float: left;
    	}
    	<?php
    } );

    This is all for the existing post template system in v0.6 of the plugin. Starting in the next version (0.7) it should be much easier to add things live nav menus since themes will work in a way that is much more similar to how WordPress does themes in general.

Viewing 1 replies (of 1 total)
  • The topic ‘get a non working page’ is closed to new replies.