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

    Hi –

    I followed the instructions here for “using images” as custom social media icons: http://kriesi.at/documentation/enfold/custom-social-icons/

    by pasting the code into my functions.php for “using images,” and also the “In case of using an image” code into my quick CSS

    However, instead of showing the kreisi logo, it’s showing a pencil icon.

    (Ultimately I want the image to be an PNG linked in private content, but I wanted to first test the code before customizing it myself.)

    Can you please advise how to fix? Thank you!

    #739124

    Hey bkheld!

    Can you please paste us what code you used for the icon and how to replace it?
    Thank you

    Best regards,
    Basilis

    #744067

    I used the following in the functions.php:

    <?php
    
    //We'll use the Kriesi.at glyph for this example
    function avia_add_custom_social_icon($icons) {
    	$icons['Kriesi'] = 'kriesi';
    	return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
    

    and in quick CSS:

    /*custom iheartradio icon */
    #top #wrap_all .av-social-link-kriesi a:before{
        content: "";
        width: 20px;
        height: 20px;
        display: inline-block;
        vertical-align: middle;
        background: url(https://kriesi.at/wp-content/themes/kriesi/images/logo.png) no-repeat center center;
        background-size: contain;
    }

    and then under “Social Profiles” I added the “Kreisi” icon with a link.

    #745743

    Hi,

    Glad you got it sorted. Please do let us know if you have more questions, we are happy to help!

    Thank you for using Enfold :)

    Best regards,
    Vinay

    #755387

    Hi – I didn’t get it sorted out, that code isn’t working. The icon does not show up.

    #758214

    Hey!

    Please remove the css code then use this one instead.

    #top #wrap_all .social_bookmarks_kriesi a {
        background: url(https://kriesi.at/wp-content/themes/kriesi/images/logo.png) no-repeat center center;
        background-size: 14px 16px;
    }
    
    #top #wrap_all .social_bookmarks_kriesi a:before {
        content: '';
    }

    Regards,
    Ismael

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