1. Fearon
  2. Sherlock Holmes
  3. Commercial Templates
  4. Friday, 03 November 2023
  5.  Subscribe via email
Hi Ciaran

Wondering if it is possible to integrate a search-box within the menu-bar?

This is an example of what I would like to do:
https://www.w3schools.com/howto/howto_css_input_navbar.asp

I've tried setting up the hornav as active and placing a module there, but it positions it above the menu -
https://www.mountpleasantlibrary.org/hayleyj4/index.php/mppl-menu/beta

Thanks
John
Accepted Answer Pending Moderation
0
Votes
Undo
Hi John

Have you tried converting your hornav menu to a module position (Template style settings -> General -> Menus) and adding both a menu module and search module to the hornav position?

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Good Morning Ciaran,

I did try that. The search-bar is positioned to the right and also above the menubar.

Here is how it looks:

https://www.mountpleasantlibrary.org/hayleyj4/index.php/mppl-menu/beta

John
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Sorry. To the left ...
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Hi John

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

.hornav {
display: flex;
flex-direction: row;
}
.hornav * {
width: auto;
}


Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
That got the search-bar in the horizontal menu - thanks!

https://www.mountpleasantlibrary.org/hayleyj4/index.php/mppl-menu/beta

Is it possible to add one more line to move it from left to right?

The search-box is a Custom module

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

To amend you can also add the following...

.hornav .menu {
order: -1;
}


Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you!
  1. more than a month ago
  2. Commercial Templates
  3. # 7
Accepted Answer Pending Moderation
0
Votes
Undo
Ciaran

I've come across a slight quirk and am wondering if there is an easy fix.

I might want to hide the search-bar on phones and run a separate module.

When I put in the code to hide it - d-none d-sm-block - it did not work when the module was set in the hornav location. When I moved the module to a different location - top-1a - it did work and the module was not visible on a phone.

Any ideas please?

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

Would you have a URL to an example of your module in the hornav location?

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 9
Accepted Answer Pending Moderation
0
Votes
Undo
Here it is Ciaran

http://www.mountpleasantlibrary.org/hayleyj4/index.php/mppl-menu/beta

While you are looking at that, also wondering if there is a way to control how much of the viewport the imageslider module takes up. Ideally we would like it to be big enough to have an effect, but not so big that it takes up the entire screen.

Thanks
John
  1. more than a month ago
  2. Commercial Templates
  3. # 10
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciaran

Have you had a chance to look at this?

If neither is an option it’s not a problem but would be helpful to know

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

It seems that the hornav position, as intended for menu modules, does not render the module class. A possible working might be to use the header-2 module position. You can position this over the hornav area with the following custom CSS...

.header_top {
background-color: transparent;
position: absolute;
bottom: 0;
}


For the LayerSlideshow height, does amending the General Settings -> Max Height setting in your module settings give you the desired result?

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 12
Accepted Answer Pending Moderation
0
Votes
Undo
Great looking site John. Would suggest for accessibility the contrast be improved on your search area.
  1. more than a month ago
  2. Commercial Templates
  3. # 13
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks Alison. To be honest it is still a work-in-progress and I'm afraid I'm probably not done asking Ciaran questions on that search-bar!
  1. more than a month ago
  2. Commercial Templates
  3. # 14
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks Ciaran. That makes sense. And yes, we can get where we want to be with the internal Max Height control.
  1. more than a month ago
  2. Commercial Templates
  3. # 15
Accepted Answer Pending Moderation
0
Votes
Undo
Good luck John and it's looking great.
  1. more than a month ago
  2. Commercial Templates
  3. # 16
  • 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