Tagged: social media
-
AuthorPosts
-
January 30, 2016 at 2:14 am #574853
Is it possible to use our own custom social media icons? (e.g. by replacing icon files within the theme). Also can I insert some new icons that I want to use? They are not exactly social media – they are google play and iOS buttons that point towards app downloads. Can I do this within theme options or do I have to get my hands into the PHP code? If it’s a coding job, can it be achieved using the child theme?
Thank you
January 30, 2016 at 8:43 pm #575085Hi rarch47!
You can add custom social icons using child themes. Please see the link below which provides you with instructions
http://kriesi.at/documentation/enfold/custom-social-icons/
Best regards,
VinayJanuary 31, 2016 at 3:33 am #575135Thanks Vinay, I did do an earlier search and found that forum topic but I don’t think it really helps me. The icons I want to use are PNG bitmap images that have been custom built. They are also in colour and bigger than the ones that display on Enfold.
January 31, 2016 at 7:08 am #575177Hi!
PNG images are currently not supported for social icons. It requires a lot of customization to use custom png social icons you need to make a css sprits use a site like http://www.spritecow.com/ make one image out of all social icons and upload to your server then setup social icons as usual in the theme options and override the svg icons using css sprit icons this is a lot of customization you probably need to hire a freelancer. but if you like us to give it a try set it up and send us the link we will try to do it for you if it is not going to take a lot of time we will definitely help you.
Regards,
Vinay- This reply was modified 8 years, 10 months ago by Vinay.
January 31, 2016 at 9:39 am #575197I think I will just edit the relevant included PHP file – don’t worry about it being a dashboard theme options capability.
I really want the social media icons to stand out and not be so subtle as they are on the current theme – honestly many users will not even notice the social media icons – and I think they are more important than that.Can you show me which PHP file inserts the social media icons? I will make a copy of it within my child theme. No need for a freelancer. I have built my own themes before using Foundation but this time I want to make the site quickly and have my client reconfigure it easy themselves and not have to ask me to do it.
January 31, 2016 at 10:50 am #575207Hi!
No need to edit PHP files, all you need to do is check how the default icons are rendered by Enfold and overwrite them with your custom images (using CSS), for example for icon elements:
.iconbox_icon:before { content: ""; background: url('_URL_to_PNG_here_'); background-size: contain; width: 20px; height: 20px; display: block; }
Cheers!
JosueFebruary 19, 2016 at 4:41 am #585823I just tried to find that css but could not find it. Found something close in the shortcodes.css but still was not it.
I went via the web inspector and have discovered that the social icons are actually fonts. I don’t think this is an easy job to change to switch out font icons with bitmap images.Sure editing the header.php or other associated file is not an easier option?
February 19, 2016 at 5:31 am #585843What icon element you want to change?
February 19, 2016 at 10:19 am #585943I want to change the icon element that appears at the top of the page in the in the header social icons option.
Here are the files I want to replace them with:http://ausidentities.com.au/members/wp-content/themes/np/images/facebook.svg
http://ausidentities.com.au/members/wp-content/themes/np/images/twitter.svg
http://ausidentities.com.au/members/wp-content/themes/np/images/youtube.svgand the last two are bitmap pngs as I could not find suitable SVG versions:
http://ausidentities.com.au/members/wp-content/themes/np/images/app-store-btn.png
http://ausidentities.com.au/members/wp-content/themes/np/images/google-play-btn.pngI am migrating/updating this website http://ausidentities.com.au/
February 19, 2016 at 12:33 pm #585981Ok can you post a link to the Enfold install in question?
February 26, 2016 at 1:10 am #589540http://ausidentities.coolwebs.com.au/ – its in a sandpit installation now.
February 27, 2016 at 1:22 am #590089Hey!
Use this code:
#top .social_bookmarks li:hover a { background: transparent !important; } #top .social_bookmarks li a:before{ content: ""; display: block; width: 30px; height: 30px; } #top .social_bookmarks li.social_bookmarks_facebook a:before { background: url(https://ausidentities.com.au/members/wp-content/themes/np/images/facebook.svg) center center no-repeat; background-size: contain; } #top .social_bookmarks li.social_bookmarks_twitter a:before { background: url(https://ausidentities.com.au/members/wp-content/themes/np/images/twitter.svg) center center no-repeat; background-size: contain; } #top .social_bookmarks li.social_bookmarks_youtube a:before { background: url(https://ausidentities.com.au/members/wp-content/themes/np/images/youtube.svg) center center no-repeat; background-size: contain; }
Modify and extend as needed.
Regards,
JosueFebruary 27, 2016 at 2:59 pm #590243Yes, works like a treat – thank you! http://ausidentities.coolwebs.com.au/
Had to make some other slight css mods but its working pretty wellFebruary 27, 2016 at 3:00 pm #590245Also gonna have to write some css overrides for the social icons in the footer too ;)
February 27, 2016 at 4:43 pm #590250Yeah, that code targets both the header and footer social bookmarks.
Best regards,
JosueMay 3, 2017 at 3:10 am #786841Ok, so I’m trying this out. I have managed to get a new item in the social media dropdown to add the custom option. I have it set to the custom font that was imported from Fontello. The problem is that it isn’t displaying the correct icon and it isn’t displaying the icon like all other social meida icons….with the round background on hover, etc. (when displayed inline with the main menu).
May 7, 2021 at 2:00 pm #1298955Hi,
I have used this as a template but what i have found is they do not link to where i need them to go, can you help
May 10, 2021 at 6:19 am #1299265Hi outtheboxdigital,
Please open a new thread and include WordPress admin login details in private so that we can have a closer look at your site. Also please try to explain the problem you are having a bit further.
Best regards,
Rikard -
AuthorPosts
- You must be logged in to reply to this topic.