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:
- Log in to your Joomla 4 administrator panel.
- Go to the Extensions menu and select Modules.
- Find the Flexicontent Search module from the list and click on it to open its configuration page.
- Under the Basic Options tab, set the "Display Submit Button" option to "No".
- Under the Advanced Options tab, find the "CSS Classes" field and add the following class: "fc_search_icon_trigger".
- Save the changes to the module.
- 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.
- Find your current template and click on its name to open its configuration page.
- Click on the "Custom Code" tab.
- 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; }
- 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!