Making WordPress.org


Ignore:
Timestamp:
06/03/2022 04:31:06 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Developer theme: Add a third footer section on the primary landing page.

This allows for easier editing of the widgets without making code changes.

Follow-up to [948], [7739].

Props robfelty, milana_cap, RMarks, TJNowell, tellyworth, SergeyBiryukov.
See #6338.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/functions.php

    r11901 r11903  
    254254        'name'          => __( 'Landing Page Footer - Center', 'wporg' ),
    255255        'id'            => 'landing-footer-2',
     256        'description'   => __( 'Appears in footer of the primary landing page', 'wporg' ),
     257        'before_widget' => '<div id="%1$s" class="widget box %2$s">',
     258        'after_widget'  => '</div>',
     259        'before_title'  => '<h4 class="widget-title">',
     260        'after_title'   => '</h4>',
     261    ) );
     262
     263    register_sidebar( array(
     264        'name'          => __( 'Landing Page Footer - Right', 'wporg' ),
     265        'id'            => 'landing-footer-3',
    256266        'description'   => __( 'Appears in footer of the primary landing page', 'wporg' ),
    257267        'before_widget' => '<div id="%1$s" class="widget box %2$s">',
Note: See TracChangeset for help on using the changeset viewer.