• 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 / twentytwentytwo_styles() – Enqueue styles.

You appear to be a bot. Output may be restricted

Description

Enqueue styles.

Usage

$void = twentytwentytwo_styles();

Parameters

Returns

void

Source

File name: twentytwentytwo/functions.php


Lines:

1 to 17 of 17
  function twentytwentytwo_styles() {
    // Register theme stylesheet.
    $theme_version = wp_get_theme()->get( 'Version' );

    $version_string = is_string( $theme_version ) ? $theme_version : false;
    wp_register_style(
      'twentytwentytwo-style',
      get_template_directory_uri() . '/style.css',
      array(),
      $version_string
    );

    // Enqueue theme stylesheet.
    wp_enqueue_style( 'twentytwentytwo-style' );

  }
 

 View on GitHub

Published: 25th January 2022 | Last updated: 9th June 2022

Primary Sidebar

Information

Function name: twentytwentytwo_styles
Plugin ref: Twenty Twenty-Two
Version: 1.3
Sourcefile: functions.php
File ref: functions.php
Deprecated?: No
API Letters: S,T

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