• Resolved zo

    (@zotezo)


    All urls on the amp version of a page by default becomes amp; how we can add/embed an url on a page that doesn’t change to amp url?

    If clicked on these urls we need to send users to the actual embeded urls not the amp version of it.

    The page I need help with: [log in to see the link]

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

    (@milindmore22)

    Hello @zotezo

    Can you please share a non-AMP example?

    Thread Starter zo

    (@zotezo)

    Hi,
    For example This is my Top ten article in AMP [ link moved to link field ] .In this article carious products are linked and I want some/selected products link to be non AMP.

    How to achieve that?
    Thanks

    Plugin Support Milind More

    (@milindmore22)

    Hello @zotezo

    You can use rel="noamphtml" attribute to mark those URLs as Non-AMP.

    eg: <a href="https://example.com/hello-world" rel="noamphtml">Hello World</a>

    You can also use the amp_to_amp_excluded_urls filter to exclude URL’s

    eg:

    add_action(
    	'amp_to_amp_excluded_urls',
    	function( $excluded_urls ) {
    		$excluded_urls[]= 'https://example.com/excluded-url/';
    		return $excluded_urls;
    	}
    );

    Hope this helps!

    Plugin Support Milind More

    (@milindmore22)

    @zotezo
    We hope our suggestion is helpful, I’ll mark this as resolved Open a new support topic if you face further issues, also feel free to leave a plugin review, we would love to hear your feedback.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘General Question on AMP’ is closed to new replies.