Header Size

Posted in: Newspaper
Post count: 6

Hi there,

I’m using header style 10 and wondered if you could provide me with the CSS code to increase the header size please? I don’t want to increase the height of the menu or the top menu just the section with the logo.

Thanks very much,
Sami 🙂

Post count: 23312

Hello Sami,

Please notice that Header Style 10 uses the logo in full-width and this thing means that will be displayed the full size of your logo. If you want to fit the entire space destinated for the logo, you have to load a bigger logo.

Thanks for your understanding!

Post count: 6

Hi Catalin,

Thanks for getting back to me so quickly however I don’t think I explained myself clearly.

I’m happy with the size of the logo but I have added an image behind it as a background, I want to increase the height size of the space behind the logo to show more of my header background image.

Hope this is clear and hope you can provide me with some CSS for this.

Thanks very much,
Sami

Post count: 10

Why is the header logo not responsive?

Post count: 23312

Hello,


@Sami
, as a quick fix, you can try using a bit of CSS code to increase the height of your logo. Use the code below and place it in Theme panel->Custom CSS area.

The code is ->

.td-main-logo img{
height: 218px;
}

Please notice that property has the height: auto and if you will use another logo with a big height than this one, the theme will display the logo with the real height of the image.


@ChaotiX66
, provide your website URL and also, some details about your header logo so I can understand what and where is the problem.

Thanks for your understanding!

Post count: 10

Could your please head over to thegadgetsite.com

On desktop, I want the logo to stretch all the way on both sides, not leave a gap as on higher resolutions.

On mobile, I wish the logo would go edge to edge with the top and bottom of the header bar. Now it’s a tiny gap.
Also on mobile, would it be possible to have the logo dead to the left and hamburger menu to the right?

Thanks!

Post count: 20688

Hi,

The header style you are using does not have a limit for the logo image. If you would like it to cover all the space, simply upload a bigger logo image. Your current logo is like this
https://www.screencast.com/t/LHnIWzzEipl
And the logo container for me is bigger
https://www.screencast.com/t/lfn4hZooD
The logo image will not get stretched to fit, you have to use a bigger one. On bigger devices there will be an empty space if the image is smaller.
On mobile you can try a code like the one below for what you want to achieve. It will remove the gap you mention, align the logo to the left and move the menu toggle to the right
https://www.screencast.com/t/dx0y4Glys8zh

.td-main-menu-logo img {
max-height:54px;
margin-left:0;
}
#td-top-mobile-toggle {
float:right;
}

This code must be entered in the Theme panel->Advanced CSS in the phones section. Please let me know if I misunderstood something, and I will make adjustments.

Thanks

Post count: 10

Dear Simion,

Thank you for your reply.
I uploaded a wider logo to my site. Now it looks perfect.

As for mobile, the custom css looks great! However, I was wondering if the hamburger menu and search button could switch places?
Also, when I press the hamburger menu, could it also sweep in from the right as the search option does?

Great many thanks!

Sincerely,

Miguel

Post count: 20688

Hi,

This code should make the menu and the search switch places on mobile
https://www.screencast.com/t/DDTZrciLY

#td-top-mobile-toggle {
position: absolute;
right: 0;
}
#td-top-search {
right: 54px;
}

Enter the code in the same phones section of the Advanced Css.
To change the way the mobile modal is functioning may not be so easy. This is where the feature is defined in the theme, in the theme stylesheet
https://www.screencast.com/t/aOkd1fUq
Try changing the translate values and see if it works properly. There may be other values and elements that would require modifications to make it work.

Thanks

Post count: 10

Perfect! Thanks a lot!

Post count: 13

Hey ! What if i want to remove the search button of the mobile theme

Post count: 20688

Hi,

If you are using the mobile theme plugin, the easiest way would be to try a code like this in order to remove the search from the header
https://www.screencast.com/t/5WCpIZUc

.td-search-icon {
display:none;
}

Enter the code in the Theme panel->Mobile theme->Custom Css.

Thanks

Post count: 10

Hello!

Is it okay to continue with a question here?

See, I was thinking that I want to have the logo stretch all the way up to the search button on mobile. Right now, the image is resized to 152x54px by the theme. Is there a way to make it go stretch all the way to the search button or will it look unnatural?

Thanks,

Miguel

Post count: 20688

Hi,

If you want the logo like that it would require to change the height of the logo image, as well as the whole header probably. Simply stretching the current logo image will not produce the best results.
You can use the browser inspector to identify the elements and classes used, and create custom code for modifying the logo, if it is absolutely necesarry
https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/

Thanks

Viewing 14 posts - 1 through 14 (of 14 total)
The forum ‘Newspaper’ is closed to new topics and replies.