Jump to content

why search box palce has changed (after ps upgrade)


newbie20

Recommended Posts

Hello 

i use classic theme of PS.

i have activated both RTL and LTR languages in my shop .

after   i upgarded my prestashop to 1.7.8.2 ,  search box (in RTL mode) in header has changed its palce  . but Why ?? (i want to be located  in its previous location again .)

but it is OK in LTR mode.

 

search box.png

Edited by newbie20 (see edit history)
Link to comment
Share on other sites

  • newbie20 changed the title to why search box palce has changed (after ps upgrade)
8 minutes ago, ComGrafPL said:

Change here http://otolam.com/mashino/modules/ps_searchbar/ps_searchbar.css either on custom.css

From:

#search_widget {
    float: right;
    margin-bottom: 0;

to:

#search_widget {
    float: left;
    margin-bottom: 0;

 

in my ps_searchbar.css  ,  i  have this 

#search_widget {
  margin-bottom: .625rem;
  overflow: auto;
}

should i replace it with 

#search_widget

{ float: left;

margin-bottom: 0; }

 

Link to comment
Share on other sites

1 minute ago, newbie20 said:

in my ps_searchbar.css  ,  i  have this 

#search_widget {
  margin-bottom: .625rem;
  overflow: auto;
}

should i replace it with 

#search_widget

{ float: left;

margin-bottom: 0; }

 

No, this part.

@media only screen and (min-width: 768px) {
  #search_widget {
    float: right;
    margin-bottom: 0;
  }

 

Link to comment
Share on other sites

i have following in my  /themes/classic/assets/css/custom.css : 

/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */
div#_desktop_top_menu {
    float: right;
}

and following  in my    /modules/ps_searchbar/ps_searchbar.css  :

@media only screen and (min-width: 768px) {
  #search_widget {
    float: left;
    margin-bottom: 0;
  }

but the goal is not achieved.

are these changes OK ?

 

Edited by newbie20 (see edit history)
Link to comment
Share on other sites

No, you need to do either of them.

48 minutes ago, raudsepp said:

 

Please do combination of these.

or

41 minutes ago, ComGrafPL said:

Change here http://otolam.com/mashino/modules/ps_searchbar/ps_searchbar.css either on custom.css

From:

#search_widget {
    float: right;
    margin-bottom: 0;

to:

#search_widget {
    float: left;
    margin-bottom: 0;

 

 

Link to comment
Share on other sites

1 minute ago, newbie20 said:

yes both server and browser cash , deleted and both  custom.css and ps_searchbar.css  have i atached here .

what should i do now ?

ps_searchbar.css 1.29 kB · 0 downloads custom.css 134 B · 0 downloads

ps_searchbar

In

@media only screen and (min-width: 992px) {
  #search_widget {
    min-width: 15.63rem;
  }

Also add line float: left;

@media only screen and (min-width: 992px) {
  #search_widget {
    float: left;
    min-width: 15.63rem;
  }

 

Link to comment
Share on other sites

33 minutes ago, ComGrafPL said:

ps_searchbar

In

@media only screen and (min-width: 992px) {
  #search_widget {
    min-width: 15.63rem;
  }

Also add line float: left;

@media only screen and (min-width: 992px) {
  #search_widget {
    float: left;
    min-width: 15.63rem;
  }

 

done and problem is solved by RTL mode

thanks so much

But now , i have the same problem by LTR mode (english mode)

Edited by newbie20 (see edit history)
Link to comment
Share on other sites

48 minutes ago, ComGrafPL said:

You mean after change to english language?

Looks fine for me. After clearing the browser cache.

 

Screenshot 2021-12-19 at 10-31-22 otolam.png

i mean , that in english mode , the search box should apear  to the right side of menu bar. (this was the case befor the problem by RTL mode  was solved.)

Link to comment
Share on other sites

20 hours ago, newbie20 said:

i mean , that in english mode , the search box should apear  to the right side of menu bar. (this was the case befor the problem by RTL mode  was solved.)

You need to use different style in RTL mode and LTR mode.

So you will need to input the css into theme_rtl.css instead of ps_searchbar.css

Edited by raudsepp (see edit history)
Link to comment
Share on other sites

Backup the ps_searchbar.css

And write the code in theme_rtl.css

On 12/18/2021 at 7:21 PM, ComGrafPL said:

theme_rtl.css

In

@media only screen and (min-width: 992px) {
  #search_widget {
    min-width: 15.63rem;
  }

Also add line float: left;

@media only screen and (min-width: 992px) {
  #search_widget {
    float: left;
    min-width: 15.63rem;
  }

 

 

Edited by raudsepp
Correct file name (see edit history)
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...