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,
Hi 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 > Editor
add_action( 'ava_after_main_menu', 'enfold_custom_header_share' );
function enfold_custom_header_share() {
echo do_shortcode( '[SHORTCODE HERE]' );
}
Cheers!
Yigit
Hi 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='']' );
}
Hi!
Do you mind creating a temporary admin login and posting it here privately?
Regards,
Yigit
Hey!
Login page cannote be found. I tried few variations but none worked. Can you please check the link once again?
Cheers!
Yigit
Hi!
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,
Yigit
Perfect. Thank you,
Hi!
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