Add social networks sharing
Quote from Asgaros on January 4, 2019, 11:06 amYour 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.
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.
Quote from hbodj on January 5, 2019, 10:22 amHello,
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
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
Quote from hbodj on January 5, 2019, 10:32 amThis 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 ?
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 ?
Quote from Asgaros on January 5, 2019, 11:28 amYou 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.
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.
Quote from Dario on May 1, 2020, 1:53 amHi
Not work now. Can you help?
I put in /functions.php my themes
I don`t see this code in page source code
- function my_share_buttons() {
- do_shortcode(‘[DISPLAY_ULTIMATE_SOCIAL_ICONS]’);
- }
- add_action(‘asgarosforum_topic_custom_content_bottom’, ‘my_share_buttons’);
Hi
Not work now. Can you help?
I put in /functions.php my themes
I don`t see this code in page source code
- function my_share_buttons() {
- do_shortcode(‘[DISPLAY_ULTIMATE_SOCIAL_ICONS]’);
- }
- add_action(‘asgarosforum_topic_custom_content_bottom’, ‘my_share_buttons’);
Quote from Asgaros on May 8, 2020, 3:48 amHello @dkpandroid
The shortcode-content will only be displayed when you are inside of a topic.
Hello @dkpandroid
The shortcode-content will only be displayed when you are inside of a topic.
Quote from sylvsteph on February 5, 2021, 1:59 pmHello,
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?
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?
Quote from qualmy91 on February 7, 2021, 9:17 amHey @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');
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');
Quote from sylvsteph on February 7, 2021, 4:57 pmThanks @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/
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/