-
Author
-
March 9, 2015 at 18:48 #49397Salle32Participant
Hi,
I spent a couple of hours trying to figure out how to add share-links (social_share) to all topics and replies in the forums. I´m not even close….
Could you please advise exact how I do it?
Many Thanks
Fredrik
March 10, 2015 at 19:20 #49538RaduModeratorHello,
Add this code to your functions.php from kleo-child directory
COPY CODEadd_action( 'bbp_theme_after_reply_content', 'kleo_social_share' );
Let me know if it works.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 26, 2015 at 18:48 #56170Salle32ParticipantHi,
I answered to a no-reply e-mail adress 🙂
The answer is : still doesn´t work as expected.
Please advise!
Fredrik
May 7, 2015 at 01:54 #57659AndreiModeratorHi @salle32, can you please be a little bit more specific and explain in what way it doesn’t work as you expected.
Looking forward to help you.
CheersHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMay 7, 2015 at 12:08 #57686Salle32ParticipantHi!
Now I have a pic of what I mean!
Please look at it and say if it´s possible.Best Regards
FredrikAttachments:
You must be logged in to view attached files.May 7, 2015 at 19:16 #57752AndreiModeratorHi mate, please note that in your first request you’ve said you want them in forums and topics.
The image you’ve put up in your last post is from buddypress activity stream.Here is a code which you should add it to your functions.php file and will add share buttons for each activity entry:
http://pastebin.com/CiNX5XPkLet me know if I can help you with anything else.
CheersHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMay 8, 2015 at 12:19 #57970Salle32ParticipantThank you!
Works like charm!!
Sorry for defining wrong need in the beggining!
//Fredrik
Attachments:
You must be logged in to view attached files.October 12, 2015 at 13:50 #81841tubbytatParticipantwhen i added the code from http://pastebin.com/CiNX5XPk and uploaded it to the kleo child functions.php i got a white screen on my site. Any reasons for this?
October 12, 2015 at 15:26 #81853AndreiModeratorProbably you’re not correctly applying the given code snippet.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 12, 2015 at 16:31 #81862tubbytatParticipantwell i copied and pasted the code from http://pastebin.com/CiNX5XPk into the kleo child functons.php, saved and uploaded back to the same folder, refreshed my theme and got white screen.
so then i added add_action( ‘bbp_theme_after_reply_content’, ‘kleo_social_share’ ); to the functions.php and that gave me the add share links below the forum posts
October 12, 2015 at 23:47 #81964AndreiModeratorCan you please zip the functions.php file and attach it here so I can review it and send it back to you ?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 13, 2015 at 09:13 #81997tubbytatParticipantthanks, see attached
Attachments:
You must be logged in to view attached files.October 26, 2015 at 14:21 #84234AndreiModeratorOn line 13 you have an extra ‘ Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
The forum ‘KLEO’ is closed to new topics and replies.