- This topic has 7 replies, 3 voices, and was last updated 3 years, 6 months ago by David.
-
AuthorPosts
-
September 28, 2020 at 9:20 pm #1463087Mary Pearson
I am updating an old website at https://tooleyspainting.com/
I am using HTML5 Video Player for the header since it auto plays.
(Note: I have been unable to create a header element because the Primary Nav bar goes above the video even though I choose below header, so I am using a hook instead.)
The problems I’m having are as follows:
1. When the video loads, it loads a really big image for a split second before going to correct size.
2. Video has light grey borders which I would like removed
3. Video touches the top of the secondary nav menu. I would like to move it down so there are borders top and bottom.Would appreciate any help.
Many thanks!September 29, 2020 at 2:26 am #1463367DavidStaffCustomer SupportHi there,
can’t see how we can control the loading of the image.
You can use the Header Element to move the Nav Below it you would need to:1. Set the Navigation location to Below Header.
2. add this PHP Snippet:add_action( 'after_setup_theme','craig_move_navigation' ); function craig_move_navigation() { remove_action( 'generate_after_header', 'generate_add_navigation_after_header', 5 ); add_action( 'generate_after_header', 'generate_add_navigation_after_header', 15 ); }
September 29, 2020 at 6:41 am #1463717Mary PearsonThank you David. Do you know how I can remove the borders or move the video down?
September 29, 2020 at 3:38 pm #1464493TomLead DeveloperLead DeveloperAre we sure the borders aren’t a part of the video? I’m not seeing any CSS for them.
To move it down, try this:
.secondary-navigation { margin-bottom: 10px; }
September 29, 2020 at 4:07 pm #1464510Mary PearsonThanks for your help Tom and David. I have contacted HTML5 Video Plugin support but have not heard back. Since it is probably their issue I will consider this topic closed on this forum but am just curious.
Can you tell me please why I was unable to use the Header Element “out of the box”? I don’t mind adding the snippet but just wondering why. I thought it might be a plugin conflict so I deactivated everything but it didn’t make a difference. I have never had this problem before.
Many thanks!
September 30, 2020 at 1:03 am #1464822DavidStaffCustomer SupportThats the expected behaviour of the Header Element. The ordering of Elements are like so:
Site Header
After Header (priority 5 ) -> Primary Navigation
After Header (priority 10 ) -> Header ElementSo it always has required a little bit of code to move the Navigation below it.
September 30, 2020 at 7:27 am #1465292Mary PearsonAhhh, thank you for the explanation. Much appreciated!
September 30, 2020 at 7:49 am #1465481DavidStaffCustomer SupportYou’re welcome
-
AuthorPosts
- You must be logged in to reply to this topic.