Make WordPress Core

Ticket #39272: 39272.1.patch

File 39272.1.patch, 1.9 KB (added by laurelfulford, 8 years ago)
  • src/wp-content/themes/twentyseventeen/front-page.php

     
    1212 * @version 1.0
    1313 */
    1414
     15if ( 'one-column' === get_theme_mod( 'page_layout' ) && isset( $GLOBALS['content_width'] ) ) {
     16        $GLOBALS['content_width'] = 644;
     17}
     18
    1519get_header(); ?>
    1620
    1721<div id="primary" class="content-area">
  • src/wp-content/themes/twentyseventeen/functions.php

     
    199199 */
    200200function twentyseventeen_content_width() {
    201201
    202         $content_width = 700;
     202        $content_width = 525;
    203203
    204         if ( twentyseventeen_is_frontpage() ) {
    205                 $content_width = 1120;
    206         }
    207 
    208204        /**
    209205         * Filter Twenty Seventeen content width of the theme.
    210206         *
  • src/wp-content/themes/twentyseventeen/page.php

     
    1515 * @version 1.0
    1616 */
    1717
     18if ( 'one-column' === get_theme_mod( 'page_layout' ) && isset( $GLOBALS['content_width'] ) ) {
     19        $GLOBALS['content_width'] = 740;
     20}
     21
    1822get_header(); ?>
    1923
    2024<div class="wrap">
  • src/wp-content/themes/twentyseventeen/single.php

     
    1010 * @version 1.0
    1111 */
    1212
     13if ( ! is_active_sidebar( 'sidebar-1' ) && isset( $GLOBALS['content_width'] ) ) {
     14        $GLOBALS['content_width'] = 740;
     15}
     16
    1317get_header(); ?>
    1418
    1519<div class="wrap">