need meta tags for news module, must work with pretty urls
need meta tags for news module, must work with pretty urls
I need help with Facebook sharing for individual posts in the news module. Must work with pretty URLs. I also need help with Disqus comments. Contact me for details.
Re: need meta tags for news module, must work with pretty ur
Hello,
With here what I use in news for facebook, twitter, google+, linkedin:
With here what I use in news for facebook, twitter, google+, linkedin:
Code: Select all
{if isset($entry->canonical)}
Deel dit bericht:
{*
<a href="https://www.facebook.com/sharer/sharer.php
?u=https%3A%2F%2Fjonsuh.com%2F"
target="_blank">Share on Facebook</a>
*}
<a href="https://www.facebook.com/sharer/sharer.php?u={$entry->canonical|escape:'url'}" target="_blank" class="social-icon-ar sm no-margin-bottom facebook"><i class="fa fa-facebook"></i></a>
{*
<a href="https://twitter.com/intent/tweet/
?text=Visit%20my%20website
&url=https%3A%2F%2Fjonsuh.com%2F
&via=jonsuh
&hashtags=web,development"
target="_blank">Share on Twitter</a>
*}
<a href="https://twitter.com/intent/tweet/?text={$entry->title|escape}&url={$entry->canonical|escape:'url'}" target="_blank" class="social-icon-ar sm no-margin-bottom twitter"><i class="fa fa-twitter"></i></a>
{*
<a href="https://plus.google.com/share
?url=https%3A%2F%2Fjonsuh.com%2F"
target="_blank">Share on Google+</a>
*}
<a href="https://plus.google.com/share?url={$entry->canonical|escape:'url'}" target="_blank" class="social-icon-ar sm no-margin-bottom google-plus"><i class="fa fa-google-plus"></i></a>
{*
<a href="https://www.linkedin.com/shareArticle
?mini=true
&url=https%3A%2F%2Fjonsuh.com%2F
&title=Jonathan%20Suh
&source=https%3A%2F%2Fjonsuh.com%2F
&summary=Short%20summary"
target="_blank">Share on LinkedIn</a>
*}
<a href="https://www.linkedin.com/shareArticle?mini=true&url={$entry->canonical|escape:'url'}&title={$entry->title|escape}&source={$source_url|escape:'url'}" target="_blank" class="social-icon-ar sm no-margin-bottom linkedin"><i class="fa fa-linkedin"></i></a>
{/if}
[SOLVED] need meta tags for news module
Thanks for your reply. I was able to solve the problem by changing my news items to regular content items. I already have the meta tags working for normal content items. It's not a perfect solution but it works.