Ivory Search › Forums › Support › Placing shortcode on homepage
- This topic has 7 replies, 2 voices, and was last updated 5 years, 3 months ago by Ivory Search.
You must be logged in to create new topic or reply to the topic. Click To Login
- AuthorPosts
- September 6, 2019 at 7:52 PM #2843
Hey guys,
First of all thanks for the great plugin.
I am now using another searchbox on my website, but I am not happy with it, so therefore I want to change it to Ivory Search.
Right now I am testing the search box with a standard shortcode on this page: https://bit.ly/2kyNSuf
1. How can I change the width?
2. How do I get the search button NEXT to the search box instead of UNDER it?Please check my homepage, where I am using another search box right now: https://bit.ly/2kmcE0J
I already tried to replace that search box with this:
echo do_shortcode( ‘[ivory-search id=”49116″]’ );
But I don’t know where to put it 🙁
3. How do I replace the old search box with the Ivory Search box?
4. Is there a possibility to make the live search faster?
5. I selected ‘media’ and ‘attachements’ in the plugin settings, but unfortunately, during the search it’s not showing images.
A lot of questions (I know), but hopefully you can help me out by pointing me in the right direction!
I also enclosed a screenshot of the custom CSS I am using now for the OLD search box (AWS container)
- September 7, 2019 at 8:11 PM #2846
I hope you are well today and thank you for your questions.
1. How can I change the width?
2. How do I get the search button NEXT to the search box instead of UNDER it?You can achieve this by adding the below CSS code in the Custom CSS option of Ivory Search plugin settings on the path Ivory Search -> Settings -> Settings
#wrapper .is-search-form input.is-search-input { width: 100%; } #wrapper .is-search-form label { float: left; display: block; width: 500px; max-width: 100%; } #wrapper .is-search-form span.is-search-icon { padding: 5px; }
3. How do I replace the old search box with the Ivory Search box?
You can just add the below search form shortcode in that page content area.
[ivory-search id="49116"]
4. Is there a possibility to make the live search faster?
Just make sure that you have not configured any unwanted search form options causing the search query to become slow.
5. I selected ‘media’ and ‘attachements’ in the plugin settings, but unfortunately, during the search it’s not showing images.
Could you please share me the screenshot of it where you have selected it so that I can troubleshoot it?
You have to configure the search form as described below.
Best regards,
Ivory Search Support - September 8, 2019 at 5:09 PM #2856
Thanks for your swift reply!
Some things are solved now.However:
1. Images are still not shown during search. See screenshot.
2. Instead of placing the shortcode in the content on the homepage, how can I place the search box as ‘hard-code’ CSS?Attachments:
You must be logged in to view attached files. - September 8, 2019 at 7:33 PM #2859
1. Images are still not shown during search. See screenshot.
Please make sure that you have configured the search form AJAX settings to display images in the AJAX search results as shown in the attached screenshot.
2. Instead of placing the shortcode in the content on the homepage, how can I place the search box as ‘hard-code’ CSS?
I am not sure what you meany by placing the search box as hard code CSS so could you please describe it a bit more?
Attachments:
You must be logged in to view attached files. - September 10, 2019 at 2:16 PM #2872
1. Images are still not shown during search. See screenshot.
Please make sure that you have configured the search form AJAX settings to display images in the AJAX search results as shown in the attached screenshot.See screenshot, I have selected ‘images’, but still not working. 🙁
2. Instead of placing the shortcode in the content on the homepage, how can I place the search box as ‘hard-code’ CSS?
I am not sure what you meany by placing the search box as hard code CSS so could you please describe it a bit more?Actually, I want to place the searchbox not as a shortcode on my homepage, but integrate it as CSS. Which class-form should I use? This one for example:
.data-form-id=”49116″Attachments:
You must be logged in to view attached files. - September 11, 2019 at 6:50 PM #2877
See screenshot, I have selected ‘images’, but still not working.
Have you set the images as featured images for those posts?
Actually, I want to place the searchbox not as a shortcode on my homepage, but integrate it as CSS. Which class-form should I use? This one for example:
.data-form-id=”49116″I am not sure how you are integrating it with the CSS so could you please describe it a bit more and tell me exactly what you are trying to achieve?
- September 11, 2019 at 8:30 PM #2881
See screenshot, I have selected ‘images’, but still not working.
Have you set the images as featured images for those posts?
Yes I did, however, those images are loaded from an external link. Maybe that’s causing the issue?
Actually, I want to place the searchbox not as a shortcode on my homepage, but integrate it as CSS. Which class-form should I use? This one for example:
.data-form-id=”49116″I am not sure how you are integrating it with the CSS so could you please describe it a bit more and tell me exactly what you are trying to achieve?
I know have another search box on my home page. Called: .aws-container
See screenshotI want this .aws-container to replace with your Ivory Search box.
Attachments:
You must be logged in to view attached files. - September 13, 2019 at 9:12 PM #2896
Yes I did, however, those images are loaded from an external link. Maybe that’s causing the issue?
Yes, you are right, therefore, it is not displaying.
I know have another search box on my home page. Called: .aws-container
See screenshot
I want this .aws-container to replace with your Ivory Search box.I understood your requirements now but you are following the wrong path to achieve it.
It is not display using CSS code so you don’t need to edit CSS code.
You have to edit the page and in the content area of it you will see aws shortcode that you have to replace with Ivory Search shortcode.
- AuthorPosts
You must be logged in to create new topic or reply to the topic. Click To Login