Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Vishal Nakum

    (@vishaltrootech)

    I just got my issue solved related to meta description. I found one link in which they suggested to add some code into the function.php file of the theme.

    here is that link

    https://webcache.googleusercontent.com/search?q=cache:6MqhnG45vKAJ:https://www.bizyfi.com/how-to-add-meta-description-tag-to-amp-pages-in-wordpress/+&cd=2&hl=en&ct=clnk&gl=in

    this is the cached version of that site. the original website is broke down.

    I did the same steps suggested in that and disable SEO option from the AMP plugin and got the issue solved.

    I thought it might be helpful.

    here is the code which I added into the function.php file:

    function add_yoast_seo_description_to_amp_pages( $amp_template ) {?>
    <meta name=”description” content=”<?php echo esc_html( get_post_meta(get_the_ID(), ‘_yoast_wpseo_metadesc’, true ) );?>” />
    <?php }
    add_action( ‘amp_post_template_head’, ‘add_yoast_seo_description_to_amp_pages’ );

    Thanks

    Thread Starter Vishal Nakum

    (@vishaltrootech)

    Yes Sure

    accelerated mobile pages(AMP for WP)
    version 0.9.97.43

    AMPforWp plugin Manager
    version 1.1

    Broken Link Checker
    version 1.11.5

    Caldera Forms
    version 1.8.0

    Contact form
    version 5.1.1

    Contact Form 7 Conditional fields
    version 1.4.1

    Contact Form 7 Style
    version 3.1.7

    Crazy Egg
    Version 2.1

    Customr Share Buttons with Floating Sidebar
    version 3.5

    Easy WP SMTP
    version 1.3.8

    Flamingo
    version 1.9

    fusion builder
    version 1.6.1

    fusion core
    version 3.6.1

    GDPR Cooke Consent
    version 1.6.2

    Giphy Press
    version 1.6.2

    Glue for Yoast SEO & AMP
    version 0.4.3

    Hello Bar for WordPress
    version 0.7

    imagify
    version 1.8.4.1

    insert PHP Code Snippet
    version 1.2.6

    Max Mega menu
    version 2.5

    Nofollow for external link
    version 1.2.2

    PHP Compatibility Checker
    version 1.4.7

    PWA for WP
    version 1.0.7

    Rename wp-login.php
    version 2.5.5

    simple 301 Redirects
    version 1.07

    Slider revolution
    version 5.4.8.1

    Sumo Me
    Version 1.30

    Wordpress Importer
    Vwersion 0.6.4

    WP Rocket
    Version 3.2.4

    WP Rocket Footer JS
    version 3.0.15

    Wpdevart Facebook Comments
    version 1.9.0

    Wp forms lite
    version 1.5.1.1

    Yoast SEO
    version 9.5

    Zendesk Chat Widget
    Version 1.4.14

    Thread Starter Vishal Nakum

    (@vishaltrootech)

    Here is the link of two amp pages and please compare the source code of both pages
    1. Home Page Here
    2. Netflix Similar App Development Page Here

    you can see the difference in both codes. Android development page’s CSS is minified automatically but the home page’s CSS not minified automatically and you know that I cannot edit this amp pages’ internal CSS using this “AMPforWp” Plugin from the dashboard

    Thank you

    • This reply was modified 6 years, 1 month ago by Vishal Nakum.
    • This reply was modified 6 years, 1 month ago by Vishal Nakum.
    • This reply was modified 6 years, 1 month ago by Vishal Nakum.
    • This reply was modified 6 years, 1 month ago by Vishal Nakum.
    • This reply was modified 6 years, 1 month ago by Vishal Nakum.
Viewing 3 replies - 1 through 3 (of 3 total)