Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #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
    Charlotte

    #1189263

    Hey 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,
    Mike

    #1189294

    Thanks Mike
    It should be a Swedish flag, not Swiss
    Also, how do I add a link to each flag?

    Best regards
    Charlotte

    #1189402

    Hi,
    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,
    Mike

    #1189404

    hi, no plugin, just icons with a link on, thanks.
    Best regards
    Charlotte

    #1190061

    Hi,
    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:
    2020-03-04-065932
    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,
    Mike

    #1190788

    HI 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
    Charlotte

    #1190795

    Hi 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
    Charlotte

    #1190905

    Hi,
    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,
    Mike

    #1190924

    Aha sorry about the login. This should be working!

    Best regards
    Charlotte

    #1191037

    Hi,
    Sorry, this didn’t work, is your login restricted to certain countries?

    Best regards,
    Mike

    #1191119

    What 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
    Charlotte

    #1191167

    Hi,
    Some people use plugins to restrict certain countries or their web server, not the theme.
    Login is not working, please check.

    Best regards,
    Mike

    #1191173

    HI Mike,
    So sorry I see now that there where this type of plugin that I have now deaactivaed.
    Can please try again, thanks

    Best regards
    Charlotte

    #1191175

    Hi,
    I now get the error: “Unknown username”

    Best regards,
    Mike

    #1191176

    Hello again,

    the login is ok now.
    I just realized I had added the user on another website I was working on, sorry!

    Best regards
    Charlotte

    #1191237

    Hi,
    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,
    Mike

    #1191639

    Thank you so much Mike :)

    Best regards
    Charlotte

    #1192010

    Hi Charlotte,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

Viewing 19 posts - 1 through 19 (of 19 total)
  • You must be logged in to reply to this topic.