# Use Different Image Logo For Mobile

**URL:** <https://community.hivepress.io/t/use-different-image-logo-for-mobile/1527>\
**Category:** ExpertHive\
**Tags:** experthive\
**Created:** [August 28, 2022, 12:30am UTC](https://community.hivepress.io/t/use-different-image-logo-for-mobile/1527 "2022-08-28T00:30:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rudy](https://community.hivepress.io/letter_avatar_proxy/v4/letter/r/5fc32e/32.png) [@rudy](https://community.hivepress.io/u/rudy)\
**Post date:** [August 28, 2022, 12:30am UTC](https://community.hivepress.io/t/use-different-image-logo-for-mobile/1527/1 "2022-08-28T00:30:31Z")

</div>

Hello, some popular themes have an option to chose a different logo for mobile.

I am using Experthive, and since there is not a pre-built option on theme to achieve this, let`s say I have 2 images:

**main-logo.png**

_ **mobile-logo.png** _

Is there a css code that we can use to show a different logo for mobile only? for example, _ **mobile-logo.png** _ only for mobile, and **main-logo.png** for desktop/tablet size?

Thank you

---

<div class="post-metadata">

**Author:** ![yevhen](https://community.hivepress.io/user_avatar/community.hivepress.io/yevhen/32/23_2.png) [@yevhen](https://community.hivepress.io/u/yevhen)\
**Post date:** [August 28, 2022, 10:24pm UTC](https://community.hivepress.io/t/use-different-image-logo-for-mobile/1527/4 "2022-08-28T22:24:52Z")

</div>

Please try this CSS snippet but please note that it can require further customization

```auto
@media screen and (max-width: 47.99em){
	.header-logo img{
		opacity: 0;
	}
	
	.header-logo{
		background-image: url('mobile-image-url-here');
		background-repeat: no-repeat;
		background-size: cover;
	}
}

```

---

<div class="post-metadata">

**Author:** ![rudy](https://community.hivepress.io/letter_avatar_proxy/v4/letter/r/5fc32e/32.png) [@rudy](https://community.hivepress.io/u/rudy)\
**Post date:** [August 28, 2022, 11:05pm UTC](https://community.hivepress.io/t/use-different-image-logo-for-mobile/1527/5 "2022-08-28T23:05:41Z")

</div>

It worked perfectly @yevhen thank you!

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [September 27, 2022, 11:05pm UTC](https://community.hivepress.io/t/use-different-image-logo-for-mobile/1527/6 "2022-09-27T23:05:59Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
