Page 1 of 1

Move search to top bar

Posted: Sat Jun 18, 2022 10:16 am
by geeing1964
Hi Everyone,
Apologies, me again.. the man who doesn't know much.... :D

Is it possible to move the existing search option up to the top of the page, next to shopping cart icon ?
This would save me a lot of screen space.

Hope this makes sense
Cheers
G.

Re: Move search to top bar

Posted: Sat Jun 18, 2022 10:23 am
by heatherbell
geeing1964 wrote: Sat Jun 18, 2022 10:16 ammove the existing search option up to the top of the page, next to shopping cart icon ?
There is a separate addon for that, available in the Addons Library here - app.php/addons/supporters_code/s04e07_navbar_search/

Re: Move search to top bar

Posted: Sat Jul 02, 2022 10:52 am
by heatherbell
geeing1964 wrote: Sat Jun 18, 2022 10:16 am Is it possible to move the existing search option up to the top of the page, next to shopping cart icon ?
This would save me a lot of screen space.
On your website you already have Search in right side column.
So, if I wanted to save screen space, I would therefore remove Search and Logo modules from Header and move Logo to Brand in the Navbar.
Logo can be moved to Navbar Brand by editing the define for the language constant MODULE_NAVBAR_BRAND_PUBLIC_TEXT in it's language file.
https://github.com/CE-PhoenixCart/Phoen ... _brand.php
Change

Code: Select all

define('MODULE_NAVBAR_BRAND_PUBLIC_TEXT', STORE_NAME);
to

Code: Select all

define('MODULE_NAVBAR_BRAND_PUBLIC_TEXT', new Image('images/' . STORE_LOGO, [], htmlspecialchars(STORE_NAME)));

Re: Move search to top bar

Posted: Wed Jul 13, 2022 10:01 am
by geeing1964
Just looking at this now. So I've managed to get the logo on Navbar but can't find what the search module is, anyone help?
I've tried a billion different things and I have a lot of backups now :D

Re: Move search to top bar

Posted: Wed Jul 13, 2022 10:07 am
by heatherbell
geeing1964 wrote: Wed Jul 13, 2022 10:01 am Just looking at this now. So I've managed to get the logo on Navbar but can't find what the search module is, anyone help?
I've tried a billion different things and I have a lot of backups now :D
You question is too vague so left guessing what you need help with.
Possibly
heatherbell wrote: Sat Jul 02, 2022 10:52 am On your website you already have Search in right side column.
The Search in Navbar addon is only available to PRO subscribers.

Re: Move search to top bar

Posted: Wed Jul 13, 2022 10:11 am
by geeing1964
Morning, apologies. I originally had two search options, one within Content/Header, the other, in the right side column.
I've removed the one from content/header .

I'm pretty happy to go with the right side column one... I've got more screen space now.

Thanks for your very quick support... love it