- This topic has 27 replies, 3 voices, and was last updated 4 years, 6 months ago by David.
-
AuthorPosts
-
October 1, 2019 at 9:14 am #1023532DavidStaffCustomer Support
Glad we could be of help.
October 2, 2019 at 11:09 am #1024550GaryGuys,
Back again.
The Header, off-canvas side panel and menu are working great, here: https://nationalhomeimprovements.co.uk/I created a second header just for Posts and the off-canvas side panel and menu are not facilitated. The menu options are, dropdown menu with a Hamburger icon Toggle Button – not the off-canvas sidebar.
I tried the Customiser but couldn’t find a way to get it.I want the same off-canvas sidebar on posts with the new posts header if possible, here: https://nationalhomeimprovements.co.uk/kitchen-design
Any help and direction is very much appreciated, thanks.October 2, 2019 at 7:03 pm #1024827TomLead DeveloperLead DeveloperHi there,
It looks like the menu on that page is built using Elementor. If you want to use the GP off canvas panel, you need to use the GP menu.
Let me know if you need more info 🙂
October 3, 2019 at 5:37 am #1025157GaryHi Guys,
I binned the Elementor header and created a Hero template in GP Elements.
The off-canvas sidebar and menu are working now on Posts.
The only way I can find to remove the Site Title and Tag Line is to use this snippet on each post:.single-post .site-branding {
display: none;
}It works but is there another way within the design of the Header, in Hero?
Also, the Site Logo is bigger than I want it to be on Posts as is the Header. How can I adjust this?Post with Hero and snippet: https://nationalhomeimprovements.co.uk/kitchen-design/
Post with Hero NO snippet: https://nationalhomeimprovements.co.uk/dining-sets-dining-room-furniture/
Thanks for you help.October 3, 2019 at 7:28 pm #1025787TomLead DeveloperLead DeveloperWhat if you do this?:
add_filter( 'generate_header_items_order', function( $items ) { if ( is_single() ) { unset( $items['site-branding'] ); } return $items; } );
October 3, 2019 at 8:08 pm #1025799GaryHi Tom, thanks.
In the the customiser I get, too many errors. I ran it through the Autoprefixer and got an error there too:CssSyntaxError: <css input>:1:1: Unknown word
> 1 | add_filter( ‘generate_header_items_order’, function( $items ) {
| ^
2 | if ( is_single() ) {
3 | unset( $items[‘site-branding’] );October 4, 2019 at 3:25 am #1025975DavidStaffCustomer SupportHi there,
that code Tom provided is PHP – this article covers how to add:
October 4, 2019 at 4:36 am #1026039GaryHi David, Thanks.
I added it with the Code Snippet plugin.
I’m not sure where to go to be able to adjust the header size (in Posts).
I tried back in Hero and I can make it bigger but not smaller. Smaller is what I want.
In customiser, there’s no effect.
Very possibly I’m looking in the wrong place!!
Anywhere else to look or try??
Thank you for your help.October 4, 2019 at 5:21 am #1026066DavidStaffCustomer SupportDo you want to reduce the logo size or the padding around the header ( or both )?
October 4, 2019 at 7:37 am #1026116GaryHi David,
Both.
On all Posts only.
I want to reduce the logo size.
I want to reduce the padding around the site header.
Keep the navigation hamburger and social icons in place.
Thanks for your help.October 4, 2019 at 7:47 am #1026121DavidStaffCustomer SupportGive this a shot:
.single-post .inside-header { padding-top: 10px; padding-bottom: 10px; } .single-post .site-logo img { width: 50px; height: auto; } .single-post .main-navigation .main-nav ul li.slideout-toggle a { line-height: 50px !important; }
October 4, 2019 at 8:02 am #1026241GaryThat did it – thank you.
October 4, 2019 at 8:10 am #1026250DavidStaffCustomer SupportYou’re welcome
-
AuthorPosts
- You must be logged in to reply to this topic.