Before you ask please READ THIS

Home page as a Blog with slider Theme Superior

edited October 2014 in Superior Posts: 25
Hello i have a simple question, i need my front page to be a blog but keeping the slider from the home view, is that possible? if yes, how i can do this, i can't find a way to do it , pretty much i like the site look with this structure, http://www.mlwebco.com/ slider, blog and side right section and custom footer
Ill really appreciate any help
Fabiola

Comments

  • AirAir
    Posts: 10,970
    Hello:-)

    It is not possible in easy way, but we are thinking hard how you could do it. And I think there is one way to do it:-)

    Go to file superior/index.php and in line 26 change this:
    
        <div id="col-mask">
    
    to
    
        <div id="col-mask">
    		<?php
    			if(is_home()){
    				echo '<div class="real-content" style="float: left; width: 100%; position: relative; left: 25%;">';
    
    				$blog_postid = get_option( 'page_for_posts');//This is page id of blog page
    				$content_post = get_post($blog_postid);
    				$content = $content_post->post_content;
    				$content = apply_filters('the_content', $content);
    				$content = str_replace(']]>', ']]&gt;', $content);
    				echo $content;
    
    				echo '</div>';
    			}
    
    		?>
    
    Now you can add slider with builder to blog page editor. It is same way you add it for homepage:-)

    Hope that helps.

    With regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion