• Resolved guilhermenocera

    (@guilhermenocera)


    Hi There!
    I have managed to add the whastapp button on the free version of the plugin I just need a little help calling the Post ID.

    Could you help me?

    The PHP code I have put together with another plugin is the following:

    href="https://suporte.nocerainformatica.com.br/?p=305&share=whatsapp&nb=1

    I just need help calling the post-id and adding it to this url so I can insert it to the php code.

    What you may ask is why am I struggling to get this work instead of just pay the developers or YOU.

    The answer is: I help a non-profit organization and they cannot affort to pay for the plugin itself, neither can I. I voluntary to their organization as well.

    https://www.ads-software.com/plugins/cresta-social-share-counter/

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

    (@crestaproject)

    Hi guilhermenocera,
    please contact us using this form: https://crestaproject.com/contact/

    Best Regards,
    CrestaProject

    Thread Starter guilhermenocera

    (@guilhermenocera)

    A friend and I managed it to work by ourselves.
    Thank you Anyway.

    What you will need:

    Plugins:
    Cresta Social Share Counter
    Bot?o de compartilhamento do WhatsApp para Jetpack
    Jetpack por WordPress.com (You may or may not need it)

    Step 1:

    Activate and configure all plugins and allow Jetpack to use your www.ads-software.com account, Yes you need to have a www.ads-software.com account.

    Step 2:

    Edit the core of the file named cresta-social-share-counter.php using the tab Editor under Plugin.

    add the following line inside the code_goes_here’> tag to one of the share services you’d like to replace, In my case I chose Pinterest.

    href=”‘. (get_permalink( $post->ID )) .’&share=whatsapp&nb=1

    If you would like to know more about this change or help finding a better solution please follow the link below:

    https://gist.github.com/guilhermenocera/cfd3ae1b40274cc2a39a303f6e6dbfd5

    Hello,

    I also run a nonprofit, and I like these little challenges as well…

    @guilhermenocera, thank you for your efforts. I sacrificed the LinkedIn button for WhatsApp, and noticed that there are two places in the file where you will need to change the URL. The second begins at line 437.

    And on top of it all, I also styled the button, this is the CSS code:

    .c-icon-cresta-linkedin:before {content: '\e803';}
    .cresta-share-icon i.c-icon-cresta-linkedin {background: #43d854;}
    .cresta-share-icon i.c-icon-cresta-linkedin:hover {color: #43d854; border: 2px solid #43d854!important; background: #ffffff;}

    Have a look.

    @rizzo, I hope you do not take this as an offense. I really appreciate CSSR, and if this is important to you, I will buy the PRO license. I actually really do my work for free (for that, I’m on welfare here in Germany), but I do not want to hurt you.

    Plugin Author CrestaProject

    (@crestaproject)

    Hi Manuel Fritsch,
    don’t worry, I like when users are able to customize my projects ??

    Best,
    CrestaProject

    Hey,

    that’s great, thank you!
    The button did not work at first. It seems that the link

    href="'. (get_permalink( $post->ID )) .'&share=whatsapp&nb=1"

    is outdated. So I built this rather sophisticated version:

    href="whatsapp://send?text=Have%20a%20look:%0A'. (get_the_title ( $post->ID )) .'%0A'. (get_permalink( $post->ID )) .'"

    …which looks like this:

    Have a look:
    THE TITLE
    THE URL

    Best,
    Manuel

    Plugin Author CrestaProject

    (@crestaproject)

    Yes, in this way it should work fine ??

    Best,
    CrestaProject

    @guilhermenocera, the CSS seems not to work any more; the button is gone on my site. However, I cannot say whether this is due to Jetpack or CSSR, since both had an update this morning, and I ran them both in one go… I only presume it was for Jetpack.
    Is the WhatsApp button still working on your site?

    Best
    Manuel

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Whatsapp Button I did it! Free version’ is closed to new replies.