- This topic has 25 replies, 3 voices, and was last updated 8 years, 9 months ago by Pratik.
-
AuthorPosts
-
February 12, 2016 at 8:32 pm #85283riccrom123Member
Hi thank you for this beautiful theme! I would like to know how to remove the header-content above the header-image and put the logo centered over the header-image.
February 13, 2016 at 7:21 am #85313PratikParticipantFebruary 13, 2016 at 1:22 pm #85322riccrom123Memberthank you for your quick reply
http://fabricfoto.it/testcatchevolutionFebruary 13, 2016 at 5:38 pm #85331margaParticipantFebruary 13, 2016 at 7:38 pm #85344PratikParticipantHi @riccrom123,
I cannot see a logo currently in your site. Please add it and let me know. Then I will provide you with CSS code.
———————————————————————————
Hi @marga,
Do you want to remove gap in header content and center the logo a well? For that, you can add following CSS code in Appearance=> Customize=> Theme Options => Custom CSS box:/* Remove Header content top gap */ #header-content { padding-top: 0; } /* To center logo */ #site-logo { margin: 0 auto; width: 100%; }
Let me know how it works out.
Regards,
PratikFebruary 13, 2016 at 8:00 pm #85346margaParticipantGreat thanks Pratik,
this works,
now I also would like to center the text underneath the logo as well
greetings
margaFebruary 14, 2016 at 2:42 am #85367riccrom123MemberFebruary 14, 2016 at 2:45 am #85368riccrom123MemberFebruary 14, 2016 at 2:48 am #85369riccrom123MemberI try again
<///div id=”site-logo” class=”clear”><///a href=”http://www.fabricfoto.it/” title=”Proravera”></div>
February 14, 2016 at 2:49 am #85370riccrom123Member<***div id=”site-logo” class=”clear”><***a href=”http://www.fabricfoto.it/” title=”Proravera”><***img src=”http://www.fabricfoto.it/wp-content/uploads/2016/02/logo_292x190.png” alt=”Proravera”></div>
February 14, 2016 at 9:26 am #85384PratikParticipantHi @marga,
You can add following CSS to center the Site Title:#site-details { text-align: center; width: 100%; }
———————————————————————————-
Hi @riccrom123,
The logo is not showing due to Plugins conflict. It is strange but the plugins are adding CSS to .clear class. Please deactivate another-wordpress-classifieds-plugin and Simple Shortcodes plugin, then the logo will be visible. Then I will be able to help you with custom CSS.
Regards,
PratilkFebruary 14, 2016 at 1:20 pm #85394riccrom123MemberHi Pratik
I just deactivated simple shortcodes plugin and now the logo is shown.. Tell me if must to deactivate also the other pluginFebruary 14, 2016 at 1:32 pm #85395PratikParticipantHi @riccrom123,
No need to deactivate another plugin. Now, to remove gap in header content and center the logo, you can add following CSS code in Appearance=> Customize=> Theme Options => Custom CSS box:/* Remove Header content top gap */ #header-content { padding-top: 0; } /* To center logo */ #logo-wrap { text-align: center; width: 100%; } #site-logo, #site-details { float: none; }
Let me know how it goes.
Regards,
PratikFebruary 14, 2016 at 2:31 pm #85396riccrom123MemberThank you Pratik in the next step I would like to put the logo centered in the header-image. Sorry but my english is not so good so I explained it bad..
February 14, 2016 at 3:45 pm #85400margaParticipantThanks, Pratik this works…
greetings Marga
February 14, 2016 at 10:54 pm #85417riccrom123MemberIn other words i would like to move the div header-content inside the div header-image or contrary.
February 15, 2016 at 9:32 am #85446PratikParticipantHi @marga,
Glad everything worked out. If you liked our theme and support, please leave us your valuable review at here.
——————————————————————————————————————————————————————–
Hi @riccrom123,I do not understand what you mean because if you move header-content inside header-image, there will be no difference. I think you the header image to be the background of your logo. It that is the case, you first need to add following CSS code in Appearance=> Customize=> Theme Options => Custom CSS box:
#header-content { background-image: url("http://www.fabricfoto.it/wp-content/uploads/2016/02/testata_1600x230.png"); background-size: cover; }
Then remove the header image by going to Appearance=> Customize=> Header Image and Clicking on Hide Image.
Maybe you will want to hide the Site Title from there too. To do that, go to Appearance=> Customize=> Site Identity and uncheck “Display Header Text” option.
This should solve the issue as you want. If not, please let me know and I will assist you further.
Regards,
PratikFebruary 15, 2016 at 3:04 pm #85475riccrom123Membervery well pratik! Now, if I’m not asking too much, I would like to see the full background at every resolution. Also the logo have to resize to mantain the correct proportion
For the background I tried with this code but doesn’t work together with the logo:#header-content { width: 100%; height: 100%; top: 0; left: 0; background: url("http://www.fabricfoto.it/wp-content/uploads/2016/02/testata_1600x230.png") no-repeat; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }
maybe I solve designing the logo in the background…
February 15, 2016 at 3:13 pm #85476riccrom123MemberIf I think better I don’t need the logo to resize.
February 15, 2016 at 4:18 pm #85484PratikParticipantHi @riccron123,
There are two ways to achieve what you want, both a bit different. I will provide you css for both:
1. Following code will resize the image with respect to screen. Will not maintain the aspect ratio:#header-content { background: rgba(0, 0, 0, 0) url("http://www.fabricfoto.it/wp-content/uploads/2016/02/testata_1600x230.png") repeat scroll 0 0 / 100% 100%; }
2. Following code will show full image and maintain the aspect ratio but will show gaps when the image cannot cover (because it will maintain the aspect ratio):
#header-content { background-image: url("http://www.fabricfoto.it/wp-content/uploads/2016/02/testata_1600x230.png"); background-position: center center; background-repeat: no-repeat; background-size: contain; }
Let me know which one works out for you.
Regards,
Pratik -
AuthorPosts
- The topic ‘Logo centered over the header image’ is closed to new replies.