Forums › Forums › Search & Filter Pro › Visual Results?
Tagged: Genesis, grid, results.php, shortcode
- This topic has 26 replies, 2 voices, and was last updated 7 years, 5 months ago by Trevor.
-
Trevor(Private) July 1, 2017 at 9:29 am #118129
Good morning Sarah
The test page is set to have the left (Primary) sidebar plus main content layout now. The test site has 2 new plugins:
# Simple Custom CSS (see in Appearance -> Custom CSS), which allows you to add CSS to the theme. The CSS I have added makes it more as you asked for (I think).
# Widget Logic (you added this yesterday), which allows you to decide which widgets appear on which pages (and so much more), see any widget in the Primary Sidebar, open the widget settings and see at the bottom where I have excluded them from, or included the search form on, the search page we set up.
Does that look better?
Trevor(Private) July 1, 2017 at 10:32 am #118140BTW, this is the grid making results.php I used for your genesis theme:
<?php /** * Search & Filter Pro * * Sample Results Template * * @package Search_Filter * @author Ross Morsali * @link http://www.designsandcode.com/ * @copyright 2015 Designs & Code * * Note: these templates are not full page templates, rather * just an encaspulation of the your results loop which should * be inserted in to other pages by using a shortcode - think * of it as a template part * * This template is an absolute base example showing you what * you can do, for more customisation see the WordPress docs * and using template tags - * * http://codex.wordpress.org/Template_Tags * */ if ( $query->have_posts() ) { ?> Found <?php echo $query->found_posts; ?> Results<br /> Page <?php echo $query->query['paged']; ?> of <?php echo $query->max_num_pages; ?><br /> <div class="pagination"> <div class="nav-previous"><?php next_posts_link( 'Older posts', $query->max_num_pages ); ?></div> <div class="nav-next"><?php previous_posts_link( 'Newer posts' ); ?></div> <?php /* example code for using the wp_pagenavi plugin */ if (function_exists('wp_pagenavi')) { echo "<br />"; wp_pagenavi( array( 'query' => $query ) ); } ?> </div> <?php $odd_check = 1; $first_check = 1; while ($query->have_posts()) { $query->the_post(); if ( $odd_check == 1 ) { $odd_class = " odd"; } else { $odd_class = ""; } if ( $first_check == 1 ) { $first_class = " first"; } else { $first_class = ""; } ?> <article class="simple-grid one-third<?php echo $odd_class;?><?php echo $first_class;?> post-<?php echo get_the_ID();?> post type-post status-publish format-standard entry"> <a href="<?php the_permalink(); ?>" class="alignnone"> <?php the_post_thumbnail("small");?> </a> <header class="entry-header"> <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> </header> </article> <?php $odd_check++; if ( $odd_check == 3 ) $odd_check = 1; $first_check++; if ( $first_check == 4 ) $first_check = 1; } ?> <div style="clear: both;"> Page <?php echo $query->query['paged']; ?> of <?php echo $query->max_num_pages; ?> </div> <div class="pagination"> <div class="nav-previous"><?php next_posts_link( 'Older posts', $query->max_num_pages ); ?></div> <div class="nav-next"><?php previous_posts_link( 'Newer posts' ); ?></div> <?php /* example code for using the wp_pagenavi plugin */ if (function_exists('wp_pagenavi')) { echo "<br />"; wp_pagenavi( array( 'query' => $query ) ); } ?> </div> <?php } else { echo "No Results Found"; } ?>
-
AuthorPosts