Discussion on WP AMP — Accelerated Mobile Pages for WordPress and WooCommerce

teamdev-ltd

teamdev-ltd supports this item

Supported

This author's response time can be up to 2 business days.

379 comments found.

Hello, guys! I’ve just purchased this plugin and it seems that it works only with pages, excluding main page and posts. My website – www.geekster.ru

I assure you everything is turned on. It seems to me /amp/ pages are redirecting to the normal ones automatically in some way.

After several refreshes of pages in private tab I’ve got a result at last.

Maybe some kind of cache. Please re-save permalinks and clear all caches.

The field we are entering in the summaries of our news site does not appear in the amp. Http://prntscr.com/f8mjhd there are only those in the description section.

I have thousands of content. If I do this, I have a big problem. It does not seem possible for me to use it this way.

My theme uses the following function for this area.

function safirText($wordsCount, $echo = true, $excerpt = true) { global $post; if($excerpt && $x = get_the_excerpt()) : $string = safirBracket(strip_tags($x)); else : $string = safirBracket(strip_tags(get_the_content())); endif; $array = explode(” ”, $string); if (count($array)>$wordsCount) : array_splice($array, $wordsCount); $string = implode(” ”, $array).”...”; endif; if($echo) : echo $string; else : return $string; endif; }

Can not it be defined with this code? Rejoice if you help me. I can not use the plugin :(

I apologize for the image pollution

<?php

do_action(‘amphtml_before_content’);

$content = $this->content;

$title = $this->title;

$replace1 = ’<amp-video width=”480” height=”270” src=”https’;

$replace2 = ’” layout=”responsive” controls autoplay> </amp-video>’;

$replace3 = ‘alt=”’.$title.’”’.’title=”’.$title.’”’;

$content = str_replace(‘[player]http’, $replace1, $content);

$content = str_replace(‘[/player]’, $replace2, $content);

$content = str_replace(‘alt=”Açıklama”’, $replace3, $content);

$content = str_replace(‘alt=””’, $replace3, $content);

$content = str_replace(‘alt=” ”’, $replace3, $content);

$excerpt = strip_tags(get_the_excerpt());

echo “

”.$excerpt.”

”;

echo $content;

wp_link_pages( . ‘ ’, . ‘ ’,

)

);

do_action(‘amphtml_after_content’);

Hi,

Yes, you can override plugin template and add code something like this for outputting your field.

Thanks

Hi, Can the web pages load even if the user is connecting thru mobile data only?

Hi,

Thank you for contacting us!

Could you please clarify your question?

Technically the AMP pages load the same way through the network as other pages.

Thanks

Hello, My office bought this plugin, how can i edit amp image width here is 200px inline style :(

Hi,

Thank you for your comment.

Please contact us via support form and provide links and screenshots of image editing so we can help you.

Thanks

Hi I can see in the Documentation that (among others) amp-accordion component is supported by default. But how do you add an AMP accordion? Shortcode perhaps? Thank you Brian

Hi,

Thank you for update.

Regarding accordion, shortcodes for adding accordion will be available in the next major plugin release at the end of June.

Regarding carousel, could you please specify how did you added it and send me a link to page with it so we can investigate this bug?

Thanks

proseo4u

proseo4u Purchased

Here’s a live example (carousel): http://proseo4u.com/amp-test/amp/ Does this with all themes. I tested it with Twenty Ten and other default WordPress themes + with Avada and Doover.

Hi,

I’ve checked you page and see that you have line break “br” tags inside the AMP gallery. Please remove them – http://prntscr.com/fdbyad

This tag makes empty slides.

For correct carousel gallery display you should use default WordPress gallery shortcode [gallery] – http://prntscr.com/fdbxwh

Thanks

How can I set up a different home page or only lastest posts on AMP home page?

Hi,

Thank you for contacting us.

It works the same way as your WordPress reading settings – http://prntscr.com/fcaw1s

If you have set up static home page it will be the same page on AMP home too.

Thanks

Please go through Better AMP plugin that comes with Publisher WP Theme… You should give options like them. Also check Better Ads plugins to show ads between the post in AMP version of page.

Thank you for these ideas. We will investigate ability of such features. Thanks

Hi, how to resolve the below error Fatal error: Call to a member function find() on null in /home/phoneone/public_html/android1pro/wp-content/plugins/wp-amp/includes/class-amphtml-sanitize.php on line 389

Hi,

I’ve answered to your question via email.

Thanks

rubarx

rubarx Purchased

Hello, after activating the AMP plugin, tried to check AMP pages load speed, and the server’s response time is increased highly. My pages without AMP load in 2 secs, and with AMP it’s increased to 6 secs.

Using Nginx + PHP-FPM 7. Tried with Apache and Fastcgi, the result is the same.

Using Avada Theme.

Please help me :)

Hi,

Thank you for contacting us.

Sometimes there can be such issue caused by slow server or if you have a big complex website with many plugins.

Could you please send me a link to such page so I can check it and maybe provide any recommendations.

Anyway, even if the AMP page loads slowly, when it will be indexed by Google, it will work lighting fast, because it will be served from Google CDN servers.

Thanks

