- This topic has 17 replies, 2 voices, and was last updated 4 years, 12 months ago by Leo.
-
AuthorPosts
-
April 1, 2019 at 11:37 am #856172José
Hello, I continue to simplify the shopping experience on the shopping cart page and on the payment page.
I inserted an ajax search bar through a hook in the whole site, I excluded the same bar in the cart page and in the payment page so as not to distract the client, by doing this, I could not keep the menu alienated to the right in the navigation bar. (attached image).
I have the navigation location above header and Navigation Alignment on the right, but the logo and menu are left together. Question: can this modification be customized through layout, first navigation ?. o What is the most appropriate procedure to keep the menu aligned to the right on the cart and checkout page in the desktop view?
P.D The mobile view looks perfect !!!
Thank you.
April 1, 2019 at 1:32 pm #856249LeoStaffCustomer SupportHi there,
Any chance you can link us to the site in question?
You can edit the original topic and use the private URL field.
Let me know 🙂
April 2, 2019 at 8:50 am #857085JoséHi Leo, of course, I copy username and password:
wp@usuario.com
5nnJZ2TZwJb1oVTqGSoPMrgxApril 2, 2019 at 9:36 am #857132LeoStaffCustomer SupportWhich hook are you using to add the AJAX search currently and how are you positioning it in the middle?
April 2, 2019 at 11:45 am #857236JoséI execute shortcode inside_navegation
more css:
@media (min-width: 768px) {
#site-navigation .inside-navigation {
position: relative;
display: flex;
}
div.asp_m.asp_m_1 {
position: absolute;
bottom: 0;
right: 0;
top: auto;
}
}
.dgwt-wcas-search-wrapp{margin: auto;box-sizing:border-box}//sticky style
@media (min-width: 768px) {
.main-navigation:not(.slideout-navigation) .inside-navigation {
display: flex;
position: relative;
}
div.asp_m.asp_m_1 {
position: absolute;
bottom: 0;
right: 0;
top: auto;
}
}Could another hook be added just for the cart and checkout pages? adding an html space code?
or is not it a good idea?
April 2, 2019 at 3:03 pm #857387LeoStaffCustomer SupportDoable but definitely a bit complicated.
It might take a few tries if you don’t mind?
If so can you temporarily remove the CSS you’ve added and let me have a look?
Thanks 🙂
April 3, 2019 at 8:10 am #858456JoséOk Leo, I already removed the css so you can have a look…
Regards
April 3, 2019 at 8:51 am #858499LeoStaffCustomer SupportGive this a shot:
.inside-navigation { display: flex; } .main-nav { margin-left: auto; }
April 3, 2019 at 10:00 am #858590JoséLeo, I inserted the CSS, and it works perfect.
The same as the previous css … your idea is to replace it?take a peek
regards
April 3, 2019 at 10:33 am #858620LeoStaffCustomer SupportNot quite sure what you mean?
I’m not seeing the CSS being added currently.
If it works then definitely add it 🙂
April 3, 2019 at 10:55 am #858646JoséLeo, it works doing the same as the css I removed:
@media (min-width: 768px) {
# site-navigation .inside-navigation {
position: relative;
display: flex;
}
div.asp_m.asp_m_1 {
position: absolute;
bottom: 0;
right: 0;
top: auto;
}
}
.dgwt-wcas-search-wrapp {margin: auto; box-sizing: border-box}
@media (min-width: 768px) {
.main-navigation: not (.slideout-navigation) .inside-navigation {
display: flex;
position: relative;
}
div.asp_m.asp_m_1 {
position: absolute;
bottom: 0;
right: 0;
top: auto;
}
}I replaced this CSS with:
.inside-navigation {
display: flex;
}
.primary-menu {
margin-left: auto;
}
.dgwt-wcas-search-wrapp {margin: auto; box-sizing: border-box}But the menu still needs to be kept to the right? I send you an imegen …
https://ibb.co/q9jTjTBThank you
April 3, 2019 at 10:57 am #858652LeoStaffCustomer SupportEdited my CSS:
https://generatepress.com/forums/topic/keep-aligned-primary-menu-to-the-right/#post-858499Can you give it another shot without your CSS added?
April 3, 2019 at 11:06 am #858659JoséI deleted my added css:
.dgwt-wcas-search-wrapp {margin: auto; box-sizing: border-box}
Added image
April 3, 2019 at 12:59 pm #858741LeoStaffCustomer SupportCan you try the edited CSS as mentioned above?
April 3, 2019 at 1:35 pm #858759JoséLeo, I’m a bit confused, do you want me to add the first css?
@media (minimum width: 768 px) {
# site-navigation .inside-navigation {
relative position;
screen: bending;
}
div.asp_m.asp_m_1 {
position: absolute;
down: 0;
right: 0;
Above: auto;
}
}
.dgwt-wcas-search-wrapp {margin: auto; box-sizing: border-box}
@media (minimum width: 768 px) {
.main-navigation: no (.slideout-navigation) .inside-navigation {
screen: bending;
relative position;
}
div.asp_m.asp_m_1 {
position: absolute;
down: 0;
right: 0;
Above: auto;
}
}At the moment the site is using this:
.inside-navigation {
display: flex;
}
.primary-menu {
margin-left: auto;
}Regards
if you want you can have a closer look, you have access as administrator -
AuthorPosts
- You must be logged in to reply to this topic.