Jump to content

searchbar to the right


Recommended Posts

hey,

 

i'am running prestashop version 1.6.0.14.

i tried to get the searchbar on the right side of my website.

however every file i tried to customize doesnt work.

it just wont go to the right side.

i read that you need to customize two files?

a tpl file and a css file.

is this true?

 

 

Does anybody know how i get it to the right side? (see pictures for files and how i want it)

 

thanks,

 

post-1012713-0-05278300-1431787037_thumb.jpg

post-1012713-0-86555100-1431787037_thumb.jpg

Link to comment
Share on other sites

Add the following lines at the end of the file: /themes/warehouse/css/modules/blocksearch_mod/blocksearch_mod.css

@media only screen and (min-width: 768px) {
	#search_block_top.issearchcontent{
		position: absolute;
		top: -28px;
		right: -215px;
	}
}
@media only screen and (min-width: 1000px) {
	#search_block_top.issearchcontent{
		top: -48px;
		right: -304px;
	}
}
@media only screen and (min-width: 1320px) {
	#search_block_top.issearchcontent{
  		right: -391px;
  	}
}

Link to comment
Share on other sites

 

Add the following lines at the end of the file: /themes/warehouse/css/modules/blocksearch_mod/blocksearch_mod.css

@media only screen and (min-width: 768px) {
	#search_block_top.issearchcontent{
		position: absolute;
		top: -28px;
		right: -215px;
	}
}
@media only screen and (min-width: 1000px) {
	#search_block_top.issearchcontent{
		top: -48px;
		right: -304px;
	}
}
@media only screen and (min-width: 1320px) {
	#search_block_top.issearchcontent{
  		right: -391px;
  	}
}

Thanks for the help but it still doesn't work :(

the file looks likes this now

/*******************************************************************
					Blockseachr_mod styles
********************************************************************/
#search_block_top_content {
  height: 140px;
  position: relative; }
  @media (max-width: 767px) {
    #search_block_top_content {
      height: auto; } }
  #search_block_top_content .iqitsearch-inner p {
    margin: 0px; }
  @media (max-width: 767px) {
    #search_block_top_content .iqitsearch-inner {
      margin-top: 10px; } }
  @media (min-width: 768px) {
    #search_block_top_content .iqitsearch-inner {
      width: 100%;
      position: absolute;
      top: 50%;
      transform: translateY(-50%); } }

#search_block_top {
  width: 172px;
  margin: 0 auto;
  position: relative;
  height: 27px; }
  #search_block_top.issearchcontent {
    margin-top: 10px; }
  @media (max-width: 767px) {
    #search_block_top {
      top: 0px; } }

@media (min-width: 768px) {
  .disable_center #search_block_top {
    margin-left: 0px;
    margin-right: 0px; } }
#search_block_top .search_query {
  position: absolute;
  left: 0px;
  top: 0px; }
  #search_block_top .search_query:focus {
    outline: 0; }

#search_block_top .button-search {
  background: none;
  border: none;
  position: absolute;
  right: 4px;
  top: 3px; }
  #search_block_top .button-search:focus {
    outline: 0; }

#search_block_top .button-search {
  font-size: 0px; }

#search_block_top .button-search span {
  display: none; }

#search_block_top .button-search:before {
  content: "\f002";
  display: block;
  font-family: "FontAwesome";
  font-size: 14px;
  color: #666;
  width: 100%;
  text-align: center; }

#search_block_top .button-search:hover {
  color: #6f6f6f; }

.ac_results {
  border: 1px solid #CECECE;
  width: 236px !important;
  margin-top: 10px;
  -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: 3C3C3C;
  z-index: 999999;
  background-color: white;
  overflow: hidden;
  z-index: 99999;
  text-align: left;
  padding: 0px; }

.ac_odd {
  background: #fff; }

.ac_over {
  background: #f3f3f3;
  color: #3C3C3C; }

.ac_results li {
  border-bottom: 1px dashed #D8D8D8;
  cursor: pointer !important; }

.ac_results li:last-child {
  border: none; }

.ac_results li img {
  display: inline;
  vertical-align: middle;
  border: 1px solid #D8D8D8; }

.ac_results .prname {
  display: inline-block;
  vertical-align: middle;
  ; }

.ac_results .prprice {
  color: #f13340; }

#ac_search_more {
  padding: 5px 0;
  cursor: pointer !important; }

@media only screen and (min-width: 768px) {
	#search_block_top.issearchcontent{
		position: absolute;
		top: -28px;
		right: -215px;
	}
}
@media only screen and (min-width: 1000px) {
	#search_block_top.issearchcontent{
		top: -48px;
		right: -304px;
	}
}
@media only screen and (min-width: 1320px) {
	#search_block_top.issearchcontent{
  		right: -391px;
  	}
}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...