Move search to top bar

Ask the community for help and support.
Post Reply
geeing1964
Posts: 22
Joined: Sat Jun 18, 2022 8:12 am
Has thanked: 4 times
Been thanked: 1 time

Move search to top bar

Post 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.
heatherbell
VIP Member
VIP Member
Posts: 1996
Joined: Mon Oct 07, 2019 4:39 am
Has thanked: 26 times
Been thanked: 175 times

Re: Move search to top bar

Post 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/
heatherbell
VIP Member
VIP Member
Posts: 1996
Joined: Mon Oct 07, 2019 4:39 am
Has thanked: 26 times
Been thanked: 175 times

Re: Move search to top bar

Post 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)));
geeing1964
Posts: 22
Joined: Sat Jun 18, 2022 8:12 am
Has thanked: 4 times
Been thanked: 1 time

Re: Move search to top bar

Post 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
heatherbell
VIP Member
VIP Member
Posts: 1996
Joined: Mon Oct 07, 2019 4:39 am
Has thanked: 26 times
Been thanked: 175 times

Re: Move search to top bar

Post 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.
geeing1964
Posts: 22
Joined: Sat Jun 18, 2022 8:12 am
Has thanked: 4 times
Been thanked: 1 time

Re: Move search to top bar

Post 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
Post Reply