Making WordPress.org

Changeset 10958


Ignore:
Timestamp:
05/06/2021 02:57:43 PM (5 years ago)
Author:
ryelle
Message:

Main Theme: 40% of the Web page updates

Clean up some styling. Add the meta title, description, and image for social media. Update the template name so it can be used correctly on rosetta sites.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/css/page-40-percent-style.css

    r10951 r10958  
    7272._40p-timeline-header {
    7373        position: relative;
     74        margin-top: 70px;
    7475}
    7576
    … …  
    8283
    8384@media (max-width: 781px) {
     85        ._40p-timeline-header {
     86                margin-top: 0;
     87        }
     88
    8489        ._40p-timeline-header ._40p-timeline-title {
    8590                font-size: 40px;
    … …  
    185190}
    186191
     192._40p-timeline-block .ctl-instant-timeline .timeline-content:focus {
     193        outline: none;
     194}
     195
    187196._40p-timeline-block .ctl-instant-timeline .timeline-content::before {
    188197        display: none;
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/inc/page-meta-descriptions.php

    r10297 r10958  
    169169                        $title = esc_html_x( 'Source Code', 'Page title', 'wporg' );
    170170                        $desc  = esc_html__( 'See how WordPress works under the hood, and contribute your own code to the world’s most popular content management system.', 'wporg' );
     171                        break;
     172
     173                case 'page-40-percent-of-web.php':
     174                        $title = esc_html_x( 'WordPress and the Journey to 40% of the Web', 'Page title', 'wporg' );
     175                        $desc  = esc_html__( 'Getting to 40% of the web came with lots of hard work from our amazing WordPress community.', 'wporg' );
    171176                        break;
    172177        }
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-40-percent-of-web.php

    r10953 r10958  
    11<?php
    22/**
    3  * Template Name: About -> Security
     3 * Template Name: 40% Milestones Page
    44 *
    5  * Page template for displaying the Security page.
     5 * Page template for displaying the "40% of the web" page.
    66 *
    77 * @package WordPressdotorg\MainTheme
    … …  
    99
    1010namespace WordPressdotorg\MainTheme;
    11 
    12 // Prevent Jetpack from looking for a non-existent featured image.
    13 add_filter( 'jetpack_images_pre_get_images', function() {
    14         return new \WP_Error();
    15 } );
    1611
    1712/* See inc/page-meta-descriptions.php for the meta description for this page. */
Note: See TracChangeset for help on using the changeset viewer.