Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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?

    http://www.ybemastudios.com

    Thank you,

    #416612

    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

    #416704

    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='']' );
    }
    #416709

    Hi!

    Do you mind creating a temporary admin login and posting it here privately?

    Regards,
    Yigit

    #416730
    This reply has been marked as private.
    #416734

    Hey!

    Login page cannote be found. I tried few variations but none worked. Can you please check the link once again?

    Cheers!
    Yigit

    #416735
    This reply has been marked as private.
    #416770

    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

    #416773

    Perfect. Thank you,

    #416784

    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

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Social Share Buttons Under Main Menu In Left Side Bar’ is closed to new replies.