Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Making Search Visible on all Pages
- This topic has 5 replies, 2 voices, and was last updated 11 years, 6 months ago by
alexsr32.
-
AuthorPosts
-
November 11, 2014 at 4:19 pm #2932
alexsr32
ParticipantI attached the theme php file, as I asked you in the codecanyon page, I’m trying to make the search visible on all pages at all times. Any advice on how to do that would be awesome!
November 11, 2014 at 4:21 pm #2933Ernest Marcinko
KeymasterHi!
I think the php file got removed because of some security check. Could you please zip it and attach it to your next response?
November 11, 2014 at 4:23 pm #2934alexsr32
ParticipantDone 🙂
November 11, 2014 at 4:34 pm #2936Ernest Marcinko
KeymasterThanks. Well I don’t know how the theme looks like, but I’ve made a few variations where I put the shortcode to random places which I assumed might be good based on the php file. The shorcode I used uses search instance number 1. Here are 3 variations I made:
- http://pastebin.com/raw.php?i=AbZRX5NV
- http://pastebin.com/raw.php?i=6BzJYhMR
- http://pastebin.com/raw.php?i=dBR2yx6L
I honestly have no idea how these might look. If you are lucky, then one of the might be in the right place 😉
Just replace the header.php code with them, and you should see the search somewhere.
November 11, 2014 at 4:46 pm #2937alexsr32
ParticipantYou are seriously awesome!!! I was even able to play with it a bit to put it above the navigation text
http://boardgameco.com/product-category/family/
previously it was below the Home/Family, but I was able to move it above after a little trial and error.
The code area now is:
if( is_front_page() || of_get_option(‘breadcrumb’) == ‘disable’ ) $NV_hidebreadcrumbs = ‘yes’;
/* Here starts the Ajax Search Pro Shortcode .. */
echo do_shortcode(‘[wpdreams_ajaxsearchpro id=1]‘);
/* .. and here it ends, just like that. */// Sub Header Display
if( $NV_hidebreadcrumbs == ‘yes’ && ( empty( $NV_socialicons ) || $NV_socialicons == ‘off’ ) && empty( $NV_textresize ) ) $NV_disable_subtabs = ‘yes’; else $NV_disable_subtabs = ”;Do you happen to know what line of code I can use to add a few pixels spacer after the search box and before Home/Family? And do you have other products I can browse? The support here was by far the best I’ve received on a WP product, and I’d love to see if I could use your other stuff.
Thanks,
AlexNovember 11, 2014 at 4:49 pm #2938alexsr32
ParticipantNevermind….was able to figure it out myself, “Echo str_repeat(‘ ‘, 20);”
Thanks again, this was awesome!
-
AuthorPosts
- You must be logged in to reply to this topic.