Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #706771

    Trying to add a custom social icon I added using the documentation http://kriesi.at/documentation/enfold/custom-social-icons/ however I didn’t see the option under the social profiles until I added to to register-admin-options.php. The hover option doesn’t seem to be taking effect the code show on the documentation didn’t appear to be correct so I used what i thought would work and neither did.

    Also whats the best way to keep this option when updates apply.

    `function avia_add_custom_social_icon($icons) {
    $icons[‘Teamviewer’] = ‘teamviewer’;
    return $icons;
    }
    add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);

    #top #wrap_all .av-social-link-teamviewer a:before{
    content: “”;
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    background: url(http://chesapeakecontrols.com/testing/wp-content/uploads/2016/11/teamviewer1.png) no-repeat center center;
    background-size: contain;
    filter: url(filters.svg#grayscale);
    /* Firefox 3.5+ */
    filter: gray;
    /* IE6-9 */
    -webkit-filter: grayscale(1);
    /* Google Chrome & Safari 6+ */
    }

    #top #wrap_all .av-social-link-teamviewer a:hover{
    filter: none;
    -webkit-filter: none;
    }

    #707285

    Hey!

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:

    #top #wrap_all .av-social-link-teamviewer:hover a {
        background-color: red;
    }
    

    Best regards,
    Yigit

    #707385

    That got the background to change color but does not remove the gray scale filter.

    #707406

    Hey!

    You can remove the filter from the code you provide it and try it
    It will deliver the results you want.

    Let us know if we can help you further

    Cheers!
    Basilis

    #707929

    I wanted the grey-scale to get removed on hover not completely

    #707944

    Hi!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    #top #wrap_all .av-social-link-teamviewer:hover a:before {
        filter: none;
        filter: none;
        -webkit-filter: none;
    }

    Best regards,
    Yigit

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