Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #668556

    Hi,
    I sent a question about social icons and I received this reply from support team:
    Yes! Please go to Enfold theme options > Header > Extra Elements and choose to display social icons in your header and then add following code to Functions.php file in Appearance > Editor

    function av_move_social(){
    ?>
     <script>
    jQuery(window).load(function(){
    jQuery("#header ul.noLightbox.social_bookmarks").detach().appendTo('ul#avia-menu')
    });
     </script>
    <?php
    }
    add_action('wp_footer', 'av_move_social');

    If you have any other questions or issues, please start a thread on our support forum – https://kriesi.at/support/
    I follow this instructions but when I save I had this message:
    Parse error: syntax error, unexpected ‘<‘ in /home/pennainv/public_html/wp-content/themes/enfold/functions.php on line 524
    After I open in file manager this file in wp content-themes-enfold and I erase the code that I added, I removed functions.php file and I replaced with file that I edit.
    Now I can’t get into wordpress because I had this message:
    Fatal error: Call to undefined function avia_get_header_scroll_offset() in /home/pennainv/public_html/wp-content/themes/enfold/css/dynamic-css.php on line 828
    I’m very afraid, what can I do?
    Thanks

    #668941

    Hey neonlights79!

    I added the code to functions.php file in Appearance > Editor. Please review your website now

    Best regards,
    Yigit

    #668979

    Thank you Yigit,
    you are very nice.
    But I notice that social icons appear immediately in the header area and after on my main menu.
    Is it normal?
    Can I position them at right?
    Thanks

    Luigina

    #669008

    Hi Luigina!

    Since this is a JS solution, that is expected. Firstly your page loads and then code is triggered.
    I adjusted the code a little. Please review your website now

    Regards,
    Yigit

    #669032

    The social icons still appear on the header area.
    Is it possible to erase line between social icons?
    Thanks

    P.S. JS what means?

    #669044

    Hi!

    JS is for JavaScript.
    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    #header .social_bookmarks li {
        border: none!important;
    }

    It does show up fine on my end

    Cheers!
    Yigit

    #669319

    Thanks Yigit,
    now it’s ok.
    One question: I want to install enfold-child theme, I already create in the file manager the folder, ma I don’t know how do.
    Could you help me please? Because when there will be a update of enfold I want to be sure that all it’s ok.
    Thanks

    #669321

    Hi!

    Please take a look here

    on how to create a child theme and use it.

    Thanks a lot

    Best regards,
    Basilis

    #669430

    Hi,
    I create style.css file and functions.php file in the folder of child theme.
    In the functions.php file I add the code that your colleague suggested me to add my social icons on the main menu bar
    function av_move_social(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery(“#header ul.noLightbox.social_bookmarks”).detach().appendTo(‘ul#avia-menu’)
    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘av_move_social’);
    <?php
    Also, before I add this code:
    add_action( ‘wp_enqueue_scripts’, ‘enqueue_parent_theme_style’ );
    function enqueue_parent_theme_style() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/style.css’ );
    }
    After, I go in Appearance – themes- enfold child theme and I don’t activate theme but I click on preview and this is the message:
    Fatal error: Cannot redeclare av_move_social() (previously declared in /home/pennainv/public_html/wp-content/themes/enfold-child/functions.php:15) in /home/pennainv/public_html/wp-content/themes/enfold/functions.php on line 547.
    Could you help me?
    Thanks

    #669914

    Hey!

    The same function was in both in parent and child theme, that caused the issue. I removed the code from parent theme and installed child theme from here – http://kriesi.at/documentation/enfold/using-a-child-theme/ and added into functions.php file of child theme. Please review your website now.

    Best regards,
    Yigit

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.