Advertisement
Tanver247

Untitled

Dec 16th, 2024
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.41 KB | None | 0 0
  1. <?php
  2. // Theme support
  3. function my_first_theme_setup() {
  4.    add_theme_support('title-tag'); // Dynamic title tag
  5.    add_theme_support('post-thumbnails'); // Featured images
  6. }
  7. add_action('after_setup_theme', 'my_first_theme_setup');
  8.  
  9. // Enqueue styles
  10. function my_first_theme_styles() {
  11.    wp_enqueue_style('main-style', get_stylesheet_uri());
  12. }
  13. add_action('wp_enqueue_scripts', 'my_first_theme_styles');
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement