SEO Responsive Search Panel for Website
SEO Help and Tips
SEO Responsive Search Panel for Website
Here is the 3 example code of website Inside Search box. Must change with your url:
<style>
/* Custom styles for the search form */
.search-form {
width: 100%; /* Set the width to 100% for a wider search box */
}
.search-input {
width: 100%; /* Set the width to 100% to fill the available space */
padding: 5px 10px; /* Adjust the padding as needed */
border: 2px solid #f4f4f4; /* Add a border to the search input */
background-color: #f8f8f8; /* Set a background color for the search input */
color: #333; /* Set the text color */
}
.search-action {
background-color: #007bff; /* Set a background color for the search submit button */
color: #fff; /* Set the text color for the search submit button */
padding: 5px 10px; /* Adjust the padding as needed */
border: none; /* Remove the border */
cursor: pointer;
}
.search-container {
display: flex;
align-items: center;
}
</style>
<div class='widget-content' role='search'>
<form class='search-form' action='https://example.com/search'>
<div class="search-container">
<input autocomplete='off' class='search-input' aria-label='Search This Blog' placeholder='Search here' name='q' onclick="if(this.value=='Search here') this.value='';"/>
<input class='search-action' value='Search' type='submit'/>
</div>
</form>
</div>
or
<style>
/* Custom styles for the search form */
.search-form {
width: 100%; /* Set the width to 100% for a wider search box */
}
.search-input {
width: 100%; /* Set the width to 100% to fill the available space */
padding: 5px 10px; /* Adjust the padding as needed */
border: 2px solid #f4f4f4; /* Add a border to the search input */
background-color: #f8f8f8; /* Set a background color for the search input */
color: #333; /* Set the text color */
}
.search-action {
background-color: #007bff; /* Set a background color for the search submit button */
color: #fff; /* Set the text color for the search submit button */
padding: 5px 10px; /* Adjust the padding as needed */
border: none; /* Remove the border */
cursor: pointer;
}
</style>
<b:defaultmarkup type='BlogSearch'>
<b:includable id='main'>
<b:include name='widget-title'/>
<b:include name='content'/>
</b:includable>
<b:includable id='content'>
<div class='widget-content' role='search'>
<b:include name='searchForm'/>
</div>
</b:includable>
<b:includable id='searchForm'>
<form class='search-form' action='https://example.com/search'>
<b:attr cond='not data:view.isPreview' name='target' value='_top'/>
<b:include name='urlParamsAsFormInput'/>
<input autocomplete='off' class='search-input' aria-label='Search This Blog' placeholder='Search here' value='Search here' name='q' onclick="if(this.value=='Search here') this.value='';"/>
<b:include name='searchSubmit'/>
</form>
</b:includable>
<b:includable id='searchSubmit'>
<input class='search-action' value='Search' type='submit'/>
</b:includable>
</b:defaultmarkup>
Or,
Google Search:
<script async src="https://cse.google.com/cse.js?cx=partner-pub-9193608585618177:9770209665">
</script>
<div class="gcse-search"></div>
Comments
Post a Comment
Thanks for your Comments.