Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1015287

    Hi,

    I’m trying to add 2 icons to social media,but can’t get it to work, I’ve followed the instructions here:

    And here’s my code so far:

    function avia_add_custom_icon($icons) {
    	$icons['user']	 = array( 'font' =>'entypo-fontello', 'icon' => 'ue800');
    	return $icons;
    }
    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
    
    function avia_add_custom_social_icon($icons) {
    	$icons['My Account'] = 'user';
    	return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);

    Sometimes it’s showing the music note icon, or pencil icon.. What I’m trying to add is user icon, and phone icon, from Entypo.

    Can you help?

    Thanks.

    #1015290

    One more thing, I see the custom social icon links won’t be opened to a new window, like the “default” social icons, is there any way I can make the custom ones to open in a new tab (target = _blank)?

    Thanks.

    #1015367

    Hi, I manage to get it to work, but I have new issue now. I’m trying to put Whatsapp link there, so it automatically open a chat window directly to my Whatsapp account. The problem is, the link should be different for desktop or mobile. I’ve found this code, but not sure where to put it:

    <?php
    $iphone = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone");
    $android = strpos($_SERVER['HTTP_USER_AGENT'],"Android");
    $palmpre = strpos($_SERVER['HTTP_USER_AGENT'],"webOS");
    $berry = strpos($_SERVER['HTTP_USER_AGENT'],"BlackBerry");
    $ipod = strpos($_SERVER['HTTP_USER_AGENT'],"iPod");
    
    // check if is a mobile
    if ($iphone || $android || $palmpre || $ipod || $berry == true)
    {
     header('Location: https://api.whatsapp.com/send?phone=YOURNUMBER&text=YOURTEXT');
     //OR
     echo "<script>window.location='https://api.whatsapp.com/send?phone=YOURNUMBER&text=YOURTEXT'</script>";
    }
    
    // all others
    else {
     header('Location: https://web.whatsapp.com/send?phone=YOURNUMBER&text=YOURTEXT');
     //OR
     echo "<script>window.location='https://web.whatsapp.com/send?phone=YOURNUMBER&text=YOURTEXT'</script>";
    }
    ?>

    Basically, for mobile it should use api.whatsapp.com, but for desktop, it should use web.whatsapp.com, can you help?

    Thanks.

    #1015400

    Hi, please disregard the above issues, as I’ve manage to solve them. One last request, can you help me to switch my social icons position in the burger menu? (screenshot attached)

    And is there any way for me to force reload style.css? I’m currently in the development stage, and will be making a lot of css changes. Even after I disable caching, it still won’t reload style.css fast enough. I used to do it via quick css, but after a while, it’s easier to manage via a separate file.

    Thanks.

    #1015549

    Hi,

    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Basilis

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