Additional Feature Boxes

Support Area Forums Bottega Additional Feature Boxes

Viewing 4 posts - 1 through 4 (of 4 total)
URL to the page in question:
  • Author
    Posts
  • #14044
    Rebecca Morency
    Participant

    Hi Bill,

    Is there a way to have more than one row of the feature boxes on the home page? I have a topic that breaks into 15 visuals and am picturing a home page of just clickable feature boxes (with your cool hover caption).

    Thanks.

    Becky

    #14048
    Bill Robbins
    Participant

    Becky,

    You can have more than 5 there. Here’s how you can change that:

    1. Go to the Appearance section in your WordPress control panel and select Edit.
    2. From the list of files on your right, choose page-home.php
    3. Find this line:
      
      <?php $recent = new WP_Query("cat=".of_get_option('features')."&posts_per_page=5"); while($recent->have_posts()) : $recent->the_post();?>
      

      and change the 5 there to 15.

    4. Scroll down just a bit and you’ll see this section:
      
      <?php 
      			   $args = array( 'orderby' => 'menu_order', 'order' => 'asc','posts_per_page' => '5',
      			   	'tax_query' => array(
      			   		array(
      			   			'taxonomy' => 'menu_group',
      			   			'field' => 'id',
      			   			'terms' => of_get_option('featured_menu')
      			   		)
      			   	)
      			   );
      			   $recent = new WP_Query( $args );
      			   
      			while($recent->have_posts()) : $recent->the_post(); ?>
      

      change the 5 here to 15 too.

    5. Save your changes.

    That should do it for you. If you have any questions or trouble, let me know,
    Bill

    #14066
    Rebecca Morency
    Participant

    Thanks! It’s turning out just as I pictured it.

    #14067
    Bill Robbins
    Participant

    Fantastic! Enjoy your evening.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Additional Feature Boxes’ is closed to new replies.