WordPress.org

Making WordPress.org

Ticket #4117: support_homepage_fix.diff

File support_homepage_fix.diff, 8.7 KB (added by dufresnesteven, 20 months ago)

Updates heading structure for wporg-support. Does not address issues in handbook.

  • wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-forums-homepage.php

    diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-forums-homepage.php wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-forums-homepage.php
    index d229ba9f5..3c2d24f37 100644
     
    1414
    1515<div class="themes-plugins">
    1616       
    17         <h3><?php _e( 'Themes and Plugins', 'wporg-forums' ); ?></h3>
     17        <h2 class="heading"><?php _e( 'Themes and Plugins', 'wporg-forums' ); ?></h2>
    1818        <p><?php
    1919                /* translators: 1: Theme Directory URL, 2: Appearance icon, 3: Plugin Directory URL, 4: Plugins icon */
    2020                printf( __( 'Looking for help with a specific <a href="%1$s">%2$s theme</a> or <a href="%3$s">%4$s plugin</a>? Head to the theme or plugin\'s page and find the "View support forum" link to visit the theme or plugin\'s individual forum.', 'wporg-forums' ),
  • wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-single-forum-homepage.php

    diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-single-forum-homepage.php wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-single-forum-homepage.php
    index bf7e41bef..83b274dcb 100644
     
    11<div id="bbp-forum-<?php bbp_forum_id(); ?>" <?php bbp_forum_class( bbp_get_forum_id(), array( '' ) ); ?>>
    22
    3         <a class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>" title="<?php bbp_forum_title(); ?>"><h3><?php bbp_forum_title(); ?></h3></a>
     3        <a class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>" title="<?php bbp_forum_title(); ?>"><h2 class="heading"><?php bbp_forum_title(); ?></h2></a>
    44
    55        <p><?php bbp_forum_content(); ?></p>
    66
  • wordpress.org/public_html/wp-content/themes/pub/wporg-support/front-page.php

    diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-support/front-page.php wordpress.org/public_html/wp-content/themes/pub/wporg-support/front-page.php
    index d81109cd1..ae8493e03 100644
    get_header(); ?> 
    2020                        <hr>
    2121
    2222                        <div id="helphub-forum-link" class="text-center">
    23                                 <h3><?php esc_html_e( 'Support Forums', 'wporg-forums' ); ?></h3>
     23                                <h2 class="heading"><?php esc_html_e( 'Support Forums', 'wporg-forums' ); ?></h2>
    2424
    2525                                <p>
    2626                                        <span>
  • wordpress.org/public_html/wp-content/themes/pub/wporg-support/page-homepage.php

    diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-support/page-homepage.php wordpress.org/public_html/wp-content/themes/pub/wporg-support/page-homepage.php
    index 05ea8d831..135f32248 100644
    get_header(); ?> 
    2929                                                /* translators: dashicon class name for 'Welcome to Support' section. Do not translate into your own language. */
    3030                                                esc_attr_e( 'dashicons-sos', 'wporg-forums' );
    3131                                        ?>"></span>
    32                                         <h3><?php _e( 'Welcome to Support', 'wporg-forums' ); ?></h3>
     32                                        <h2 class="heading"><?php _e( 'Welcome to Support', 'wporg-forums' ); ?></h2>
    3333                                        <p><?php _e( 'Our community-based Support Forums are a great place to learn, share, and troubleshoot.', 'wporg-forums' ); ?></p>
    3434                                        <p><?php _e( '<a href="https://wordpress.org/support/welcome/">Get started</a>', 'wporg-forums' ); ?></p>
    3535                                </div>
    get_header(); ?> 
    4040                                                /* translators: dashicon class name for 'Documentation' section. Do not translate into your own language. */
    4141                                                esc_attr_e( 'dashicons-portfolio', 'wporg-forums' );
    4242                                        ?>"></span>
    43                                         <h3><?php _e( 'Documentation', 'wporg-forums' ); ?></h3>
     43                                        <h2 class="heading"><?php _e( 'Documentation', 'wporg-forums' ); ?></h2>
    4444                                        <p><?php _e( 'Your first stop where you\'ll find information on everything from installing to creating plugins.', 'wporg-forums' ); ?></p>
    4545                                        <p><?php _e( '<a href="https://wordpress.org/support/">Explore documentation</a>', 'wporg-forums' ); ?></p>
    4646                                </div>
    get_header(); ?> 
    5151                                                /* translators: dashicon class name for 'Get Involved' section. Do not translate into your own language. */
    5252                                                esc_attr_e( 'dashicons-hammer', 'wporg-forums' );
    5353                                        ?>"></span>
    54                                         <h3><?php _e( 'Get Involved', 'wporg-forums' ); ?></h3>
     54                                        <h2 class="heading"><?php _e( 'Get Involved', 'wporg-forums' ); ?></h2>
    5555                                        <p><?php _e( 'The Support Handbook is great for tips, tricks, and advice regarding giving the best support possible.', 'wporg-forums' ); ?></p>
    5656                                        <p><?php _e( '<a href="https://make.wordpress.org/support/handbook/">Explore the Handbook</a>', 'wporg-forums' ); ?></p>
    5757                                </div>
    get_header(); ?> 
    7474
    7575                <section class="clear helpful-links">
    7676                        <div>
    77                                 <h3><?php _e( 'Helpful Links', 'wporg-forums' ); ?></h3>
     77                                <h2 class="heading"><?php _e( 'Helpful Links', 'wporg-forums' ); ?></h2>
    7878                                <ul class="meta-list">
    7979                                        <li><?php _e( '<a href="https://wordpress.org/support/article/new_to_wordpress_-_where_to_start/">New to WordPress &mdash; Where to Start</a>', 'wporg-forums' ); ?></li>
    8080                                        <li><?php _e( '<a href="https://wordpress.org/support/article/faq-installation/">Frequently Asked Questions about Installing WordPress</a>', 'wporg-forums' ); ?></li>
  • wordpress.org/public_html/wp-content/themes/pub/wporg-support/sass/site/_bbpress.scss

    diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-support/sass/site/_bbpress.scss wordpress.org/public_html/wp-content/themes/pub/wporg-support/sass/site/_bbpress.scss
    index ceca363a9..b37e083b9 100644
    $paginationBreakPoint: "600px"; 
    4646                                text-decoration: none;
    4747                        }
    4848
    49                         h3 {
     49                        h3,
     50                        .heading {
    5051                                font-size: 1.4rem;
    5152                                margin-bottom: 0;
    5253                                margin-top: 0;
    5354                        }
    5455
     56                        .heading {
     57                                color: #23282d;
     58                        }
     59
    5560                        p {
    5661                                color: #666;
    5762                        }
    select { 
    847852                max-width: 20rem;
    848853                margin: 0 auto 4rem;
    849854
    850                 h3 {
     855                h3,
     856                .heading {
    851857                        margin-top: 1rem;
    852858                }
    853859
    select { 
    925931                        }
    926932                }
    927933
    928                 h3 {
     934                h3,
     935                .heading {
    929936                        font-size: 1.4rem;
    930937                        margin-bottom: 0;
    931938                        margin-top: 0;
  • wordpress.org/public_html/wp-content/themes/pub/wporg-support/sass/typography/_headings.scss

    diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-support/sass/typography/_headings.scss wordpress.org/public_html/wp-content/themes/pub/wporg-support/sass/typography/_headings.scss
    index 9d3c4814c..e85fd765e 100644
    h2 { 
    2828        font-weight: 300;
    2929}
    3030
    31 h3 {
     31h3,
     32.heading {
    3233        font-size: ms( 4 );
    3334        font-weight: 400;
    3435}
  • wordpress.org/public_html/wp-content/themes/pub/wporg-support/template-parts/bbpress-front.php

    diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-support/template-parts/bbpress-front.php wordpress.org/public_html/wp-content/themes/pub/wporg-support/template-parts/bbpress-front.php
    index b901879c3..7c7b742ce 100644
     
    2222                                        esc_attr_e( 'dashicons-sos', 'wporg-forums' );
    2323                                        ?>
    2424                                        "></span>
    25                         <h3><?php _e( 'Welcome to Support', 'wporg-forums' ); ?></h3>
     25                        <h2 class="heading"><?php _e( 'Welcome to Support', 'wporg-forums' ); ?></h2>
    2626                        <p><?php _e( 'Our community-based Support Forums are a great place to learn, share, and troubleshoot.', 'wporg-forums' ); ?></p>
    2727                        <p><?php _e( '<a href="https://wordpress.org/support/welcome/">Get started</a>', 'wporg-forums' ); ?></p>
    2828                </div>
     
    3535                                        esc_attr_e( 'dashicons-portfolio', 'wporg-forums' );
    3636                                        ?>
    3737                                        "></span>
    38                         <h3><?php _e( 'Documentation', 'wporg-forums' ); ?></h3>
     38                        <h2 class="heading"><?php _e( 'Documentation', 'wporg-forums' ); ?></h2>
    3939                        <p><?php _e( 'Your first stop where you\'ll find information on everything from installing to creating plugins.', 'wporg-forums' ); ?></p>
    4040                        <p><?php _e( '<a href="https://wordpress.org/support/">Explore documentation</a>', 'wporg-forums' ); ?></p>
    4141                </div>
     
    4848                                        esc_attr_e( 'dashicons-hammer', 'wporg-forums' );
    4949                                        ?>
    5050                                        "></span>
    51                         <h3><?php _e( 'Get Involved', 'wporg-forums' ); ?></h3>
     51                        <h2 class="heading"><?php _e( 'Get Involved', 'wporg-forums' ); ?></h2>
    5252                        <p><?php _e( 'The Support Handbook is great for tips, tricks, and advice regarding giving the best support possible.', 'wporg-forums' ); ?></p>
    5353                        <p><?php _e( '<a href="https://make.wordpress.org/support/handbook/">Explore the Handbook</a>', 'wporg-forums' ); ?></p>
    5454                </div>