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.