-
AuthorPosts
-
September 19, 2019 at 4:52 pm #1139971
Hello. I have added some CSS to make the blog post navigation buttons visible on mobile layouts. This is all working well. However, I find the flyout animation (and the delay that comes with it) bothersome on mobile. While this makes sense for mouse input, it doesn’t work so well with touch, IMO. Is there any way to disable the flyout animation for this element? Thank you in advance.
Gary
September 19, 2019 at 6:42 pm #1140006Hey Gary,
So do you want just a normal menu for mobile? Not the hamburger menu?
Best regards,
Jordan ShannonSeptember 19, 2019 at 7:52 pm #1140018Thank you Jordan for the reply. But it’s not the mobile menu I’m referring to, but the sticky post navigation buttons that appear at the sides of each single blog post page to allow moving through the feed. It seems these are hidden on mobile layouts by default, but we elected to show them through a bit of CSS previously provided here:
@media only screen and (max-width: 767px) { .responsive #top .avia-post-nav { display: inline!important; } }
I’m seeking to know if there is a way to disable the mouse-hover flyout behavior for these elements on mobile layouts.
Thank you.
September 19, 2019 at 8:01 pm #1140021Hi,
Provide a link to the site so we can look into this further.
Best regards,
Jordan ShannonSeptember 19, 2019 at 9:49 pm #1140049Hi Jordan. Our site blog is at https://www.cascadehorseshows.com/news. The navigation buttons appear when viewing any blog post in desktop layout. It’s a standard feature of Enfold.
However, I’ve since decided to revert this change and hide the navigation buttons on mobile. I just think it’s a bit cumbersome in vertical orientation. Instead, we’ve injected a “Back to all news” link at the top of the single blog post content.
Still, if there is a known simple solution for my original question I’d still be interested in learning it in case we change our minds again, but if not then we are good for now.
Thank you.
Gary
September 19, 2019 at 9:56 pm #1140050Hi,
Add this to quick css:
.avia-post-nav.avia-post-prev.with-image, .avia-post-nav.avia-post-next.with-image{ display:none!important; }
Best regards,
Jordan ShannonSeptember 21, 2019 at 1:27 am #1140383Thanks Jordan.
I appreciate the suggestion, but that code actually disables the navigation controls altogether. They are already disabled by default on mobile. Were were actually trying to enable them while disabling the flyout animation. (Sorry if I wasn’t clear.) Incidentally, your CSS does not work for mobile in Enfold unless you add .responsive and #top selectors as so:
@media only screen and (max-width: 767px) { .responsive #top .avia-post-nav.avia-post-prev.with-image, .responsive #top .avia-post-nav.avia-post-next.with-image { display:none !important; } }
I guess we can play around with the matrix and transform on these elements. I’m not well versed in CSS3 animation stuff, but I can probably figure it out from here.
Best,
Gary
September 22, 2019 at 11:11 pm #1140787Hi,
Sorry for the late reply, to enable them on mobile and also disable the flyout animation, Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:@media only screen and (max-width: 767px) { .responsive #top .avia-post-nav { display: block !important; } .responsive #top .avia-post-nav:hover .entry-info-wrap { width: 0 !important; } }
Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.