Forums Forums Search Search Results for 'results.php'

Viewing 10 results - 811 through 820 (of 1,224 total)
  • Author
    Search Results
  • #77439

    Trevor
    Participant

    Great, then you can make a custom results.php. See the documentation here on how to start.

    Where it shows the WordPress function the_excerpt, use the_content

    Move the bits around, change the HTML tags, add HTML markup, add theme CSS classes, delete bits, as you need.

    #76988

    In reply to: Will this be possible?


    Trevor
    Participant

    Hi Rico

    Great to talk with you. For now you are going to make a test search/results page to use the Shortcode method and put a copy of the results.php file in a search-filter sub-folder of your theme and base that on pages for now, where you might have a category to designate those that are the pages you want to index. and then to use the Include category setting to restrict the search to just those pages.

    Then, when the search works OK, all we have to do is modify the results.php to make it look as you want it to.

    Let’s hope that all works as anticipated. I will wait for you to get back to me.

    #76984

    Trevor
    Participant

    Is there a list of other script output parameters we can use to display in results.php?

    If you identify what you want to display, the code can be found in either the WordPress codex, on the WordPress StackExchange or in the documentation/forums of any plugin (like ACF). I can guide you if you need, but let me know what you want to show?

    As far as scripts are concerned, what theme are you using? Many themes have a page where you can add scripts, otherwise there are plugins and other methods to do much the same. I just need to know what you have so I can recommend what best suits you. Clearly, the plugin route is easiest.

    The radio button styling needs some Custom CSS. Again, how you add this is the same as for the script:

    .searchandfilter li[data-sf-field-input-type="checkbox"] label, .searchandfilter li[data-sf-field-input-type="radio"] label, .searchandfilter li[data-sf-field-input-type="range-radio"] label, .searchandfilter li[data-sf-field-input-type="range-checkbox"] label {
        padding-left: 20px !important;
    }
    #76922

    Anonymous
    Inactive

    I looked at results.php and I deleted the category, tags, date so they do not display in page. Is there a list of other script output parameters we can use to display in results.php?

    So I still need to know what search page and where to paste your script to display results in grid.

    Also I noticed the radio checkmarks are too close to category text in the search form. How do I format it to give some space in between.

    This is what I have so far using shortcode in sidebar
    http://www.sweetdreamsstudio.com/blog/

    #76920

    Anonymous
    Inactive

    hi

    I am not familiar with editing scripts. I just use default theme settings mostly.
    So where would I find search page to paste this script code? and where in page do I paste script?

    I followed directions and copied results.php from search filter pro folder into my themes folder. Now what?

    Also how do I remove the category tags and the date displayed in results page?

    #76908

    In reply to: Conflict with Navi


    Anonymous
    Inactive

    Ha Trevor, don’t know where I was getting the Navi from…..must have been a template from the past, apologies for the confusion. Anyways, I am just looking for the path forwards so I can start getting the site underway. If I can edit the results page to show post results in a grid format I will be good with that. From what I have read, it seems I can do that by editing the results.php? Is this correct? Thanks

    #76474

    Trevor
    Participant

    Hi

    You blog page uses Masonry to position and size the posts in the grid, so it will be necessary to trigger this script after the S&F Ajax has finished re-loading the grid. At some point you will need to discover what function (name) your theme uses to do this, but that is for later. We have a sample script that you would use to do this, which you would need to load on the search page:

    (function ( $ ) {
      "use strict";
      $(document).on("sf:ajaxfinish", ".searchandfilter", function(){
        console.log("S&F JS ajax request finished");
        // ** here you need to reload your masonry script **
      });
    }(jQuery));

    The other thing we need to do is to customize the S&F Pro results.php template. If you have not done so yet, follow the documentation:

    https://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/#Customising_the_Results

    So that you have a copy of this template file in a search-filter sub-folder your (child) theme folder, ready to edit.

    #76323

    In reply to: Search results dates


    Trevor
    Participant

    If you are using the shortcode method and can edit the results.php file, see this post:

    https://support.searchandfilter.com/forums/topic/display-results-date/#post-76321

    #76321

    In reply to: Display results date


    Trevor
    Participant

    There 6 results, the last three do not have dates because they are the same as the preceding post. If you have followed the customizing guidance and can edit the results.php file, find line 65:

    <p><small><?php the_date(); ?></small></p>

    and edit that to:

    <p><small><?php echo get_the_date(); ?></small></p>

    I think that will then cause it to do what you want.

    #76312

    Trevor
    Participant

    You are using the Shortcode Display method from what I can see? That should be using the results.php template from our plugin, but the results do not appear to be doing that?

Viewing 10 results - 811 through 820 (of 1,224 total)