[solved] search-module > how to style without text-field, only magnifier, at start

More
1 year 2 months ago #83482 by kath
hi there,

I tried asking chatGpt, and the answer sounds promising, but may be outdated:

[task]in flexicontent for joomla 4, how to configure the search module so that only the magnifier img / go button is visible initially, and the search text field shows only after click on the go button?
[chatgpt's answer]To configure the search module in Flexicontent for Joomla 4 to show only the magnifier icon initially and then display the search text field after clicking on the magnifier icon, you can follow these steps:
  1. Log in to your Joomla 4 administrator panel.
  2. Go to the Extensions menu and select Modules.
  3. Find the Flexicontent Search module from the list and click on it to open its configuration page.
  4. Under the Basic Options tab, set the "Display Submit Button" option to "No".
  5. Under the Advanced Options tab, find the "CSS Classes" field and add the following class: "fc_search_icon_trigger".
  6. Save the changes to the module.
  7. Next, you need to add some custom CSS to your Joomla site to achieve the desired effect. Navigate to your Joomla 4 administrator panel and go to the Extensions menu and select Templates.
  8. Find your current template and click on its name to open its configuration page.
  9. Click on the "Custom Code" tab.
  10. In the "Custom CSS" field, add the following CSS code:
.fc_search_icon_trigger .icon-search:before { content: "\f002"; } .fc_search_icon_trigger .icon-search:after { content: ""; display: none; } .fc_search_icon_trigger:hover .icon-search:before { display: none; } .fc_search_icon_trigger:hover .icon-search:after { content: "\f002"; display: inline-block; }
  1. Save the changes to the template.
Now, when you view your Joomla site, you should see only the magnifier icon displayed in the Flexicontent search module. Clicking on the icon will reveal the search text field, allowing users to enter their search terms.
[problem]
>> 5. Under the Advanced Options tab, find the "CSS Classes" field and add the following class: "fc_search_icon_trigger".
I can't find that css-class-field, this part of the solution might be outdated.

[question]
What would be the lastest version of the solution to this task?
Thanks a lot!

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #83485 by micker
hoooo now i need to debug chatgpt .... ???? nightmare lol
if i understand you want to display only icon of search and open input on hover ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #83486 by kath
haha :)

>> you want to display only icon of search and open input on hover ?
yes, exactly.

 

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago - 1 year 2 months ago #83487 by micker
an exemple for a specific search module
Code:
input#mod_search_searchword-142{ width:0px; transition: all .5s; } input#mod_search_searchword-142:focus{ width:200px; }
its a first step need more works

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]
Last edit: 1 year 2 months ago by micker.

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #83488 by kath

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.273 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline