• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress a2z

WordPress a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / twentyfourteen_widgets_init() – Register three Twenty Fourteen widget areas.

You appear to be a bot. Output may be restricted

Description

Register three Twenty Fourteen widget areas.

Usage

twentyfourteen_widgets_init();

Parameters

Returns

void

Source

File name: twentyfourteen/functions.php
Lines:

1 to 38 of 38
function twentyfourteen_widgets_init() {
  require get_template_directory() . '/inc/widgets.php';
  register_widget( 'Twenty_Fourteen_Ephemera_Widget' );

  register_sidebar(
    array(
      'name'          => __( 'Primary Sidebar', 'twentyfourteen' ),
      'id'            => 'sidebar-1',
      'description'   => __( 'Main sidebar that appears on the left.', 'twentyfourteen' ),
      'before_widget' => '<aside id="%1$s" class="widget %2$s">',
      'after_widget'  => '</aside>',
      'before_title'  => '<h1 class="widget-title">',
      'after_title'   => '</h1>',
    )
  );
  register_sidebar(
    array(
      'name'          => __( 'Content Sidebar', 'twentyfourteen' ),
      'id'            => 'sidebar-2',
      'description'   => __( 'Additional sidebar that appears on the right.', 'twentyfourteen' ),
      'before_widget' => '<aside id="%1$s" class="widget %2$s">',
      'after_widget'  => '</aside>',
      'before_title'  => '<h1 class="widget-title">',
      'after_title'   => '</h1>',
    )
  );
  register_sidebar(
    array(
      'name'          => __( 'Footer Widget Area', 'twentyfourteen' ),
      'id'            => 'sidebar-3',
      'description'   => __( 'Appears in the footer section of the site.', 'twentyfourteen' ),
      'before_widget' => '<aside id="%1$s" class="widget %2$s">',
      'after_widget'  => '</aside>',
      'before_title'  => '<h1 class="widget-title">',
      'after_title'   => '</h1>',
    )
  );
}
 

 View on Trac

Published: 19th December 2019 | Last updated: 19th December 2019

Primary Sidebar

Information

Function name: twentyfourteen_widgets_init
Plugin ref: Twenty Fourteen
Version: 3.5
Sourcefile: functions.php
File ref: functions.php
Deprecated?: No
API Letters: I,T,W

Footer

WordPress a2z
WordPress a2z
WordPress Dynamic API Reference
WordPress 6.1.1. PHP: 8.0.28
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  wp-a2z.org
© Copyright WordPress a2z 2014-2023. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites