-
AuthorPosts
-
May 22, 2014 at 1:18 pm #268567
Hi
I am using the widget
#RSS ENFOLD AND TWITTER LINK ACCOUNT” to show case some social icons in the footer of a website I am working. The customer has expressed they want 4 icons, for
1 Facebook
2 Twitter
3 Instgram
4 RSSI have modified the existing widget nicely to show facebook and rss, but how can I have 4? They could be 2 rows of 2 :)
Could you provide me the php even? I’ll just copy and paste it into a text module :)
You can see the slight tweak I have done from twitter to facebook at http://www.jasminesboutique.co.uk in column1 under site map
May 22, 2014 at 1:28 pm #268572Hi codecreative!
Please add following code to a text widget inside one of footer columns in Appearance > Widgets
<ul class="noLightbox social_bookmarks icon_count_4"><li class="social_bookmarks_facebook av-social-link-facebook social_icon_1"><a href="#" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Facebook"><span class="avia_hidden_link_text">Facebook</span></a></li><li class="social_bookmarks_twitter av-social-link-twitter social_icon_2"><a target="_blank" href="http://twitter.com/#/" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Twitter"><span class="avia_hidden_link_text">Twitter</span></a></li><li class="social_bookmarks_instagram av-social-link-instagram social_icon_3"><a href="#" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Instagram"><span class="avia_hidden_link_text">Instagram</span></a></li><li class="social_bookmarks_mail av-social-link-mail social_icon_4"><a href="#" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Mail"><span class="avia_hidden_link_text">Mail</span></a></li></ul>
Best regards,
YigitMay 22, 2014 at 1:57 pm #268590Hi Yigit
Thanks for replying so quickly this code snippet looks promising.
The code when used appears to be an issue with it working, they are invisible. Take look at them in footer column 1 at http://www.jasminesboutique.co.uk/
Please can you advise further
May 22, 2014 at 2:06 pm #268593Hey!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
#footer .social_bookmarks li { clear: none!important; }
Best regards,
YigitMay 22, 2014 at 2:12 pm #268600Great
They are now rendering. Is it possible to have them achieve the same layout as the 2 that are above?May 22, 2014 at 2:18 pm #268602Hi!
Please add following code to Quick CSS as well
#footer .av-social-link-facebook a { color: #fff !important; background-color: #37589b !important; } #footer .av-social-link-twitter a { color: #fff !important; background-color: #46d4fe !important; } #footer .av-social-link-instagram a { color: #fff !important; background-color: #a67658 !important; } #footer .av-social-link-mail a { color: #fff !important; background-color: #9fae37 !important; }
Cheers!
Yigit- This reply was modified 10 years, 7 months ago by Yigit.
May 22, 2014 at 5:13 pm #268674Hi Yigit
Thanks so much for the fast reply. This may be missing something as it is having no effect still, any chance you could help a bit more?
May 22, 2014 at 5:26 pm #268679May 22, 2014 at 5:30 pm #268684Hi Yigit
It’s okay I worked it out. Wrap all needed to be omited.
Okay I have a final question Kriesi is helping me with but I may get a quicker response from you as your online
I have been advised that in order for the homepage to display a different logo to the rest of the site, to use the following and add it to my child theme functions file
Contents of file is as follows (with no closing php tag), the site loads fine but this has no effect on the site logo, could you advise what may be missing? Do I need to make a funciton call somewhere from within an existing theme php file?
<?phpadd_filter(‘avf_logo’,’av_change_logo_url’);
function av_change_logo_url($url)
{
if( is_front_page() )
{
$url = “http://www.jasminesboutique.co.uk/wp-content/uploads/2014/05/logoWeb1.png”;
}return $url;
}May 22, 2014 at 6:22 pm #268713Hi!
Try with this code instead:
<?php add_filter(‘avf_logo’,’av_change_logo_url’); function av_change_logo_url($url) { if( is_home() ) { $url = “http://www.jasminesboutique.co.uk/wp-content/uploads/2014/05/logoWeb1.png”; } return $url; }
Regards,
JosueMay 22, 2014 at 6:30 pm #268718Hi Josue
Great thinking. I’ve noticed that is_home works in most situations whilst is front page fails, but on this occasion this amendment hasn’t helped. This code isn’t throwing any fatal erros as the site is still loading okay. But it is having no effect still :/
May 22, 2014 at 6:41 pm #268725Hi!
This will do it:
add_filter('avf_logo','av_change_logo_url'); function av_change_logo_url($url) { if( is_page(734) ) { $url = 'http://www.jasminesboutique.co.uk/wp-content/uploads/2014/05/logoWeb1.png'; } return $url; }
Change 734 by the ID of your homepage.
Cheers!
JosueMay 23, 2014 at 6:04 pm #269188Hi Josue
I’m sorry to be the voice of annoyance but this isn’t working either, I can provide ftp and wp admin access so you can verify im not going insane/stupid
May 23, 2014 at 7:58 pm #269226Hey!
Please do so, in a private reply.
Regards,
JosueMay 24, 2014 at 4:12 pm #269507This reply has been marked as private.May 24, 2014 at 10:51 pm #269570Hi!
Done:
http://www.jasminesboutique.co.uk/Seems the code only works if you have not set a logo here.
But i modified the code so it will show the other in non-home pages:
<?php function av_change_logo_url($url) { if(is_front_page()){ $url = "http://www.jasminesboutique.co.uk/wp-content/uploads/2014/05/logoWeb1.png"; }else{ $url = "http://www.jasminesboutique.co.uk/wp-content/uploads/2014/05/logoWebCIRCLE.png"; } return $url; } add_filter('avf_logo','av_change_logo_url', 100);
Cheers!
Josue -
AuthorPosts
- You must be logged in to reply to this topic.