-
AuthorPosts
-
August 4, 2016 at 1:19 pm #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 > Editorfunction 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?
ThanksAugust 5, 2016 at 12:48 pm #668941Hey neonlights79!
I added the code to functions.php file in Appearance > Editor. Please review your website now
Best regards,
YigitAugust 5, 2016 at 2:30 pm #668979Thank 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?
ThanksLuigina
August 5, 2016 at 3:37 pm #669008Hi 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 nowRegards,
YigitAugust 5, 2016 at 4:13 pm #669032The social icons still appear on the header area.
Is it possible to erase line between social icons?
ThanksP.S. JS what means?
August 5, 2016 at 4:43 pm #669044Hi!
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!
YigitAugust 6, 2016 at 4:04 pm #669319Thanks 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.
ThanksAugust 6, 2016 at 4:27 pm #669321Hi!
Please take a look here
on how to create a child theme and use it.
Thanks a lot
Best regards,
BasilisAugust 7, 2016 at 9:52 am #669430Hi,
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?
ThanksAugust 8, 2016 at 4:41 pm #669914Hey!
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 -
AuthorPosts
- You must be logged in to reply to this topic.