Forums › Forums › Search & Filter Pro › Styling of results
- This topic has 5 replies, 2 voices, and was last updated 7 years, 5 months ago by
Anonymous.
-
Anonymous(Private) September 28, 2017 at 11:16 am #133702
Hello,
I’m having a hard time getting my “results” cards to match the styling of all other cards / movies across my site. If you visit the page in question (http://staging.scarehunt.com/) – my filters are on the right, how I want the “results” to look shows in the body of the page, and how the results actually look is at the very bottom (much larger, leaving a ton of info off each card).
Can you please advise?
Thanks in advance!
Trevor(Private) September 28, 2017 at 3:14 pm #133764From what I can see, your form is set up to use the Display Results method, and in the right sidebar you have the form. You have the ‘cards’ content at the top of the main content block, and under that you have placed the form’s results shortcode.
The cards will be output by either a plugin or your theme, probably using a template PHP file, and the form results in this case will be using our (basic) exemplar results.php template file, as described here:
https://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/
What you want, if possible, is to link the form to the cards section, and not use our shortcode. That would probably require you to use the As an Archive Display Results method, or the Custom method. In the first instance, did you try the As an Archive, and if you did, what happened (not using the shortcode for results therefore)?
Anonymous(Private) September 28, 2017 at 3:35 pm #133773When I try the “As an Archive” Display Results method, I get the following error (As soon as I select that option) :
Error: The
has_archive
attribute is set to false for the post type Stories – this must be enabled in order to use the Post Type Archive in WPAnonymous(Private) September 28, 2017 at 3:59 pm #133791The “Stories Custom Post Type” actually came with the theme, and I don’t see any reference to Toolset Types anywhere, so I’d imagine the author probably used another method. Is there another way to enable archives for the Stories post type, or make it work with the Custom method?
Anonymous(Private) September 28, 2017 at 5:23 pm #133801I ended up getting it figured out – I actually had to add a snippet of code to the functions.php to enable the archiving for the stories, as opposed to just changing it from False to True. From there, I took your initial advice and used the As an Archive display results. Thank you very much!
-
AuthorPosts