Tagged: logo
-
AuthorPosts
-
April 10, 2015 at 3:53 am #426290
Hello,
I am trying to show a dark version of the logo on mobile devices and blog page. I tried adding it with CSS but it didn’t work. Now it shows both the white and black logo on mobile device.
Thanks
April 10, 2015 at 3:54 am #426291This reply has been marked as private.April 10, 2015 at 4:20 am #426295Hey!
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!
YigitApril 10, 2015 at 9:43 am #426434This reply has been marked as private.April 10, 2015 at 1:43 pm #426563Hey!
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!
YigitApril 10, 2015 at 9:32 pm #426796This reply has been marked as private.April 12, 2015 at 1:23 am #427102it worked! thanks
April 13, 2015 at 7:08 am #427317How can i show the same dark logo on all the blog posts as well?
Thanks
April 13, 2015 at 6:06 pm #427672Hey!
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!
YigitMay 15, 2015 at 1:12 am #444693Hello,
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
May 15, 2015 at 1:45 am #444699Hi!
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,
YigitMay 15, 2015 at 6:40 am #444768Thanks but its not working :(
May 15, 2015 at 8:02 pm #445133Hi!
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,
YigitMay 17, 2015 at 5:10 am #445337Thanks. where do i post the hompage link?
May 18, 2015 at 7:25 pm #445974Hi!
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,
YigitMay 19, 2015 at 9:07 am #446253still not working sorry.
May 19, 2015 at 4:38 pm #446531Hi!
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,
YigitMay 23, 2015 at 3:05 am #448832This reply has been marked as private.May 23, 2015 at 7:57 am #448988Hey!
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 -
AuthorPosts
- You must be logged in to reply to this topic.