• hi, thank you for your great plugin , i like it and i buy already your adsense extension today.
    my question is why we dont have any option to put our social media links ?
    can you give me some idea to do this ?
    in my desktop theme i use (Social Media Follow Buttons Bar) but its appear in bad way with amp pages so i disable it from your “Plugin Manager extension”
    any idea please ?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Hi @medfan2003

    There is already a social media options in the Dashboard > AMP.

    We have social media profiles which allows you to link to your social media accounts.

    We also have social sharing option which allows users to share the article to various social networks.

    Hope that helps, if not, then please let me know more about your question with a screenshot if possible.

    Thread Starter medfan2003

    (@medfan2003)

    hi, thank you for replying
    i didn’t find social media options in the Dashboard > AMP ?? just found Social sharing buttons under design tab
    pic: https://ibb.co/kAXJow
    to be clear in my question i didn’t mean Social sharing buttons , i mean Social follow buttons that we can use it to put our facebook, youtube and twitter page links (follow us on facebook, twitter …)
    example 1 : https://ps.w.org/wpsite-follow-us-badges/assets/screenshot-3.png
    example 2: https://ibb.co/ghRiMG

    Thread Starter medfan2003

    (@medfan2003)

    Note: I discovered that Social follow buttons Only appeared when you choose design three , its not work at all with design 1 or 2 . please can you fix that and make it work with all theme ?

    This is a get out of jail card until there is a future update:

    If you want them on every page you can use an action in your main theme’s functions.php . For example, you can put them just above the footer using code like this (you will need to define your own css for .soc-follow, soc-tiwtter, etc which you can put in the custom css area. You may be able to lift that css from design 3 (I haven’t checked). I also give some basic css at the end that will at least get you started. Depending on the hook you call you can place these in different positions on your page – I just give the just above the footer example.

    function my_amp_post_before_footer( $amp_post ) {
     ?>
    <div class="soc-follow">
    
       <a href="https://twitter.com/mytwittername class="soc-twitter">Follow us on twitter</a>
       <a href="https://www.facebook.com/myfbname" class="soc-facebook">Follow us on facebook</a>
    </div>
    <?php
    }
    add_action( 'ampforwp_after_post_content', 'my_amp_post_before_footer' );
    .soc-follow{margin:30px auto 10px}
    .soc-follow a{margin:5px 2px;display:inline-block;line-height:1;color:#fff;font-size:10px;font-size:1rem;padding:8px 10px;text-decoration:none}
    .soc-share a:hover{color:#fff;text-decoration:none;opacity:.8}
    .soc-share .soc-facebook{background-color:#3B5998}
    .soc-share .soc-twitter{background-color:#006388}
    • This reply was modified 7 years, 1 month ago by frenchomatic.
    • This reply was modified 7 years, 1 month ago by frenchomatic.
    Thread Starter medfan2003

    (@medfan2003)

    @frenchomatic thank you for help
    Please review your code
    i try it in functions.php for my main them and i got a blank page

    • This reply was modified 7 years, 1 month ago by medfan2003.
    • This reply was modified 7 years, 1 month ago by medfan2003.

    You don’t put the css in your functions.php if that is what you have done. The code works for me on 8 different sites. Just try the code in the top box first and see if you get the links before trying to style them.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Hi @medfan2003

    We don’t have a feature to add follow us social share buttons at the end of the URL.

    Try to use the solution that @frenchomatic suggested.

    @frenchomatic Are you using the same solution?

    If you guys think that this can be a feature, then you can request it at https://github.com/ahmedkaludi/accelerated-mobile-pages/issues

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘social media buttons needed’ is closed to new replies.