Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #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 RSS

    I 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

    #268572

    Hi 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,
    Yigit

    #268590

    Hi 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

    #268593

    Hey!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    #footer .social_bookmarks li {
    clear: none!important;
    }

    Best regards,
    Yigit

    #268600

    Great
    They are now rendering. Is it possible to have them achieve the same layout as the 2 that are above?

    #268602

    Hi!

    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.
    #268674

    Hi 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?

    #268679

    Hey!

    I have updated the code i posted, please try it now

    Cheers!
    Yigit

    #268684

    Hi 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?
    <?php

    add_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&#8221;;
    }

    return $url;
    }

    #268713

    Hi!

    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,
    Josue

    #268718

    Hi 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 :/

    #268725

    Hi!

    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!
    Josue

    #269188

    Hi 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

    #269226

    Hey!

    Please do so, in a private reply.

    Regards,
    Josue

    #269507
    This reply has been marked as private.
    #269570

    Hi!

    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

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