Forums Forums Search Search Results for 'filter style'

Viewing 10 results - 451 through 460 (of 496 total)
  • Author
    Search Results
  • #15052

    Anonymous
    Inactive

    Hi Ross.

    Thanks for your advice – the chortling does, indeed, work – hooray!

    I’m going to add a lot more posts now so that I can test it more thoroughly (hard to see a filter working when there’s only one post!).

    Is there an obvious way to style the user interface? Or does that reflect the theme template?.

    #14875

    Ross
    Keymaster

    Hi Diego

    To change the style of the results you must customise search-filter.php to your needs.

    Or start with a different template (not search.php) however I don’t have much experience with that and is a customisation you must make yourself.

    Thanks

    #14439

    Anonymous
    Inactive

    The filter was working fine the other day, but now it’s not working. Currently using Search & Filter Pro.

    Here’s a list of my current files in theme:

    category.php
    footer.php
    functions.php
    header.php
    home.php
    index.php
    page-contact-us.php
    single.php
    style.css

    If you can see, I’ve set the counter on and it shows that there are (x) amount of posts in that category.

    By default, this should use index.php, isn’t it? There isn’t a search.php. Have debugged and the results show nothing, just default WordPress Loop ‘else’ message “Nothing Found!”.

    Please advise. Have been trying to debug for quite some time now.

    You can take a look at my site:

    #14360

    Ross
    Keymaster

    Hi both

    If you are using Marketify, you must be able to create a regular WordPress template that doesn’t use their own custom query – and uses the default WP_Query – the code is nested somewhere in all the template includes…

    Alternatively, for users whos themes do not play nice with some WordPress standards, or users who are unable to make the necessary modifications – you can display the results using the shortcode method – but this means you must be able to make the necessary style modifications for integration with your theme:

    http://www.designsandcode.com/wordpress-plugins/search-filter-pro/docs/display-results/with-a-shortcode/

    Mike, pasting in a response here (modified) from earlier in the thread which was hidden, in case you are comfortable modifying your templates –

    Its in this line which generates the grid layout that you want…

    The plugin won’t work automatically with that layout – its not a regular template and hidden behind a shortcode – its absolutely impossible for any plugin to use this specific layout automatically – its a deeply nested, non WP standards way of displaying a layout.

    Thanks

    #14261

    Ross
    Keymaster

    Hi there

    You can remove CSS by following instructions on the FAQs – http://www.designsandcode.com/wordpress-plugins/search-filter-pro/faqs/

    However, if this is a bug then its something I need to fix.

    Can you tell me which rules/styles are affecting this?

    Thanks

    #14135

    Anonymous
    Inactive

    OK I know I’m not giving you much time to reply (LOL) but I’m on a tight deadline.

    The problem DID turn out to be the fact that the inputs are wrapped within the label tag. There is no way to select any other element based on the checked or not-checked state of the input because of this. I tested it by hacking the plugin (this file: class-search-filter-taxonomy-walker.php) and moved the labels so that they follow the input.

    Now the show/hide child elements works fine, and I just added a style to make the labels display inline, so all is working great.

    I just wanted to let you know so that you could consider either modifying the plugin to use the yes-its-old-but-still-semantically-correct way of keeping the labels outside of the input tags, or offer that as an option in the form’s setup – I know some people might like the label wrapping because of the ease of styling, some may choose not to so that they can base CSS styles on the state of the input.


    Anonymous
    Inactive

    I have a filter setup to use a custom taxonomy that is hierarchical (custom categories), and each category has at least a few (and in some cases a lot) of child categories.

    I would like to have the initial list displayed hide the child categories – no problem there, was easy to do with CSS given that the UL tags are already given the class of “children”.

    However, I have been struggling for hours with trying to get those child category lists to show when the parent category is checked…..I’ve tried every combination of selectors possible.

    I would prefer to avoid javascript if possible, and I’m pretty sure this should be possible using CSS only, but I could use some help with it.

    So far what I have is this in my stylesheet:

    form#search-filter-form-102 li ul li ul.children { display: none; } //works fine
    form#search-filter-form-102 li > input:checked + ul.children {display: block;} //doesn’t work

    I’ve tried using li > input:checked > ul.children but that doesn’t work either.

    Any ideas?

    #13684

    Anonymous
    Inactive

    http://myhelps.ru/wp-content/uploads/2015/03/1.png – my catalog style

    and look on photo when i switch off filter – http://myhelps.ru/wp-content/uploads/2015/03/2v2.png – very big images,,, not have grid !

    #13577

    Anonymous
    Inactive

    Another suggestion (maybe you already thought of it): if certain terms don’t contain any content after filtering, an extra class will be added, so they can be styled as ‘inactive’. So <li class=”sf-item-3285″> would become something like <li class=”sf-item-3285 inactive”>.

    Thanks again!

    #13234

    In reply to: Complex template query


    Anonymous
    Inactive

    Thanks for the reply Ross……I think the problem is that previously (before using the SP plugin or making any attempt to filter the results), I used the get_posts style of query in order to compare one of the meta keys holding a (expiration) date to the current date, and to not display results for those posts where the meta-value date had passed…..then I used a foreach loop and setup_postdata to access all the meta data. That query worked perfectly – returned results unless the date had passed. All was great until I was asked to add some live filtering of the results.

    And I did figure out (rather easily) how to use the meta data to setup the same comparison in the “advanced” setting in the SP plugin, so the SP query does weed out those posts whose meta date has passed, so all was good there – I did get the expected posts returned. The only thing was that the “results.php” file that displays the results has a custom query variable ($query->the_post) most likely using wp_query rather than get_posts, and that does not seem to work with setup_postdata – because as near as I can tell, setup_postdata only seems to work with ‘foreach’, not ‘while’ loops….and foreach seems only to work with get_posts.

    As mentioned, I’m not a coder, so there’s likely a better way to do what I’m trying to do, but it took me many, many days of research and testing to get my (old) query just right, it just wasn’t further filterable without your plugin.

    NOW I do have everything working just great, but using the ACF “get_field” and “the_field” instead of get_post_meta – formatting dates is working great too…..so really I’m a pretty happy camper today…..I just wish I was more skilled with programming, I might have found a cleaner way….

    But I really do love this plugin…..it’s very impressive. I’m off to give the free version (which I tested first) a great review on the repository and give a shout-out to the paid version, which is even better. I always do that when I find a worthy plugin. 🙂

Viewing 10 results - 451 through 460 (of 496 total)