- August 17, 2016 at 3:02 am #18159August 17, 2016 at 7:46 am #18167iceableAugust 17, 2016 at 7:46 amReply to: Suggestion: Custom Social Media
Thanks for the suggestion, we’ll consider this for a future addition to the settings panel!
One small difficulty I can immediately think of is that all social media icons are made out of font-awesome icons, not images, so I’m afraid the result might no look really consistent when adding custom images.
In the meantime I guess you’d like to achieve way before we release an update with this feature, and for this I suggest you simply use a bit of custom code in your child theme:
– Copy functions/icefit-socialmedia/icefit-socialmedia.php into your child theme (make sure to create directories to replicate the same file structure) so you can edit this file from your child theme.
– You can add your custom icon’s code before line 123 (which closes the last div tag), like so:
$output .= '<a href="http://LINK_TO_EXTERNAL_SITE" target="_blank"><img src="http://URL_TO_CUSTOM_ICON_IMAGE"></a>';
– You may or may not need some custom CSS to adjust the size and positioning so it fit with other icons; let me know if you need any help with this.
Alternatively, you can also entirely replace the output of this function ( icefit_socialmedia_widget_content() ) to fully control all icons, markup, order and styling!August 18, 2016 at 1:52 am #18209CheyenneAugust 18, 2016 at 1:52 amReply to: Suggestion: Custom Social Media
Thanks Iceable! I will try this shortly and report back. 🙂August 20, 2016 at 5:24 am #18231CheyenneAugust 20, 2016 at 5:24 amReply to: Suggestion: Custom Social Media
I was able to implement this today (thanks!) but it had an unexpected result: the social media widget and search that I had in the footer are now in my sidebar, the footer area is gone, and my actual sidebar widgets are all missing. Eh? You can see it in action here: http://incyanity.net
On an unrelated note, when I went into the functions folder, I noticed there’s a folder called “icefit-mce3” and another one called “icefit-mce3.9” and yet another one called “icefit-mce4.0” and they all seem to have very similar content. Do I need all three, or was 4.0 supposed to replace the other two?
Thanks. 🙂August 22, 2016 at 9:01 am #18237iceableAugust 22, 2016 at 9:01 amReply to: Suggestion: Custom Social Media
Well indeed this doesn’t sound right at all; however it is unlikely that the change I suggested above could have caused your widgets to disappear, so most probably something else has changed at the same time.
First I suggest you simply check the widgets from Appearance > Widgets. If some of your widgets were simply kicked out of the sidebar and footer for some reason, you’ll find them with their settings intact at the bottom of the left column under “inactive widgets”, so you can just put them back where they belong.
If this doesn’t help I suggest you review any other change you could have made at the same time – and even restore a recent backup if you cannot seem to find what else has changed.
“functions/icefit-mce4.0/” contains the mce functions for WordPress 4.0+, it does replace the other two which contain the same features for older versions of WordPress and are left in the theme for backward compatibility.
So your guess was correct: you don’t need them if you are using an up to date WP version! (By the way these folders will be removed when we drop compatibility for WP lesser than 4.0).August 23, 2016 at 4:29 am #18246CheyenneAugust 23, 2016 at 4:29 amReply to: Suggestion: Custom Social Media
Right, I figured it out. It was me being dumb. I forgot that when you activate a child theme (Incyanity wasn’t using one before), not everything carries over exactly right. All good! I found them and put them where they’re supposed to be. I’ll just see myself out now (after I delete those extraneous folders, thanks!).
Thanks for your help on this, and I look forward to the day when I might be able to specify more sites from the theme settings if I want them. 🙂 There’s a beer or three in your future.August 23, 2016 at 7:23 am #18249
The topic ‘Suggestion: Custom Social Media’ is closed to new replies.