Viewing 8 replies - 1 through 8 (of 8 total)
  • Hey,

    thanks for reaching out – I’ll gladly help! You can try to embed the search result into a page with iframe. Go to “Pages”->”Add New”->switch to “Text” mode and insert:
    <iframe src="your url"></iframe>. That’s it!

    Please let me know how it goes, take care and have a nice day,
    Petra

    Thread Starter damplified

    (@damplified)

    Big thank you, that works!!!!

    Awesome

    That also brings in the whole web site as well as the search results, can I adjust so it just the search result and not the whole site frame etc.. ?? Please

    Hey,

    glad to hear it works! ??
    Now, adjusting this is a bit trickier:
    1. you could try changing the “search.php” file found in “Appearances”->”Editor”->your theme->search.php (removing the get_header();). Don’t forget to update the file.
    2. you could try the Ajax Search Lite plugin

    Hope this helps, all the best,
    Petra

    Hi PetraP,

    I need to do the same thing as damplified, but I am not sure I understand what url I should put at src=”your url”.

    And I have another small issue, I have created my own search form, that is using Search Everything:

    <form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
    			<div>
    				<input type="text" size="" name="s" id="s" value="Effectuer votre recherche..." onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;"/>
    				<input type="submit" id="searchsubmit" value class="btn" />
    			</div>
    		</form>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    What should I change in this form so that on submit, it leads to the page where my search result is embeded?

    Thank you !

    Hey zahidaoui,

    let’s say you wish to embed the site https://www.mysite.com – then you put “https://www.mysite.com&#8221; URL in the iframe: <iframe src="https://www.mysite.com"></iframe>. To get that search result URL, do a search on your site and just copy/paste the URL in your address bar. As far as your custom code goes, please try to replace the <?php bloginfo('home'); ?> with your URL and see if it works.

    Please let me know how it goes, take care and have a nice day,
    Petra

    Hello Petra,

    i still do not understand what you mean under “your URL”. The search result’s URL is https://www.my-site.com/?s=the-word+other-word+other-words&#8230; so, how can we define the URL when we do not know which words will be looking for by the visitors ?

    Thank you Petra, this helps ??

    @igor,

    thanks for reaching out – would you mind trying out this plugin: Ajax Search Lite plugin? I believe this is what you are trying to achieve.
    And I hope you don’t mind but I will continue the conversation in this topic.

    @zahidaoui: glad to hear it! ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How do I put seach results into a page’ is closed to new replies.