-
AuthorPosts
-
September 1, 2019 at 8:37 pm #1132720
I’d like to add social media icons and links to the footer, but I don’t see any widget or any way to do that. I see the Social Profiles option, but I don’t see how I can access icons to display them.
September 4, 2019 at 4:02 pm #1133902Hey theartofcom,
Thank you for using Enfold.
Would you consider adding the social icons in the socket or the container below the footer widgets? Edit the Enfold > Footer > Default Footer & Socket Settings to display the footer and socket, then enable the Social Icons.
Best regards,
IsmaelSeptember 4, 2019 at 6:25 pm #1134016This is still working even with Enfold 4.6. : https://kriesi.at/support/topic/social-bookmarks-widget-how-to/. – do not forget the css code!
If it is too much. there are possibilities to make it manually.September 5, 2019 at 2:59 am #1134155I don’t understand. The post indicates:
“This goes to functions.php of the child-theme”
Followed by a bunch of code.
What is “functions.php of the child-theme?”
Do I copy and paste the code? If so, where exactly?
September 6, 2019 at 3:04 am #1134689Hi theartofcom,
functions.php is a file, you can access it through Appearance->Theme Editor or via FTP. The first code block goes into that file, then the second one goes into Quick CSS in the theme options. Please try that out to see if you have any luck with it.
Best regards,
RikardSeptember 6, 2019 at 9:25 am #1134836thats why i wrote: If it is too much. there are possibilities to make it manually.
This above adds an additional widget! not a widget-area. So you only have to pull that widget to any footer widget area you like.
_________________another way is to create a shortcode for that social media icons – and that comes into child-theme functions.php too:
function social_bookmarks_shortcode() { $social_args = array('outside'=>'ul', 'inside'=>'li', 'append' => ''); $social = avia_social_media_icons($social_args, false); return $social; } add_shortcode('social-bookmarks', 'social_bookmarks_shortcode');
this to quick css: ( just to show the list-items besides each other)
#footer .widget ul.social_bookmarks { display: inline-flex; }
you can now put in a text widget (Any heading you like) : [social-bookmarks]
This is the fastest method – the one above in my first posting is elegant but maybe to complicated.
By the way you mean realy : #footer not #socket as Ismael asked here: https://kriesi.at/support/topic/how-to-add-social-media-icons/#post-1133902
for socket there is an option on Enfold OptionsSeptember 7, 2019 at 7:42 am #1135252September 7, 2019 at 5:19 pm #1135420Off Topic:
if you are interested in a child-theme usage – and maybe you read even why it is a good idea to have one :
https://kriesi.at/documentation/enfold/child-theme/
or on WordPress Codex : https://developer.wordpress.org/themes/advanced-topics/child-themes/ (by the way dear mods – change that in your documentation – new link)these snippets here on board which helps to customize a theme – are better placed to a child-theme. Not only because those changings are not lost after an update of the parent-theme.
In principle it is of course also possible to place the snippets in the original file functions.php ( at the very bottom of it – just after that comment ),
/* * register custom functions that are not related to the framework but necessary for the theme to run */
but I don’t find it advantageous, because the functions.php of a child-theme is empty at first, so it is much easier to fill it. You can add comments to the snippets so that you can keep track of them.
A short comment in a php file can be achieved by // these to slashes in front of a comment .
If you got more than oneliners you see often this f.e. ( part of the top of original functions.php):/* * if you run a child theme and dont want to load the default functions.php file * set the global var below in you childthemes function.php to true: * * example: global $avia_config; $avia_config['use_child_theme_functions_only'] = true; * The default functions.php file will then no longer be loaded. You need to make sure then * to include framework and functions that you want to use by yourself. * * This is only recommended for advanced users */
Unlike style.css, the functions.php of a child theme does not override its counterpart from the parent. Instead, it is loaded in addition to the parent’s functions.php. (Specifically, it is loaded right before the parent’s file.)
etc. – i would advice you to use a child-theme.
September 8, 2019 at 2:16 pm #1135626September 12, 2019 at 11:43 pm #1137728Thanks Rikard and @guenni007 for your help. I have tried to use your suggestions, but I seem to have caused some major problems. I think it is related to the snippets I added to the functions.php and quick css files in the child-theme. I am a newbie, and this is a bit over my head I’m afraid.
Here are the error codes I am getting when I try to activate my Enfold theme:
function social_bookmarks_shortcode() { $social_args = array(‘outside’=>’ul’, ‘inside’=>’li’, ‘append’ => ”); $social = avia_social_media_icons($social_args, false); return $social; } add_shortcode(‘social-bookmarks’, ‘social_bookmarks_shortcode’);
Warning: Cannot modify header information – headers already sent by (output started at /home/aboutth9/public_html/MassPlumbersSite/wp-content/themes/Enfold-child/functions.php:10) in /home/aboutth9/public_html/MassPlumbersSite/wp-admin/includes/misc.php on line 1196Warning: Cannot modify header information – headers already sent by (output started at /home/aboutth9/public_html/MassPlumbersSite/wp-content/themes/Enfold-child/functions.php:10) in /home/aboutth9/public_html/MassPlumbersSite/wp-includes/pluggable.php on line 1251
Warning: Cannot modify header information – headers already sent by (output started at /home/aboutth9/public_html/MassPlumbersSite/wp-content/themes/Enfold-child/functions.php:10) in /home/aboutth9/public_html/MassPlumbersSite/wp-includes/pluggable.php on line 1254
I think I want to stay away from using the child-theme for now, until I become more fluent in WP. Can you help me restore the site so I can activate my Enfold theme? Thanks for your assistance.
September 13, 2019 at 10:24 pm #1138215I have resolved this through my host. Thanks.
September 14, 2019 at 5:01 am #1138263Hi,
Great, I’m glad that you got things working and thanks for the update. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
RikardSeptember 14, 2019 at 6:15 pm #1138372Close it. And thanks again.
September 14, 2019 at 8:32 pm #1138388Hi,
Glad @Guenni007 and Rikard were able to help, we will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)Best regards,
Mike -
AuthorPosts
- The topic ‘How to add social media icons?’ is closed to new replies.