Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter d4nl

    (@d4nl)

    It works for the content but doesn’t work for the page title.

    Thread Starter d4nl

    (@d4nl)

    I found this code which turns everything to one column:

    @media screen and (min-width: 48em) {
    body.page-two-column:not(.archive) #primary .entry-header,
    body.page-two-column:not(.archive) #primary .entry-content {
    float:none;
    width: 100%;}}

    and this other one which turns a two column panel into a one column panel and leaves the rest of the web as two column

    body.page-two-column:not(.archive).twentyseventeen-front-page #primary .entry-content,
    body.page-two-column:not(.archive).twentyseventeen-front-page #primary .entry-header,
    body.page-two-column:not(.archive).twentyseventeen-front-page .panel-content .recent-posts {
        float: none;
        width: auto;}

    I need exactly the opposite. Keep a 2 column panel and transform to a one column web. Any halp in how to modify the code is appreciated

    • This reply was modified 5 years, 11 months ago by d4nl.
    Thread Starter d4nl

    (@d4nl)

    Any ideas?

    Thread Starter d4nl

    (@d4nl)

    When you go to appeareance/customize/theme_options there is a ‘one column’ or ‘two column’ distribution option for the whole website, on twentyseventeen design.

    I would like to leave ‘two column’ distribution activated and then cancel it for some pages. It seems the ‘one/two column’ design is not coded in the page.php file but somewhere else where it affects the whole web.

    Thread Starter d4nl

    (@d4nl)

    Hi, I created my child theme and page template but I don’t see any one/two column option in the page text.

    Please could you assist?

    ——————————————————————————–
    <?php
    /*
    * Template Name: OneColumn
    *
    *
    * @package WordPress
    * @subpackage Twenty_Seventeen
    * @since Twenty Seventeen 1.0
    * @version 1.0
    */

    get_header(); ?>

    <div class=”wrap”>
    <div id=”primary” class=”content-area”>
    <main id=”main” class=”site-main” role=”main”>

    <?php
    while ( have_posts() ) :
    the_post();

    get_template_part( ‘template-parts/page/content’, ‘page’ );

    // If comments are open or we have at least one comment, load up the comment template.
    if ( comments_open() || get_comments_number() ) :
    comments_template();
    endif;

    endwhile; // End the loop.
    ?>

    </main><!– #main –>
    </div><!– #primary –>
    </div><!– .wrap –>

    <?php
    get_footer();

    ——————————————————————————–

    Thread Starter d4nl

    (@d4nl)

    Hi, thanks for quick reply!

Viewing 6 replies - 1 through 6 (of 6 total)