• I use WP as a Photo gallery. Updated to twentyseven and cannot increase the page width anymore.
    In twentysix I increased the page width in its child theme as follows:
    page-wide.php;
    <?php
    get_header(); ?>
    <div id=”primary” class=”content-area-wide”>
    <main id=”main” class=”site-main” role=”main”>
    <?php
    // Start the loop.
    while ( have_posts() ) : the_post();
    // Include the page content template.
    get_template_part( ’template-parts/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();
    }
    // End of the loop.
    endwhile;
    ?>
    </main><!– .site-main –>
    <?php get_sidebar( ‘content-bottom’ ); ?>
    </div><!– .content-area-wide –>
    <?php get_footer(); ?>

    AND

    style.css;

    .content-area-wide {
    float: left;
    margin-right: -100%;
    width: 100%;
    }

    .content-area-wide .entry-content {
    margin-right: 5%;
    margin-left: 5%;
    }

    How to adapt in Twenty Seven?

1 reactie aan het bekijken (van in totaal 1)
1 reactie aan het bekijken (van in totaal 1)
  • Het onderwerp ‘Twenty Seven page width adjustment’ is gesloten voor nieuwe reacties.