Okay
  Public Ticket #1202142
Blog template
Closed

Comments

  •  2
    Michele started the conversation

    Hi,

    I need to change the default blog template to full-width to grid (class="one-third" post, I means, 3 for row).

    I have tried to change blog.php but nothing happen.

    Which is the correct file?

    thank you

  •  583
    Theme replied

    Hi,

    WordPress behaves strangely with the template blog.php. When you do not select a page that uses this template to be the Posts list in Settings -> Reading, then you can use this template - for example, to have a list of posts on some page like Posts or something.

    As soon as you set your page that you called Blog and used the Blog index template as the Settings -> Reading -> Post list page, WordPress ignores the blog.php template and instead uses the home.php or index.php

    So, the template you are looking for in our case is index.php

    Best regards,

    themeenergy support

  •  2
    Michele replied

    But if i use index.php I change also the home page of site or some others pages?

    tnx

  •  583
    Theme replied

    Hi,

    No, byt_home.php is the home page.

    Other pages also have their own templates.

    You can copy index.php and rename it as home.php and edit this home.php (this is according to WordPress template hierarchy, not some rule of our theme).

    byt_home.php will be used for the home page.

    home.php will be used for the blog page.

    Best regards,

    themeenergy support

  •  2
    Michele replied

    Hi,

    I have changed the file that you told me, but there some error in css style page.

    Could you please tell me why the page blog shows 3 colums on the first row and then just one colum?

    thank you

    Attached files:  2017-06-16_1735.png

  •  583
    Theme replied

    Hello,

    that happens due to different image dimensions.

    The following css code will help:

    .blog .entry-featured {height:225px;overflow:hidden;}

    Thank you

    Best regards,

    themeenergy support

  •  2
    Michele replied

    Hi,

    I can't see any code: (where is that code)

    .blog .entry-featured {height:225px;overflow:hidden;}
    

    Attached files:  2017-06-19_1441.png

  •  583
    Theme replied

    Hi,

    Please add the code to your child theme style.css.

    Best regards,

    themeenergy support

  •  2
    Michele replied

    Hi,

    I have added the code to my  child theme style.css but nothing happen (in anonymize windows)

    thank you!!!

    Attached files:  2017-06-19_1441.png

  •  583
    Theme replied

    Hello,

    I am actually unable to see the code at all in your child theme.

    The code has been tested and it has to work.

    Best regards,

    themeenergy support

  •  2
    Michele replied

    NOw it works.

    From server side was activeted a cache system.

    thank you

  •  583
    Theme replied

    You are welcome.

    Best regards,

    themeenergy support