Digital experiences for all disciplines
New Landing › How can we help? › Atelier › Add social network
New Landing › How can we help? › Atelier › Add social network
- This topic has 28 replies, 8 voices, and was last updated 8 years by Rui Guerreiro – SUPPORT.
-
Posted in: Atelier
-
June 22, 2015 at 3:14 pm #187068
I would like to add a social network “vkontakte”
Your plugin “swift-framework” in the code file sf-shortcodes.php, there is this network.
How do I activate it?if ( $id == "vk" ) { $social_icons .= '<li class="vk"><a href="' . $vk . '" target="_blank"><i class="fa-vk"></i><i class="fa-vk"></i></a></li>' . "\n"; }
June 23, 2015 at 10:39 am #187358Hi,
It seems that is prepared for that social network but missing the option in the theme.
Can you replace this code.if ( $id == "vk" ) { $social_icons .= '<li class="vk"><a href="' . $vk . '" target="_blank"><i class="fa-vk"></i><i class="fa-vk"></i></a></li>' . "\n"; }
by this one
$social_icons .= '<li class="vk"><a href="http://www.linktoyoursocialnetwork.com" target="_blank"><i class="fa-vk"></i><i class="fa-vk"></i></a></li>' . "\n";
Can you try it to see if it works, and then we add the option to a future theme version.
-Rui
June 23, 2015 at 10:48 am #187368Hey,
This is really a job for a developer, but I can point you in the right direction.
Open the file (sf-options.php) in the theme Folder:
atelier/includes/options/sf-options.php
.After line 3470, add this:
array( 'id' => 'vk_url', 'type' => 'text', 'title' => __('VK', 'swiftframework'), 'subtitle' => "Your VK URL", 'desc' => '', 'default' => '#' ),
Make sure you preserve all previous commas in the previous arrays.
Go to your admin options ‘Social Profiles’ and add your URL and save the options. See screenshot.
Thanks,
David.Attachments:
You must be logged in to view attached files.June 23, 2015 at 11:31 am #187410Thank you!
David, your code works perfectly.June 23, 2015 at 11:34 am #187413Great. Glad it’s sorted.
We will include David change in the next update.Thanks David.
-RuiJune 29, 2015 at 7:39 am #189515Hi!
How to add a background color for icon VK?June 29, 2015 at 8:45 am #189562Hey,
Sure, add this:
ul.social-icons li.vk a:hover { background-color: #f26522; }
Please change the color code to the color you require.
Thanks.
June 29, 2015 at 8:52 am #189571Thanks.
Works perfectly!June 29, 2015 at 9:04 am #189579Great, thanks David
June 29, 2015 at 10:13 am #189612Great, please open a new ticket if you have any more issues we can help with.
Thanks.
August 7, 2015 at 4:12 pm #201982Cannot find the file you are talking about ((
Attachments:
You must be logged in to view attached files.August 7, 2015 at 4:13 pm #201985Hi @Mik_mo, looks like you have posted in the wrong support thread. What are you referring to?
– David.
August 7, 2015 at 5:30 pm #202007No, it is right thread )
I also need to add vkontakte social icon to my site but cannot find the files you are talking about and code lines in the files((
May be thay change after swift-framework updates?Thank you.
August 7, 2015 at 5:38 pm #202014It’s already in the latest update 🙂
Theme Options => Social Profiles => VK (Near the bottom)
Thanks.
August 7, 2015 at 11:17 pm #202060Аfter Swift Framework updates this function does not work
-
Posted in: Atelier
You must be logged in and have valid license to reply to this topic.