-
AuthorPosts
-
February 29, 2020 at 4:11 pm #1189027
https://qigongforeveryone.com/
I want to put two icons, one Uk flag and Swedish flag on the right hand side of the Social Media icons.What code shall I add?
Thanks
CharlotteMarch 1, 2020 at 10:03 pm #1189263Hey Charlotte,
Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:.avia-menu.av-main-nav-wrap.av_menu_icon_beside { padding-right: 0 !important; margin-right: 0 !important; } .social_bookmarks.icon_count_2:after { content: url(https://img.icons8.com/officexs/16/000000/great-britain.png) url(https://img.icons8.com/officexs/16/000000/switzerland.png); }
Best regards,
MikeMarch 2, 2020 at 3:22 am #1189294Thanks Mike
It should be a Swedish flag, not Swiss
Also, how do I add a link to each flag?Best regards
CharlotteMarch 2, 2020 at 12:17 pm #1189402Hi,
Is this going to be for a language plugin, often they have language flags, which one are you using?
If not where will they be linking to?Best regards,
MikeMarch 2, 2020 at 12:27 pm #1189404hi, no plugin, just icons with a link on, thanks.
Best regards
CharlotteMarch 4, 2020 at 2:02 pm #1190061Hi,
Thanks for the feedback, please try adding two new social icon profiles by following these steps then go to Fontello and upload SVG icon versions of your flags to be converted into the icon font:
Then these will be next to your other social icons and you will be able to add links in the social profiles in the theme options.Best regards,
MikeMarch 6, 2020 at 9:10 am #1190788HI Mike,
Thanks.
Can’t you just give a me code as you did in the beginning?
One English flag with a url and one Swedish.Best regards
CharlotteMarch 6, 2020 at 9:52 am #1190795Hi Mike,
I have followed your steps and I tried to upload 2 flags to Fontello, should they have the extension .svg?
I don’t see anything new under Social Profiles?
What have done wrong?Can you have a look?
Best regards
CharlotteMarch 6, 2020 at 3:54 pm #1190905Hi,
I tried to login to check your Social Profiles, but it seems incorrect, please check.
We can’t insert a link with the images via css, this is why creating the new social icons using flags will be better.Best regards,
MikeMarch 6, 2020 at 5:00 pm #1190924Aha sorry about the login. This should be working!
Best regards
CharlotteMarch 7, 2020 at 12:19 am #1191037Hi,
Sorry, this didn’t work, is your login restricted to certain countries?Best regards,
MikeMarch 7, 2020 at 2:57 pm #1191119What do you mean? I never heard that you could restrict the login to certain countries.
I added the login as admin.Where in the settings do I change that?
Thanks
CharlotteMarch 7, 2020 at 9:38 pm #1191167Hi,
Some people use plugins to restrict certain countries or their web server, not the theme.
Login is not working, please check.Best regards,
MikeMarch 7, 2020 at 10:13 pm #1191173HI Mike,
So sorry I see now that there where this type of plugin that I have now deaactivaed.
Can please try again, thanksBest regards
CharlotteMarch 7, 2020 at 10:34 pm #1191175March 7, 2020 at 10:41 pm #1191176Hello again,
the login is ok now.
I just realized I had added the user on another website I was working on, sorry!Best regards
CharlotteMarch 8, 2020 at 10:54 am #1191237Hi,
Thank you for the login, I changed the approach a little because I had some trouble uploading the flag icon font, so to your social profiles I added “Tumblr” & “Soundcloud” thinking you would not be using these in the future, so please add the links you want for the flags to these.
Then I added this css to show the flags instead of these two icons:li.av-social-link-tumblr a:before { content: url(https://img.icons8.com/officexs/12/000000/great-britain.png); } li.av-social-link-soundcloud a:before { content: url(https://img.icons8.com/color/12/000000/sweden.png); }
Then I added this function to your functions.php to change the icon titles to the names of the flags on hover:
function custom_flag_titles(){ ?> <script> (function($){ $(document).ready(function(){ $('li.av-social-link-tumblr a').attr({title:'Great Britain'}); $('li.av-social-link-soundcloud a').attr({title:'Sweden'}); }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_flag_titles');
Please clear your browser cache and check.
Best regards,
MikeMarch 9, 2020 at 8:51 pm #1191639Thank you so much Mike :)
Best regards
CharlotteMarch 10, 2020 at 9:20 pm #1192010Hi Charlotte,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.