How could I add the sidebar widget also to the frontpage

Hi all,

I like to add the sidebar widgets like http://goldendoodle-in-love.de/finn here
also on the frontpage http://goldendoodle-in-love.de/ below the slider.

Any idea?

Thanks Dirk

Dear Dirk,

Thank you for reaching out to us here. To show the sidebar on posts archive with masonry layout, you should edit the following files in child theme mode:

  • home.php
  • archive.php

Replace these lines:


if ( get_theme_mod('blog_layout','classic') == 'classic' ) :
get_sidebar();
endif;

with :


get_sidebar();

Then apply the following CSS code into your child theme’s style.css:


@media only screen and (min-width:992px){
  
  .masonry-layout.col-md-9{
    width: 75% !important; 
  }
  
}

@media only screen and (min-width:1200px){
  
  .masonry-layout .hentry{
    width: 400px !important;
  }   
  
}  

@media only screen and (min-width:992px) and (max-width:1199px){
  
  .masonry-layout .hentry{
    width: 330px !important;
  } 
  
}  

Regards,
Kharis