Suggestion: Custom Social Media

Homepage Forums Pro Support Forum Blackoot Pro Blackoot Pro Feedback and Suggestions Suggestion: Custom Social Media

Suggestion: Custom Social Media

This topic contains 6 replies, has 2 voices, and was last updated by  iceable 1 year, 6 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #18159
    Suggestion: Custom Social Media

    Cheyenne
    Participant

    Hi Iceable! Hope you’ve been enjoying summer.

    In the Social Media section of the theme you have numerous options for different Social Media sites. I would like to have the ability to add one or more “custom” sites that aren’t on your list (and are likely never to be).

    What I envision is something at the bottom of the list where I can specify the name of a site, choose a 24×24 image from my media library for the icon, and then put in the URL. After clicking Save it would appear in this list under a “Custom” heading and the icon would be added to the header and/or footer.

    In my particular case, the site I want to add most is my public project page on Ravelry (ravelry.com). It’s not exactly a social media site but it would be lovely to have the link listed with my other social media icons. Other Ravelry users would recognize it for what it is. 🙂 I would guess that other users of your theme may have similar instances of websites they’d like to link this way too.

    Thanks for your consideration!

    #18167
    Reply to: Suggestion: Custom Social Media

    iceable
    Keymaster
    Support
    Happy with my help?
    Buy me a beer!

    Hi Cheyenne,

    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!

    #18209
    Reply to: Suggestion: Custom Social Media

    Cheyenne
    Participant

    Thanks Iceable! I will try this shortly and report back. 🙂

    #18231
    Reply to: Suggestion: Custom Social Media

    Cheyenne
    Participant

    Hi Iceable,

    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. 🙂

    #18237
    Reply to: Suggestion: Custom Social Media

    iceable
    Keymaster
    Support
    Happy with my help?
    Buy me a beer!

    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).

    #18246
    Reply to: Suggestion: Custom Social Media

    Cheyenne
    Participant

    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.

    #18249
    Reply to: Suggestion: Custom Social Media

    iceable
    Keymaster
    Support
    Happy with my help?
    Buy me a beer!

    Glad I could help and good to know everything is sorted now! And thank you very much 🙂

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Suggestion: Custom Social Media’ is closed to new replies.


PayPal Verified
Secured by PayPal
Secure Credit Card payments powered by Stripe
SiteLock