Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #198713

    Hey Kriesi team.

    Few days ago peterfagerberg send a question about the the_permalink() function in order to use Entypofont or the light css boutons social sharing.

    The moderator Josue gave this solution for using the permalink() function :

    <a target="_blank" href="https://twitter.com/intent/tweet?text=<?php the_title(); ?>&url=<?php the_permalink(); ?>&via=@username">Tweet</a>
    <a target="_blank" href="http://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>">Share on Facebook</a>
    <a target="_blank" href="https://plus.google.com/share?url=<?php the_permalink(); ?>">Plus on Google+</a>
    <a target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&url=<?php the_permalink(); ?>&title=<?php the_title(); ?>&summary=<?php avia_excerpt(50); ?>&source=<?php the_permalink(); ?>">Share on LinkedIn</a>
    <a target="_blank" href="http://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>&description=YOUR-DESCRIPTION&media=YOUR-IMAGE-SRC">Pin on Pinterest</a>
    <a target="_blank" href="https://vk.com/share.php?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>&description=YOUR-DESCRIPTION&image=YOUR-IMAGE-SRC&noparse=true">Share on VK</a>
    <a target="_blank" href="https://www.xing-share.com/app/user?op=share;sc_p=xing-share;url=<?php the_permalink(); ?>">Share on Xing</a>

    But it does’nt work for me if I put it in a sidebar or in a post.
    The argument stay the same, i mean when i clic on tweet it makes something like this :
    <?php the_title(); ?> via @@username in the twiter writing box.

    Is somebody have a solution?

    • This topic was modified 10 years, 7 months ago by Martin.
    #198741

    Hey Martin!

    That code is meant to be put inside the .php theme files, not in the content of a Post or a Widget.

    Best regards,
    Josue

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘[To continue topic] Light-weight social sharing’ is closed to new replies.