- This topic has 22 replies, 4 voices, and was last updated 3 years, 2 months ago by David.
-
AuthorPosts
-
January 13, 2021 at 10:32 am #1617499Dev
Hello,
Please see the below video link.
https://share.getcloudapp.com/nOuDxddW?collection_id=3nfnMp
I want to make my search page like how we can do that?
More, please see the below image link. Is this shadow, or how can I add that in my header.
And as we are adding lots of CSS code, will it impact the site speed? What’s the solution?
Please let me know.
January 13, 2021 at 12:50 pm #1617634YingStaffCustomer SupportHi Dev,
You’ll need a Ajax Search plugin to achieve live searching effect.
For the box shadow, try this CSS, adjust the number depends on your needs:
.inside-header { box-shadow: 5px 7px 6px -2px rgba(0, 0, 0, 0.1); }
The more CSS you added, relatively the slower your site is. That’s basically inevitable.
I would recommend use site speed testing software/website in order to know what needs to be optimized in your site.Let me know 🙂
January 13, 2021 at 7:25 pm #1617887DevHello,
The below CSS is not working for mobile view. And for the sticky header as well.
.inside-header {
box-shadow: 5px 7px 6px -2px rgba(0, 0, 0, 0.1);
}January 13, 2021 at 8:18 pm #1617907YingStaffCustomer SupportCan you link us to the site in question?
You can use the private information field.
Let me know 🙂
January 13, 2021 at 8:21 pm #1617910DevHello,
Please check the details
January 13, 2021 at 8:54 pm #1617931YingStaffCustomer SupportTry this CSS instead:
#mobile-header, #sticky-navigation, .site-header { box-shadow: 5px 7px 6px -2px rgba(0, 0, 0, 0.1); position: relative; }
January 13, 2021 at 9:51 pm #1617966DevThanks, it worked for me.
January 14, 2021 at 2:14 pm #1619130YingStaffCustomer SupportGreat!
You are welcome 🙂
January 14, 2021 at 7:25 pm #1619347DevHello,
I have installed the ajax search, and I have the shortcode – [wpdreams_ajaxsearchlite]
How and where I have to put this shortcode to replace the secondary menu search bar with the ajax search bar.
January 14, 2021 at 10:01 pm #1619457ElvinStaffCustomer SupportHi,
Try this PHP snippet:
add_filter( 'generate_navigation_search_output', function() { return sprintf( '<div class="navigation-search">%s</div>', do_shortcode( '[wpdreams_ajaxsearchlite]' ) ); } );
January 14, 2021 at 10:12 pm #1619463DevHello,
I added u PHP code, but that is activating the double search bar over clicking. It may not get displayed on the desktop, but it clearly shows double search bars on mobile view.
One is your wp default search bar, and the other is of the shortcode.
January 14, 2021 at 10:29 pm #1619467ElvinStaffCustomer SupportTry adding this to remove the second search form.
add_action( 'after_setup_theme', function() { remove_action( 'generate_inside_mobile_header', 'generate_navigation_search' , 1 ); });
January 22, 2021 at 10:52 pm #1630020DevHello,
None of the above PHP code is working. See, I want when someone clicks on the search (that is in the secondary menu) then the HERO section I have designed in the elements section, gets open.
For a clear idea, please see the below video.
https://share.getcloudapp.com/5zuAgjjr
Please let me know.
January 23, 2021 at 7:40 am #1630507DevAny update on this issue?
January 23, 2021 at 8:48 am #1630567DavidStaffCustomer SupportHi there,
thats not a function of the Theme. It would require Custom Development which is outside of the scope of this forum.
-
AuthorPosts
- You must be logged in to reply to this topic.