Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1490142

    I’m trying to migrate to SVG social icons as per the recommendation in Theme Options. I have changed X and Instagram on the ‘dev’ test site (see below) and you can see the problem with SVG versions – too ‘low’ and wrong color.

    The fix for the lowered icons is, I think:

    #top .social_bookmarks li.avia-svg-icon svg:first-child {
        margin-top: 6px;}

    from the default of 9px – please confirm this is the right CSS to target to get the SVG icons higher.

    I cannot however find the code that is making the SVG icons display grey (#808080, the secondary font color) instead of blue.

    I have this CSS in my child theme style.css to change the old/existing icons to the site’s main blue colour:

    .header_color .social_bookmarks a {
    	color: #2e3192 !important;}

    This code is still being loaded but is being ignored by the SVG icons. How can I get the SVG icons displaying blue?

    [There is additional CSS to format the social icons, as below, but I don’t think this is relevant, it’s just FYI:
    .html_bottom_nav_header #top .av-logo-container .social_bookmarks {
    right: 83px; margin-top: -30px;}

    #top .social_bookmarks li {
    width: 36px;}

    #top .social_bookmarks li a {
    font-size: 20px;}
    ]

    #1490156

    Hey zimbo,

    Thank you for the inquiry.

    This css should adjust the alignment of the social svg icons.

    #top .social_bookmarks li.avia-svg-icon svg:first-child, #top .social_bookmarks li.avia-svg-icon img[is-svg-img=true] {
        height: 1em;
        width: auto;
        margin-top: 6px;
    }
    

    Then, add this css rule to change the color to blue.

    .header_color .team-social a.avia-svg-icon svg:first-child, .header_color .meta-heading .avia-svg-icon svg:first-child, .header_color .social_bookmarks .avia-svg-icon a svg:first-child {
        stroke: #2f3191;
        fill: #2f3191;
    }

    Screenshot-2025-10-14-at-11-42-36-AM

    Best regards,
    Ismael

    #1490216

    Thanks, that works.

    Presumably I can now delete the previous color change statement of “.header_color .social_bookmarks a” ?

    #1490227

    Hi,

    Yes, you can now remove that css rule or replace it with the modification we provided above. Let us know if you have more questions.

    Best regards,
    Ismael

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