Jump to content

move cart and usericon after searchbar


Recommended Posts

Hi

I want to move the user and cart icon after the searbar in  the same row but can't find a way to do it.

First when trying to access the position menu in BO I get an 500 error. I edited the header.tpl file instead moving   {hook h='displayNav2'} under   {hook h='displayTop'}  but then I can't find a way to style it to show all in one row.

Can anybody help?

Thanks

Link to comment
Share on other sites

You need to disconnect two modules from the displayNav2 hook in the admin panel at Design > Positions (screenshot)

And attach them to the displayTop hook

Distribute by position and make a flex block so that all the elements line up (screenshot)

themes/yuor_theme/templates/_partials/header.tpl

 <div class="header-top-right col-md-10 col-sm-12 position-static" style="display: flex;justify-content: space-between;">
     {hook h='displayTop'}
 </div>

I recommend doing this in child_classic so that all your changes are saved when updating

Styles can be rendered in custom.css

Screenshot_5.jpg

Screenshot_6.jpg

Screenshot_7.jpg

Link to comment
Share on other sites

With the debug option on and clicking on positions I just get this:

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Link to comment
Share on other sites

trying to contact them a few days ago with no luck so far "contact the software developer" we only support wordpress was the response

Meanwhile I edited the header.tpl 

removed {hook h='displayNav2'} from its original place and added this 

       <div class="header-top-right col-md-10 col-sm-12 position-static" style="display: flex;justify-content: space-between;">
          {hook h='displayTop'}  {hook h='displayNav2'}
      </div>

Almost there. 

If I could only find a way to manage the spaces between them

menu.png

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...