I love this Plugin and its helped quite a bit with my website. However, is there a way to exclude certain pages/posts from displaying in AMP? eg. I’d like the homepage to show as a normal page everytime, but the pages with the content on I’d like to show on amp.

eg. Exclude posts, 145, 149.

Hi,

Thank you for your comment.

Our plugin provides ability to disable AMP for certain pages or posts here – http://prntscr.com/fe87cu

Thanks

does it work with Advance custom fields plugin, and Visual composer plugin?

Hi,

Thank you for contacting us.

There are no ability to show ACF fields by default, but you can override plugin templates and add custom fields there manually.It will require custom coding.

Regarding Visual Composer and other page builders, our plugin provides ability to override AMP content for certain pages with complex structure and setup simplified content for AMP.

Thanks

Cendaryn

Cendaryn Purchased

Help! I just bought and installed your plugin but I have several errors (seems to be Jetpack?) and I don’t know how to fix them.

See: https://search.google.com/test/amp?id=9P3_cMq_yk0kqaKjr1JyDQ

Can you help?

Hi,

Thank you for contacting us.

I see that there are many custom scripts inserted by third-party plugins or manually – http://prntscr.com/firyw8

You should remove these scripts so page can be validated.

Thanks

Hi teamdev,

Thanks for the great plugin. Putting ads in between paragraphs is impossible. Could you include this feature in the following updates?

I like the plugin but I am losing a lot of ad revenue because it lacks this feature. I have read several comments about it in here. Please consider this feedback coming from your several customers.

All the best…

Hi,

Thank you for contacting us.

We will consider such feature in future releases.

For now you can use [wp-amp-ad] shortcode for inserting ads into the post content.

Thanks

Can I solve sliced ads in mobile with your plugin? See the image to understand my problem and question: http://i.imgur.com/0LgxOKW.jpg

Even to Google Adsense?

If I buy, can I install your plugin in more than 1 site? Please answer the 2 questions.

1) Yes

2) No. According to CodeCanyon policies you should buy a separate license for every site.

Hi Author, how to implement page level ads at the footer

Hi,

Thank you for contacting us.

Page level ads are not supported by AMP Standard

https://github.com/ampproject/amphtml/issues/3553

Thanks

gusvdw

gusvdw Purchased

Hi there,

I bought the plugin and love it thus far so thank you very much for it.

I am however running into issues though. I try and add custom code such as this:

<amp-img alt=”flowers” src=”images/flowers.jpg” layout=”responsive” width=”640” height=”427”></amp-img>

But it get stripped out in the AMP editor to this:

src=”images/flowers.jpg” layout=”responsive” width=”640” height=”427”>

It happens a lot and does seem to cause a few issues when trying to make a decent looking version of the page at hand.

Do you perhaps have a solution to this by any chance?

Thank you.

Hi,

Thank you for contacting us.

If you want to insert image to AMP you do not need to use amp tags.

Just insert regular image to the post content using default media uploader in editor and it will be automaticallu converted to amp format on amp version of this page.

Thanks

gusvdw

gusvdw Purchased

Hi,

I understand that from a base level it does do this but the problem is that it strips everything out. There are other elements that would be nice to have added to the site instead of solely depending on tables etc. These add to the experience but nothing can be added because the site strips everything out.

I wanted to add a table that would be responsive but i cant because it gets stripped out. The above is just an example of what wordpress does.

Hi,

Yes, this is true, because AMP has very strict restrictions regarding html tags, attributes and custom css also. So it is required to strip everything for avoiding validation errors and correct indexing in Google.

I would suggest to add such elements via custom shortcodes. You can register such shortcode and provide correct amp markup for it and use it into the post content.

Thanks

Hello,

In all my amp pages I have no hreflang or lang attributes. I’m using wpml.

Is there any way to fix this?

Hi,

Thank you for contacting us.

We will check this issue and if possible we will add a fix for this in the next release.

Thanks

Hello , We would like to download your plug-in for our website. However, we have a couple of clarifications for the same

1. Can the amp icon appear next to our web address on search engines? 2. Will it be visible only for the specific section of our website, like blogs, etc. ?

Do let me know at the earliest, as we would like to implement the same asap. Thank you.

Hi,

Thank you for contacting us

1) It depends on search engine algorithm only. We can’t impact on it.

2) You can enable or disable AMP for post types and archives in plugin settings. Also you can disable AMP for specific page or post.

Thanks

i am using betheme, will it work with this theme ? because i am ready using better amp where amp pages redirecting to home page. it working only with posts not with pages

Hi,

Our plugin does not depend on any theme.

The site will looks similar to the demo – http://demo.ampprojectwp.com/amp/ Of course you will have the ability to change colors, logo, fonts, etc.

WP AMP plugin supports WordPress pages.

Thanks!

Hi,

Pre-sales question and it’s also a bit of a question about AMP in general. If someone lands on an AMP page and then clicks on any link or menu item on the page, is the following page still AMP or is there a way to return them to regular responsive pages?

Many thanks!

Hi,

Thank you for your question.

Links in the post content will stay the same as on regular version. And links in menu items can be configured to follow the amp version or regular version of the page.

Thanks

Fantastic, many thanks!

by
by
by
by
by
by