Tagged: social
-
AuthorPosts
-
September 27, 2018 at 2:07 pm #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.
September 27, 2018 at 2:13 pm #1015290One 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.
September 27, 2018 at 4:31 pm #1015367Hi, 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.
September 27, 2018 at 5:30 pm #1015400Hi, 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.
September 28, 2018 at 12:18 am #1015549Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.