Support » Plugin: AMP » An extra bullet icon at the end of shares in AMP pages

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    @onlinerockers The problem is your social share buttons are not fully compatible with AMP, and that last list item relates to a multi network share – which uses custom JavaScript. You can remove that in your AMP URLs using the following (which you can add to your themes functions.php)

    add_action( 'amp_post_template_css', 'xyz_amp_my_additional_css_styles' );
    function xyz_amp_my_additional_css_styles( $amp_template ) {
            // only CSS here please...
            ?>
    [amp] li.et_social_all_button {
        display: none;
    }
     <?php
    }

    You can also reach out to the developers of that plugin and ask about AMP support. I will close this ticket now as it doesn’t relate to the AMP plugin specifically.

    Thread Starter Nirmal Kumar

    (@onlinerockers)

    Thank you. The code worked awesomely.

    Is it possible to add extra links in the footer of amp pages?

    Plugin Support James Osborne

    (@jamesosborne)

    You can use the amp_post_template_footer hook to place content in the footer of your reader mode template. The following can be added to your themes functions.php file.

    add_action( 'amp_post_template_footer', function() {
            ?>
    <div....>
       MARKUP HERE
    </div>
            <?php
    } );

    Alternatively copy whatever reader mode templates you like from the plugin (yourwebsite.com/wp-content/plugins/amp/templates), and place them inside an amp folder in your themes root directory. The template files in there will overwrite your plugins template files.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘An extra bullet icon at the end of shares in AMP pages’ is closed to new replies.