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

    Wonderful Theme Enfold Staff. I’m working on getting my custom fontello icons to show in my header but ran into some issues. I added the code (which is below) to the functions.php but the icons are not showing up. Additional I added some CSS for the styling but that didn’t show either.

    code for funtions.php

    // Register new icon as a theme icon
    function avia_add_custom_tiktok_icon($icons) {
    	$icons['google'] = array( 'font' =>'google', 'icon' => 'uf1a0');
    	$icons['weedmaps'] = array( 'font' =>'weedmaps', 'icon' => 'ue800');
    	return $icons;
    }
    add_filter('avf_default_icons','avia_add_custom_tiktok_icon', 10, 1);
    
    // Add new icon as an option for social icons
    function avia_add_custom_tiktok_social_icon($icons) {
    	$icons['Google'] = 'google';
    	$icons['Weedmaps'] = 'weedmaps';
    	return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_tiktok_social_icon', 10, 1);

    CSS for styling

    /* google Icon Style*/
    #top #wrap_all .av-social-link-google:hover a {
        background-color: #4688F1 !important;
        color: white !important;
    }
    
    /* weedmaps Icon Style*/
    #top #wrap_all .av-social-link-weedmaps:hover a {
        background-color: #006338 !important;
        color: white !important;
    }
    #1402242

    Hi airxpertsquin,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( to be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.

    Best regards,
    Nikko

    #1402393

    I went ahead and created a temp login without password for you.

    #1402399

    Hi,

    Thanks for giving us admin access.
    It seems the font was wrong, I have replaced this part of the code:

    function avia_add_custom_tiktok_icon($icons) {
    	$icons['google'] = array( 'font' =>'google', 'icon' => 'uf1a0');
    	$icons['weedmaps'] = array( 'font' =>'weedmaps', 'icon' => 'ue800');
    	return $icons;
    }

    with:

    function avia_add_custom_tiktok_icon($icons) {
    	$icons['google'] = array( 'font' =>'fontello', 'icon' => 'uf1a0');
    	$icons['weedmaps'] = array( 'font' =>'fontello', 'icon' => 'ue800');
    	return $icons;
    }

    Please review your site.

    Best regards,
    Nikko

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