Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

inserting search bar in hero image

Avatar

Level 2

Hi friends 

               i have a hero image and want to insert a search bar in that hero image,can u please suggest me what should i do,,,,i am new in aem,before 20 days i have started AEM, so please help me out.i want same as like fig

 

dhiraj85_0-1592812698571.png

 

 

 

thanks 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Is search bar an AEM functionality / component. If it is, options are

1. you can make the hero banner configuration to be part of that component itself.

2. Hero banner component and search bar component exists as two different components in author, but using CSS, in preview/publish mode it will overlap the component.

 

If search bar is not an AEM functionality and its a third party injected mechanism, then 

1. You can make a placeholder div in hero banner component and make the third party to inject it to that div. You can create configurations in herobanner dialog if you want to configure the position as well.

 

View solution in original post

7 Replies

Avatar

Employee

Hi Dhiraj,

You can check the implementation of /apps/weretail/components/structure/header component which is available OOTB. It's a Page header with navigation and toolbar component which you can leverage in your site page. See [0] for more details.

 

[0]: https://docs.adobe.com/content/help/en/experience-manager-65/communities/authoring/search.html

 

Thanks,

Vaishali

Avatar

Community Advisor

@dhiraj85 Welcome to AEM  , Question for yo:- For the below UI , did you get your final UI ( HTML with CSS ) from your FE team ? To complete the below requirement , you need to get the UI for the header section first, and according to the UI , we can place the image and search bar. If you have the UI already, please share it and we will be happy to guide you on how to go baout developing the header. 

 

Veena ✌

Avatar

Level 2
Hi veena...i have hero image...i mean hero image is running i want to insert a search bar in the hero image

Avatar

Community Advisor
@dhiraj85 Do you have the CSS and UI for bringing the Search Bar over the Hero Image ?

Avatar

Correct answer by
Employee Advisor

Is search bar an AEM functionality / component. If it is, options are

1. you can make the hero banner configuration to be part of that component itself.

2. Hero banner component and search bar component exists as two different components in author, but using CSS, in preview/publish mode it will overlap the component.

 

If search bar is not an AEM functionality and its a third party injected mechanism, then 

1. You can make a placeholder div in hero banner component and make the third party to inject it to that div. You can create configurations in herobanner dialog if you want to configure the position as well.

 

Avatar

Community Advisor

@dhiraj85 Do you have the UI to bring the Search bar above the Hero Banner ? something like this https://www.solodev.com/blog/web-design/how-to-add-a-search-bar-to-your-hero-section.stml . It is all work of CSS and HTML. Once you have those , you can integrate it to AEM , to make it authorable.