- This topic has 27 replies, 5 voices, and was last updated 3 years, 7 months ago by
Leo.
-
AuthorPosts
-
September 21, 2017 at 6:32 pm #389697
themedleb
Hi,
After you helped me with the “mobile menu breakpoint” issue https://generatepress.com/forums/topic/mobile-header-breakpoint/ I didn’t notice that the logo is missing when the website is in mobile resolution, can you please help me make it appear again?
Thanks.
September 21, 2017 at 8:28 pm #389727Leo
StaffCustomer SupportHi there.
Just want to first make sure you have mobile header logo uploaded? https://docs.generatepress.com/article/mobile-header/
September 21, 2017 at 11:37 pm #389786themedleb
After I did upload the logo, it appeared, but the hamburger and search buttons stopped functioning, I click but no response.
September 21, 2017 at 11:54 pm #389796themedleb
Weird, just tested it in the live site it worked perfectly, but locally is not.
September 21, 2017 at 11:59 pm #389797themedleb
[Update] The problem doesn’t affect all the website, only the 404 page (which I just modified it’s CSS code lately), I think the problem is mine, not the theme’s, I will try to get it fixed myself.
Thank you Leo.
September 22, 2017 at 6:44 am #389978Leo
StaffCustomer SupportSounds good. Let us know if you need another look.
September 22, 2017 at 10:38 am #390132themedleb
Thank you.
I figured out what causes this issue, It’s the related posts plugin (Yuzo from iLen), deactivated it and it worked perfectly.
But I’ve noticed something else, on desktop mode (resolution) when the background of the menu is light, after clicking on the “search icon”, the “close search” button appears stacked on the “search button”, I think what it should happen: when the “close search” button appears, the “search button” should disappear, how can I do this?
You can see what I mean here.
September 22, 2017 at 12:20 pm #390199Leo
StaffCustomer SupportCan you try this CSS here?
.main-navigation li.search-item i { display: none; }
September 22, 2017 at 12:51 pm #390222themedleb
Exactly what I need, thank you Leo, you are always doing a great job here.
September 22, 2017 at 4:30 pm #390279Leo
StaffCustomer SupportGlad we could help!
September 24, 2017 at 3:32 pm #391207themedleb
Thank you, after this, I’ve noticed something else which is about the search icon: 1- It looks so close to the menu than the usual, it looks like it doesn’t have the same exact padding the normal menu has. 2- its hover effect (color changing) is not working when I hover on it.
September 24, 2017 at 3:36 pm #391208themedleb
I also need to customize the “no search results” page, is there a way to customize with css? If yes, what classes (parent and child) should I use to customize it, I can’t make everything in this page in the center and can’t control the footer …
September 24, 2017 at 11:37 pm #391323Leo
StaffCustomer SupportAhh I see the problem.
Try adding this CSS:
https://generatepress.com/forums/topic/mobile-header-breakpoint/#post-388807Inside the media query here:
https://generatepress.com/forums/topic/mobile-header-breakpoint/#post-388075Then you can remove this CSS: https://generatepress.com/forums/topic/logo-on-mobile-menu/#post-390199
The specific body tag for no search result page would be
.search-no-results
September 25, 2017 at 5:17 pm #391898themedleb
Thank you, this helped exactly with what I need.
I’m wondering if there is a way to redirect the visitors to the “404 page” page instead of “search-no-results” in case their search doesn’t exist?
September 26, 2017 at 12:02 am #392010Tom
Lead DeveloperLead DeveloperHmm, you could maybe try this (untested):
add_action( 'template_redirect', 'tu_redirect_no_results' ); function tu_redirect_no_results() { if (is_search()) { global $wp_query; if ( 0 === $wp_query->post_count ) { wp_redirect( get_permalink( 10 ) ); } } }
10 being the page ID of the page you want to redirect to.
-
AuthorPosts
- You must be logged in to reply to this topic.