Suraj Air
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP] Google Webmasters critical errorsHi,
Link tag is generated fine. Just try the following:
Goto Settings => Permalinks and Save settings. This is rewrite route cache and it should work fine.
You should be able to see amp page here:
https://www.computerblog.ro/dan/top-10-filme-2017-online.html/ampLet me know if this works.
-Suraj
PulseAMP – WP AMP themeForum: Plugins
In reply to: [AMP] How do I remove ‘Powered by wordpress’ from footer of amp posts?hi @mofojofo,
You need to override the default template in your theme.
Eg:add_filter( 'amp_post_template_file', 'pulse_amp_set_custom_tax_meta_template', 10, 3 ); function pulse_amp_set_custom_tax_meta_template( $file, $type, $post ) { if ( 'footer' === $type ) { $file = dirname( __FILE__ ) . '/templates/footer.php'; } return $file; }Create a footer.php in templates folder inside your time and add markup to customize your footer
- This reply was modified 9 years ago by Suraj Air.
Forum: Plugins
In reply to: [AMP] AMP pages to link to my AMP pagesHi @odeg,
You need to add hook for ‘post_link’ and append /amp to all get_permalink generated urls.
Eg:function pulseamp_append_amp_path($url, $post, $leavename=false) { $url = $url . 'amp'; return $url; } function pulseamp_hook_permalink(){ add_filter('post_link', 'pulseamp_append_amp_path', 10, 3); } add_action('amp_init', 'pulseamp_hook_permalink');Forum: Plugins
In reply to: [AMP] Google Webmasters critical errors@dandr69, can you share the link to your website?
Mostly, this happens because of interference from other plugins. Looking at the link will give a better idea.Forum: Plugins
In reply to: [AMP] How can i add comments form in amp page?Hi @waleed-hammoud,
With the recent AMP updates, forms are supported in AMP. You can find how to add comment form in AMP here:
https://medium.com/@surajair/creating-comment-form-on-amp-pages-in-wordpress-9dd675ba383bHope it helps.