Z
Z
znokia2015-05-15 22:24:33
PHP
znokia, 2015-05-15 22:24:33

How to change content display on homepage in wordpress template?

There is a template for wordpress, in it the content on the main page is formed as a tape, you need to make the content appear in squares, such as on the site lenta.ru
Maybe there are such plugins, please tell me.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Goncharov, 2015-05-15
@agmegadeth

Oddly enough, but you yourself answered your own question) You need to change the template of the main page of your theme. The layout of this page is often located in the WP theme folder in the home.php file. Otherwise, look for the index.php file in the same place. With a little knowledge of html css you can do whatever you want with them.
And you can't get away with plugins.

Z
znokia, 2015-05-15
@znokia

index.php

<?php get_header(); ?>
<div id="primary" class="content-area">
  <div class="primary-inner">
    <div id="content" class="site-content content-list" role="main">
    <?php 
    if ( have_posts() ) : 
      while ( have_posts() ) : the_post(); 
        get_template_part( 'content', get_post_format() ); 
      endwhile;
      dw_minion_content_nav( 'nav-below' ); 
    else : 
      get_template_part( 'no-results', 'index' ); 
    endif; 
    ?>
    </div>
  </div>
</div>
<?php get_sidebar('secondary'); ?>
<?php get_footer(); ?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question