Please or Register to create posts and topics.

Add social networks sharing

PreviousPage 2 of 3Next

Your share-code is missing. Without your implementation of social-sharing the code is doing nothing. I cant give you any details about the share-code because it depends on which platform and which plugin you want to use for it.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Hello,
Please help me. I’m not a developer but it’s difficult for me. I already install a “ultimate social media icons” but nothing is working.
help me admin

This my share code:

Please use the shortcode [DISPLAY_ULTIMATE_SOCIAL_ICONS] to place the icons anywhere you want.

Or, place the icons directly into our (theme) codes by using <?php echo do_shortcode(‘[DISPLAY_ULTIMATE_SOCIAL_ICONS]’); ?>

 

how to implement it ?

You can try the following:

function my_share_buttons() {
  do_shortcode('[DISPLAY_ULTIMATE_SOCIAL_ICONS]');
}
add_action('asgarosforum_topic_custom_content_bottom', 'my_share_buttons');

If this will not work please contact the support of the social-share-plugin.

klwild has reacted to this post.
klwild
If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Thanks it’s work fine now.

Asgaros has reacted to this post.
Asgaros

Hi

Not work now. Can you help?

I put in /functions.php my themes

I don`t see this code in page source code

  1. function my_share_buttons() {
  2. do_shortcode(‘[DISPLAY_ULTIMATE_SOCIAL_ICONS]’);
  3. }
  4. add_action(‘asgarosforum_topic_custom_content_bottom’, ‘my_share_buttons’);

Hello @dkpandroid

The shortcode-content will only be displayed when you are inside of a topic.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Hello,

Sorry for my bad english (I’m french). First I congratulate you for the best forum for wordpress!

I’d like to show the share button (and fb like if possible) on the topics. I have jetpack and I installed the plugin Sharing buttons shortcode for Jetpack (shortcode given [jpshare]. I have also WP like button that have sharing buttons too, but the only code it gives it [fblike]

I added in my functions.php file :

function my_share_buttons() {
do_shortcode(‘[jpshare]’);
}
add_action(‘asgarosforum_topic_custom_content_bottom’, ‘my_share_buttons’);

And :

function my_share_buttons() {
do_shortcode(‘[fblike]’);
}
add_action(‘asgarosforum_topic_custom_content_bottom’, ‘my_share_buttons’);

The codes are not working.

Do I have to write “display something”? display what?

 

Hey @sylvsteph,

you have to echo the do_shortcode function. In your code, it is just creating the content for shortcode but it is not doing anything with it. By adding echo you will print it:

function my_share_buttons() {
    echo do_shortcode('[jpshare]');
}

add_action('asgarosforum_topic_custom_content_bottom', 'my_share_buttons');

 

Need professional help with Asgaros Forum? Book an appointment with us at domra Web Solutions for setup and customization services. Learn more about our Toolbox for Asgaros Forum plugin to enhance your forum experience.

Thanks @qualmy91

I replace with echo do_shortcode but I still don’t see the share button inside the topics:

https://www.rythmes-croises.org/forum-de-discussions/forum/sur-la-musique/

PreviousPage 2 of 3Next