Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Ajay

    (@ajay)

    The only way to do that right now is to edit the plugin or create your own template file for the results

    Thread Starter phantasmix

    (@phantasmix)

    Hi Ajay,
    I created my own template (better-search-template.php in my theme) and for the most part I got it to look the way I want, but I don’t see a line that would help me get rid of that row. It doesn’t have a class either – that way I could at least hide it.

    Thanks!

    Plugin Author Ajay

    (@ajay)

    Can you post the code you’re using for the template right now?

    I’m rewriting some parts of this code to make it more class friendly

    Thread Starter phantasmix

    (@phantasmix)

    It’s pretty much the default ??

    <div class="better-search-form-bar">
     <?php $form = get_bsearch_form($s);
    	echo $form; ?></div>
    
    	<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'plastics' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
    
    	<?php echo get_bsearch_results($s,100); ?>
    
    	<div class="better-search-form-bar">
    	<?php echo $form; ?>
    </div>
    Plugin Author Ajay

    (@ajay)

    You could consider breaking down the get_bsearch_results code based on the code in the function. It should allow you to customise exactly what you want in the results.

    Thread Starter phantasmix

    (@phantasmix)

    I went the lazy route for moment: added a .hidden class to the ‘results-per-page’ table row right in the plugin file ??

    Thank you, awesome plugin.

    Plugin Author Ajay

    (@ajay)

    That definitely works. The next version should make things a bit better.

    Do consider leaving a good review ??

    I have a similar issue: I’d like to remove the relevance score and the date.
    I know I can do that by hiding them through css, but it would be great if I could define a custom template for the individual result, rather than having to edit the get_bsearch_results function.

    But don’t misunderstand this, I love this plugin and I’ll try to tweak it to make it do what I need. Thanks!

    Plugin Author Ajay

    (@ajay)

    Have you tried the Seamless Integration option? It will fit directly within your theme

    Yes, that’s what I ended up doing. Works beautifully.

    Plugin Author Ajay

    (@ajay)

    Thank you ??
    It’s going to be the default option in future plugin versions.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Remove "results-per-page"’ is closed to new replies.