Forums › Forums › Search & Filter Pro › Almost there, struggling with last steps
- This topic has 11 replies, 2 voices, and was last updated 7 years, 10 months ago by Trevor.
-
Anonymous(Private) January 24, 2017 at 10:43 pm #85131
Hi there!
I just bought Search & Filter Pro tonight and I’m struggling to complete the last steps of the setup. I am using EDD and the Marketify theme. I have updated my theme’s functions.php file and also added the results.php file to my theme. I have been trying to display my new search and filter via ShortCode, an EDD Downloads page and via a widget but I am unable to complete any of these.
The search is behaving correctly with the Shortcode method however the display is not nice. In this case, the search is on the top left of the page. The results are displayed in large tiles at the bottom of the page. It looks nothing like the neat movie demo.
The EDD method [searchandfilter id=”291″ action=”prep_query”][downloads columns=2 number=4] causes no search to be displayed on the page but the tiles look ok.
The widget approach has the best look as I have been able to display the search on the right sidebar with the downloads on the left. However in this case the search is not interacting with the downloads.
I would love to get one of these approaches working and would really appreciate your help on this. Thanks in advance!
Trevor(Private) January 25, 2017 at 9:14 am #85201Marketify should work the easy way. If you go to wp-content/themes/marketify (I think), edit the functions.php file, it needs to look something like this (where the 63 is the ID number of the form you made, so change that):
<?php /** * Marketify child theme. */ function marketify_child_styles() { wp_enqueue_style( 'marketify-child', get_stylesheet_uri() ); do_action( 'search_filter_prep_query', 63 ); } add_action( 'wp_enqueue_scripts', 'marketify_child_styles', 999 ); /** Place any new code below this line */
Anonymous(Private) January 25, 2017 at 9:27 am #85206Morning Trevor!
I had been looking through your support forum before I reached out to you and noticed that you had mentioned this to someone else with the marketify theme too. I have already updated my functions.php file to look like this (including my search ID number) although I update the marketify-child theme which is the usual one I update.
Could you please tell me the next steps after doing this? Should I be using EDD Downloads or shortcode as the method of display? And how should those codes be copied onto an empty page? Or should it be a widget?
Anonymous(Private) January 25, 2017 at 12:05 pm #85260Last night I tried to set the search up using a widget. I displayed the widget in my downloads/shop sidebar. This resulted in the downloads page showing my downloads on the left and the search bar on the right. The only problem was that when I performed a search, it didn’t result in any changes to my downloads. Have you come across this before?
-
AuthorPosts