Has anyone added additional social media options to the theme yet?


If so, can you please share how you completed this?


If not I will try and figure it out and then post the info.

Comments

muirhead’s picture

OK, so it was easier than originally thought.

I added the following to line 106 in the template.php file
$social['LinkedIn'] = theme_get_setting('LinkedIn');

and this to line 117 in theme-settings.php

    $form['fontfolio']['social']['LinkedIn'] = array(
    '#type'          => 'textfield',
    '#title'         => t('LinkedIn Link'),
    '#default_value' => theme_get_setting('LinkedIn'),
    '#description'   => t('Your LinkedIn page link'),
    '#element_validate' => array('fontfolio_social_url_validate'),
  );

Then all that was needed was to add a LinkedIn-icon.png file to the folder fontfolio/styles/images

nehasikri’s picture

hi,
i tried but its not working!

israelshmueli’s picture

To add new social icon (e.g linkedin ) you need to supply 3 elements

1.

  • Add new social icon image file inside fontfolio/styles/images
  • Icon file name should be in this format linkedin-icon.png

2.
Inside theme-settings.php
Do what you have already done,

  • Add linkedin field but use lower case letters for key:
 $form['fontfolio']['social']['linkedin'] = array(
    '#type'          => 'textfield',
    '#title'         => t('Linkedin Link'),
    '#default_value' => theme_get_setting('linkedin'),
    '#description'   => t('Your LinkedIn page link'),
    '#element_validate' => array('fontfolio_social_url_validate'),
  );

3.
Inside template.php file:
between lines 99 and 100 (add your new line).

  • Add new line with the following code:
    $social['linkedin'] = theme_get_setting('linkedin');

Give it a try. Should work

nehasikri’s picture

hi, ya it works!! thanks :)

nehasikri’s picture

hi
can u plz resolve my other issue?
i want to add drop down menu under main menu, i tried but no luck, plz help me if u have any idea!
thanks!