Support » Theme: Blogg » Split select “Blog Layout” into two “Sidebar Layout” and “Category Layout”

  • I do not insist and I do not urgently need it, but in the long term it would be convenient if it is interesting for you to improve the theme 🙂

    The 2-column tile fold is useful not only for pages without a side menu.
    Settings -> Theme Options -> Blog Settings
    It would be useful to do instead of one

    <select id="_customize-input-blogg_blog_layout" data-customize-setting-link="blogg_blog_layout">
    <option value="default">Default Right Sidebar</option>
    <option value="default-left">Default Left Sidebar</option>
    <option value="grid" selected="selected">Grid Full Width</option>
    </select>

    separately two select – “Sidebar Layout” for the side menu
    and “Category Layout” for the layout of news:
    “in 1 column with large photos”,
    “in 1 column of photos on the left, heading on the right”,
    “in 2 columns with tiles”.

    It is of course cultural to do it with the settings. I tried to do some loosened PHP code in index.php to get familiar with the theme code. This is not difficult:

                    case "grid":
                        // grid full width
                        // echo '<div id="primary" class="content-area row"><main id="main" class="site-main col-lg-12"><ul id="grid" class="row row-eq-height">';
                        echo '<div id="primary" class="content-area row"><main id="main" class="site-main col-lg-8 order-lg-2"><ul id="grid" class="row row-eq-height">';
                            while ( have_posts() ) : the_post();
                                get_template_part( 'template-parts/posts/content', get_post_format() );
                            endwhile;
                        // echo '</main></div></ul>';
                        echo '</main><div class="col-lg-4 order-3 order-lg-1">';        
                        get_sidebar(); 
                        echo '</div></div>';
                    break;

    screen – https://ibb.co/MkjftSL

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Split select “Blog Layout” into two “Sidebar Layout” and “Category Layout”’ is closed to new replies.