Tagged: 

Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #426290
    #426291
    This reply has been marked as private.
    #426295

    Hey!

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

    @media only screen and (max-width: 768px) {
    .logo a:nth-child(1) {
      display: none;
    }}

    Cheers!
    Yigit

    #426434
    This reply has been marked as private.
    #426563

    Hey!

    Please add following code to Functions.php file in Appearance > Editor and change image link

    
    function add_custom_blog_logo(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('.blog .logo img').attr('src','http://kriesi.at/wp-content/themes/kriesi/images/logo.png');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_blog_logo');

    Black logo is being displayed when i resize the browser window, so i guess the previous code i posted worked? :)

    Cheers!
    Yigit

    #426796
    This reply has been marked as private.
    #427102

    it worked! thanks

    #427317

    How can i show the same dark logo on all the blog posts as well?

    Thanks

    #427672

    Hey!

    Please change the code to following one

    function add_custom_blog_logo(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('.blog .logo img').attr('src','http://kriesi.at/wp-content/themes/kriesi/images/logo.png');
    jQuery('.single-post .logo img').attr('src','http://kriesi.at/wp-content/themes/kriesi/images/logo.png');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_blog_logo');

    Cheers!
    Yigit

    #444693

    Hello,

    How can i show this logo (http://hero.travel/wp-content/uploads/HeroHomeLogoWhite.png) only on the homepage, on desktop screen only? Keeping the grey logo on the mobile devices.

    Thanks

    #444699

    Hi!

    Please add following code to Functions.php file in Appearance > Editor

    add_filter('avf_logo','av_change_logo');
    function av_change_logo($logo)
    {
        if(is_home() || !wp_is_mobile() )
        {
        $logo = "http://hero.travel/wp-content/uploads/HeroHomeLogoWhite.png";
        }
        return $logo;
    }

    Best regards,
    Yigit

    #444768

    Thanks but its not working :(

    #445133

    Hi!

    Please add the code as following

    add_filter('avf_logo','av_change_logo');
    function av_change_logo($logo)
    {
        if(is_home() )
        {
        $logo = "http://hero.travel/wp-content/uploads/HeroHomeLogoWhite.png";
        }
        return $logo;
    }

    Then post the link to your homepage

    Regards,
    Yigit

    #445337

    Thanks. where do i post the hompage link?

    http://hero.travel/

    #445974

    Hi!

    please add following code to Functions.php file

    function add_custom_tooltip(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('.responsive .logo img').attr('src','your-mobile-image-link-here');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_tooltip');

    Best regards,
    Yigit

    #446253

    still not working sorry.

    #446531

    Hi!

    Do you mind creating a temporary admin login and posting it here privately? Please also post the link to the logo you would like to use.

    Regards,
    Yigit

    #448832
    This reply has been marked as private.
    #448988

    Hey!

    We don’t have enough permission to edit the functions.php file. You don’t need to wrap the code inside a script tag. Please replace this code:

    function add_custom_blog_logo(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('.blog .logo img').attr('src','http://hero.travel/wp-content/uploads/HeroHomeLogo.png');
    jQuery('.single-post .logo img').attr('src','http://hero.travel/wp-content/uploads/HeroHomeLogo.png');
    
    });
    </script>
    
    <script>
    add_filter('avf_logo','av_change_logo');
    function av_change_logo($logo)
    {
        if(is_home() )
        {
        $logo = "http://hero.travel/wp-content/uploads/HeroHomeLogoWhite.png";
        }
        return $logo;
    }
    </script>
    
    <?php
    }
    add_action('wp_footer', 'add_custom_blog_logo');
    

    With this:

    function add_custom_blog_logo(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('.blog .logo img').attr('src','http://hero.travel/wp-content/uploads/HeroHomeLogo.png');
    jQuery('.single-post .logo img').attr('src','http://hero.travel/wp-content/uploads/HeroHomeLogo.png');
    
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_blog_logo');
    
    add_filter('avf_logo','av_change_logo');
    function av_change_logo($logo)
    {
        if(is_page(2))
        {
        $logo = "http://hero.travel/wp-content/uploads/HeroHomeLogoWhite.png";
        }
        return $logo;
    }

    Best regards,
    Ismael

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