Advertisement

The menu items appear throughout header at ipad.

Everything to do with Joomla! 5.x templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
liekecomp2022
Joomla! Intern
Joomla! Intern
Posts: 82
Joined: Mon Aug 29, 2022 10:37 am

The menu items appear throughout header at ipad.

Post by liekecomp2022 » Thu Dec 12, 2024 11:50 am

The menu at https://ontwikkel16.comp-it-aut.nl/ appears throughout the header.
At android it works fine.

How can I fix this in Joomla 5 with SP page builder 3.8.10?
Last edited by pe7er on Thu Dec 12, 2024 12:05 pm, edited 1 time in total.
Reason: Moved to English forum. Please only post in Dutch in the Dutch forum

Advertisement
liekecomp2022
Joomla! Intern
Joomla! Intern
Posts: 82
Joined: Mon Aug 29, 2022 10:37 am

Re: The menu items appear throughout header at ipad.

Post by liekecomp2022 » Thu Dec 12, 2024 12:14 pm

I have for now changed the module of the header with two blank lines above the picture.
See https://ontwikkel16.comp-it-aut.nl/

The menu items fit now, however the white space between the menu items and the header is too big now.

What is the best way to solve this?
Put the header picture at the Welkom page with SP Page builder? How can the picture be full screen width?

User avatar
Pavel-ww
Joomla! Ace
Joomla! Ace
Posts: 1792
Joined: Tue Jun 30, 2020 12:17 pm

Re: The menu items appear throughout header at ipad.

Post by Pavel-ww » Fri Dec 13, 2024 8:05 am

liekecomp2022 wrote: Thu Dec 12, 2024 12:14 pm I have for now changed the module of the header with two blank lines above the picture.
Hi.

This is not the right decision. To solve the problem, you need to determine the reason and fix it, but not create crutches.

In this case, it does not matter iPad or Android. This is not the right way of testing. Use the responsive mode in the your browser Dev Tools, reducing the screen width. And then you will completely see the reasons of the problem on screens of any width.


Sp Page Builder is not related to this. This applies to the template. The fact is that Header has a fixed height 150px. The menu is located inside the Header, but contains too many items that do not fit when the screen width is reduced and jumped to another line outside the height of the header.

Never use empty p tags and any tags at all (two blank lines above the picture) to solve layout problems. Remove them. Always use only CSS

Code: Select all

#sp-header {
	height: auto;
}
.sp-megamenu-parent > li > a, .sp-megamenu-parent > li > span {
	line-height: 50px;
}
liekecomp2022 wrote: Thu Dec 12, 2024 12:14 pm How can the picture be full screen width?
Delete this harmful code. Never use common selectors. This affects (in this case) on all images on the site. Use unique selectors to configure only the desired element.
2.jpg
--

After applying the recommendations, it will look like this
3.jpg
To configure the desired menu height, use your own value in the line-height property

Code: Select all

.sp-megamenu-parent > li > a, .sp-megamenu-parent > li > span {
	line-height: YOUR_VALUE;
}
You do not have the required permissions to view the files attached to this post.

liekecomp2022
Joomla! Intern
Joomla! Intern
Posts: 82
Joined: Mon Aug 29, 2022 10:37 am

Re: The menu items appear throughout header at ipad.

Post by liekecomp2022 » Mon Dec 16, 2024 11:16 am

I have done it.
How can I get the header at welcome scaled al every device?
Now it does not fit correctly so the picture is visible as a whole.
See https://ontwikkel16.comp-it-aut.nl/

liekecomp2022
Joomla! Intern
Joomla! Intern
Posts: 82
Joined: Mon Aug 29, 2022 10:37 am

Re: The menu items appear throughout header at ipad.

Post by liekecomp2022 » Mon Dec 16, 2024 4:29 pm

What is the best way to get a good header at the website?
Make a sytem module and place it at the position content-top at the welcome page?
Or
Place the header image at the top of the welcome page using sp page builder?
And what do you use? The text item or the image item or?
And what should the width and the height be when the image should be page width?

User avatar
Pavel-ww
Joomla! Ace
Joomla! Ace
Posts: 1792
Joined: Tue Jun 30, 2020 12:17 pm

Re: The menu items appear throughout header at ipad.

Post by Pavel-ww » Tue Dec 17, 2024 7:11 am

liekecomp2022 wrote: Mon Dec 16, 2024 11:16 am How can I get the header at welcome scaled al every device?
Hi.

Remove paddings from the section settings and use CSS

Code: Select all

#section-id-1734346422632 {
	aspect-ratio: 1284/384;
}
aspect-ratio value = image proportions
1.jpg
liekecomp2022 wrote: Mon Dec 16, 2024 4:29 pm What is the best way to get a good header at the website?
The only way to always do everything as you want is to increase your HTML/CSS skills. Even if you work in SPPB, these skills will help you use the correct settings.

And also come to an understanding of the behavior of elements. For example, understand the difference between <img> and a background image.

Any of the methods you listed can be decisive depending on the situation and your skills
You do not have the required permissions to view the files attached to this post.

Advertisement

Post Reply

Return to “Templates for Joomla! 5.x”