• Resolved Allerg3n

    (@allerg3n)


    Hello,

    Thank you for releasing this theme – it’s very robust and well thought out.

    I know the design team is contemplating adding in more sidebar options with the next release, but I was wondering if it is (or will be) possible to have a sidebar on the main page? I have set the page templates to have a sidebar, but if I use the page as a static homepage, no sidebar will display.

    Is there any way to add the sidebar to a static main page, or have I missed the boat somewhere?

    Thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Fruitful Code

    (@fruitfulcode)

    Allerg3n,

    Theme don’t have options for this.
    You will need to create new template for front page and add sidebar to it.

    You can hire our specialist for any type of custom development on our website.

    klaustar

    (@klaustar)

    I had the same issue. I made a quick and dirty solution.It works fine for me.

    <?php
    /**
     * The template for displaying Home Page.
     *
     * @package WordPress
     * @subpackage Fruitful theme
     * @since Fruitful theme 1.0
     */
    
     get_header(); ?>
    		<?php if (get_option('page_on_front') != 0) {?>
    		<div class="eleven columns alpha">
    			<div id="primary" class="content-area">
    				<div id="content" class="site-content" role="main">
    					<?php echo '<div class="content">';
    						while ( have_posts() ) : the_post();
    							the_content();
    						endwhile; // end of the loop.
    					echo '</div>';?>
    			</div><!-- #content .site-content -->
    			</div><!-- #primary .content-area -->
    			</div>
    		<div class="five columns omega">
    			<?php get_sidebar('page'); ?>
    		</div>
    			<?
    			  } else {
    					echo '<div class="eleven columns alpha">';
    						echo '<div id="primary" class="content-area">';
    							echo '<div id="content" class="site-content" role="main">';
    					if ( have_posts() ) :
    						//fruitful_content_nav( 'nav-above' );
    						/* Start the Loop */
    						while ( have_posts() ) : the_post();
    							/* Include the Post-Format-specific template for the content.
    							* If you want to overload this in a child theme then include a file
    							* called content-___.php (where ___ is the Post Format name) and that will be used instead.
    							*/
    							get_template_part( 'content', get_post_format() );
    
    						endwhile;
    						fruitful_content_nav( 'nav-below' );
    					elseif ( current_user_can( 'edit_posts' ) ) :
    						get_template_part( 'no-results', 'index' );
    					endif; 
    
    			echo '</div><!-- #content .site-content -->';
    		echo '</div><!-- #primary .content-area -->';
    	echo '</div>';
    	echo '<div class="five columns omega">';
    		  get_sidebar('blogright');
    	echo '</div>';
    	} ?>
    
    <?php get_footer(); ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sidebar on static main page’ is closed to new replies.