-
AuthorPosts
-
September 26, 2014 at 5:51 am #325397
Hi,
Is there a way to add the social icons from this thread https://kriesi.at/support/topic/share-icons-on-pages-and-portfolio-items/#post-260646 to my individual portfolio items?
Like http://www.fertilizersusa.com/?portfolio=slider-two-third ?
September 26, 2014 at 9:15 am #325461Hey!
Try adding this at the very end of your theme / child theme functions.php file:
add_action('ava_after_content', 'avia_add_social_toolbar', 10, 2); function avia_add_social_toolbar($id = "", $context = "") { if($context == "single-portfolio") avia_social_share_links(); }
Cheers!
JosueSeptember 26, 2014 at 7:45 pm #325733Hi Josue,
Unfortunately that did not work. When I added the code nothing happened.
M
September 27, 2014 at 2:20 am #325835Hi!
If you are using Avia Layout Builder in your portfolio items you need to put this code instead:
add_filter('avf_template_builder_content', 'avia_add_social_toolbar_template_builder', 10, 1); function avia_add_social_toolbar_template_builder($content = "") { $content .= avia_social_share_links(array(), false); $content .= '<div style="height:1px; margin-top:50px;" class="hr"></div>'; return $content; }
Cheers!
JosueSeptember 27, 2014 at 5:35 am #325864Hey Josue –
When I add this code I get this error and I cannot view any pages. I have to go through the FTP to delete.
https://www.dropbox.com/s/p1jwwe0bgkdh4t7/Screen%20Shot%202014-09-26%20at%208.32.35%20PM.png?dl=0Please advise.
September 27, 2014 at 5:46 am #325866Hi,
Can you please create me an administrator account? post it here as a private reply.
Regards,
JosueSeptember 27, 2014 at 5:57 am #325870This reply has been marked as private.September 27, 2014 at 6:50 am #325887It’s done:
http://www.fertilizersusa.com/?portfolio=slider-two-thirdCheers!
JosueSeptember 27, 2014 at 7:58 am #325893Hi, It looks like the share links are on every page…
http://www.fertilizersusa.com/
Thanks for helping!
September 27, 2014 at 8:44 am #325900Hey!
It’s fixed now, only on portfolio items.
Cheers!
JosueSeptember 30, 2014 at 10:02 pm #327626Hi Josue –
Sorry to do this but how do I remove this feature?
September 30, 2014 at 10:15 pm #327638Hey!
Simply remove the code from functions.php, if you don’t find it please re-enable the admin account so i can check it out.
Cheers!
JosueSeptember 30, 2014 at 11:13 pm #327705Yeah, I dont know where the code starts and stops. The admin account is still active for you. Can you send me code snippet if i need to re-add?
September 30, 2014 at 11:31 pm #327715Hey!
It’s right here (Functionality plugin):
http://www.fertilizersusa.com/wp-admin/plugin-editor.php?file=functions.phpI just commented it, when you want it back simply remove the /* */.
Cheers!
Josue -
AuthorPosts
- You must be logged in to reply to this topic.