-
AuthorPosts
-
March 22, 2015 at 11:01 pm #416110
Hi Guys,
I have created the following website using the left side bar menu layout using the latest Enfold version ( 3.1.1 )
I would like to include share buttons ( default social share bar which I will custom style ) under the menu items on the left hand side.How would I manage that through functions.php?
Thank you,
March 23, 2015 at 7:34 pm #416612Hi Ewoud!
Please refer to this post and enable debugging mode – http://kriesi.at/documentation/enfold/enable-advanced-layout-builder-debug/
and then copy Social Share Buttons shortcode and add following code to Functions.php file in Appearance > Editoradd_action( 'ava_after_main_menu', 'enfold_custom_header_share' ); function enfold_custom_header_share() { echo do_shortcode( '[SHORTCODE HERE]' ); }Cheers!
YigitMarch 23, 2015 at 9:10 pm #416704Hi Yigit,
I added this code but it broke the site.
Tried variations of it but without success.add_action( 'ava_after_main_menu', 'enfold_custom_header_share' ); function enfold_custom_header_share() { echo do_shortcode( '[av_social_share title='Share this entry' style='' buttons='']' ); }March 23, 2015 at 9:18 pm #416709Hi!
Do you mind creating a temporary admin login and posting it here privately?
Regards,
YigitMarch 23, 2015 at 9:35 pm #416730This reply has been marked as private.March 23, 2015 at 9:38 pm #416734Hey!
Login page cannote be found. I tried few variations but none worked. Can you please check the link once again?
Cheers!
YigitMarch 23, 2015 at 9:40 pm #416735This reply has been marked as private.March 23, 2015 at 10:41 pm #416770Hi!
Please review your website now. My bad, single quotes around shortcode should have been double quotes as following
add_action( 'ava_after_main_menu', 'enfold_custom_header_share' ); function enfold_custom_header_share() { echo do_shortcode( "[SHORTCODE HERE]" ); }Best regards,
YigitMarch 23, 2015 at 10:46 pm #416773Perfect. Thank you,
March 23, 2015 at 11:14 pm #416784Hi!
You are welcome, glad we could help :)
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)Best regards,
Yigit -
AuthorPosts
- The topic ‘Social Share Buttons Under Main Menu In Left Side Bar’ is closed to new replies.
