1. Pappy
  2. Sherlock Holmes
  3. Commercial Templates
  4. Friday, 26 January 2024
  5.  Subscribe via email
I am reworking a site to migrate to j4 and am using the Emani template.

All working pretty well except the logo and the menu are not centering on the page. I have tried several things and no luck.

Also, after adding space at the top of the page, the "back to top" link is not going to the very top.

Thanks,
Pappy
References
  1. https://www.varianarabians.com/home-test.html
Accepted Answer Pending Moderation
0
Votes
Undo
Looking at the Emani demo, the menu is not working correctly either. It is running off the page on my Ipad and makes the page extend off the viewport.
Thought I had a margin or flex error, which is why I posted, but it looks like it is in the template?

Finding other errors too,

Any help?
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Pappy

It seems that some sub menu items render outside the viewport hence the scroll bar. Have you considered increasing the viewport width in the General -> Responsive Options -> Mobile Menu Breakpoint option of your template style settings. This will allow tablet devices to display the mobile menu which is better suited for touch devices.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
The menu is part of the design, like your demo, on the same devices.

I've removed images from my dropdown menus and reworked the css for the container_header which seems to have fixed part of the problem.

The logo and hornav are still not centering on the page.

Thanks,
Pappy
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Forgot to add that the social section is included also, but removing it makes no difference. It is still not centering on the page.
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Pappy

Presuming I understand you correctly, to amend try adding the following to the Custom CSS field of your templates parameters (Extensions -> Templates -> [YourTemplateStyle] -> Custom CSS)....

.header_main {
margin-right: 290px;
}


Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
I was looking at the header_main, but like your fix, it just moves the menu. It only looks good at one size.

Reduce the width of the window and it runs off the left now.

It is not centering over the content.

Mark
  1. more than a month ago
  2. Commercial Templates
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Mark

Maybe try something like this. You may need to edit this slightly...

#header_main {
width: 1400px;
}
.hornav {
margin-right: 90px;
}
#socialmedia {
right: 80px;
}


You may also need to increase the breakpoint width.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 7
Accepted Answer Pending Moderation
0
Votes
Undo
Still not right and it does not seem correct to make an element larger than the template width.

It looks "okay" using computer and Chrome/Firefox/Safari, but the layout is messed up on Ipad using Chrome (Firefox and Safari play nicer).
I"ve tweaked as much as I can, with no luck, so I put a bg color behind Logo and Hornav.

The graphic, taken from Ipad using Chrome, shows the logo spacing is overlapping the hornav. Also the template is not filling width of the screen.
The Flex code for the logo seems to be the issue.

This is what is causing everything to move right and guessing the issue with Chrome.
Attachments (1)
  1. more than a month ago
  2. Commercial Templates
  3. # 8
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

A bit of a shot in the dark this but those adding the following help?...

.outside_header {
overflow: hidden;
}


Does increasing the mobile breakpoint even further resolve the issue in any way?

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 9
Accepted Answer Pending Moderation
0
Votes
Undo
adding .outside_header css makes the social icons disappear.

I don’t want the mobile break point higher. There is enough room on the page for the logo, menu and social icons.

Is there a way to replace the Flex menu? A lot of people use Chrome and Ipads.
  1. more than a month ago
  2. Commercial Templates
  3. # 10
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Pappy

May I suggest sending temporary administration access to your Joomla installation to info@joomla51.com and we will examine this issue further. For our reference please paste a link to this post in your email.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 11
Accepted Answer Pending Moderation
0
Votes
Undo
I sent email with info on the 17th.

Here is a screen capture of your demo using Ipad/Chrome. The menu runs off the page too, but your computer/responsive image in the page looks fine...
Attachments (1)
  1. more than a month ago
  2. Commercial Templates
  3. # 12
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

Thank you for reporting the issue on the template demo. I have increased the breakpoint for the mobile menu.

Following is a screenshot from your site at 1120px. As you can see, there is not enough room to accommodate both the logo, icons and menu and this width. Would you like me to provide CSS to make the desktop version of the menu take up less room?

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 13
Accepted Answer Pending Moderation
0
Votes
Undo
You did not post the screenshot.

The desktop version looks fine in all browsers.

The logo, menu and icons have plenty of room on Ipad using Firefox and Safari - Landscape view

The issue is with Chrome and Ipad.
  1. more than a month ago
  2. Commercial Templates
  3. # 14
Accepted Answer Pending Moderation
0
Votes
Undo
My apologies

Please find attached the screenshot as we see it...

Screenshot 2024-02-20 223015.jpg

Ciaran
Attachments (1)
  1. more than a month ago
  2. Commercial Templates
  3. # 15
Accepted Answer Pending Moderation
0
Votes
Undo
I had the template width set to 1140 and you suggested making the header_main css 1400px wide.
Are we countering the responsive?

When I have the ipad portrait, the mobile menu shows correctly, turn Ipad landscape and hornav menu appears. Like it should.

When I have the ipad landscape, the hornav shows, turn the Ipad portrait and the hornav is still shown. You have to refresh the page to show the mobile menu.
The template or header is not responsive?

During development, I tried several ways to reduce menu space. Don’t know if it is flex related, but letter-spacing doesn’t make any difference.

Please provide some css to reduce space if possible?
  1. more than a month ago
  2. Commercial Templates
  3. # 16
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

To amend try adding the following to the Custom CSS field of your templates parameters (Extensions -> Templates -> [YourTemplateStyle] -> Custom CSS)....

.hornav ul.menu > li {
margin-inline: 8px;
}
.hornav > ul > li::before {
right: -10px;
top: 13px;
}


Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 17
Accepted Answer Pending Moderation
0
Votes
Undo
I figured out the issue with the webpage not filling the window using chrome and Ipad.
Chrome is displaying the “mobile” version, which threw me off as it is showing the hornav menu.
The layout is correct and logo, menu and social all fit in the template area.

Click the 3 dots in Chrome to request “desktop” view. It fills screen and looks correct.
View port issue?
  1. more than a month ago
  2. Commercial Templates
  3. # 18
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok