No you shouldn’t. This is not the theme’s job. Your theme’s header.php just needs to include wp_head()
, which will allow WordPress and plugins to add any necessary tags to the <head>
.
Related Posts:
- How to Handle CSS for Multiple Header header.php Files?
- add_theme_support( ‘custom-header’ ) does not add option menu in dashboard
- How to remove header images from all pages except the home page? skeleton theme
- Custom header images won’t appear when set to random
- How to Edit the style of header title of Twenty Eleven Theme?
- Hide header texts (Title & Tagline) in custom-header.php
- header_image not returning header image url
- How to remove WP Title Tag?
- How to enable admin to upload multiple images to support header carousel slider theme in WordPress?
- How do I remove header/page-title image in farvis theme? [closed]
- how to create a conditional content_width for a wordpress theme?
- How To Add New Option Types To Option Tree?
- Best practice for including plugins as part of a theme?
- Modular theme settings
- Trigger Customizer saving process with Javascript only
- How to determine the current widget’s parent container (sidebar widget id)
- Comment form not display properly?
- How to add menu support to a theme?
- Setting up partial Right-to-Left admin interface
- Moving functionality from functions.php to classes?
- Is it possible to display the admin bar while in the Theme Customizer?
- Pagination & get_pages?
- Custom nav menu is created with default pages, but not hooked to theme’s custom menu location
- How to pass code from header.php to footer.php
- Extend walker – navigation, adding data attribute to a tag
- Move my theme style.css into a folder
- Demo Import changes terms ids
- how to change WordPress menu markup/classes
- Best practices: Custom theme sidebar menu – hardcode or widget?
- Is it a good idea to make whole theme widgetized?
- Gutenberg Reusable Block as part of WordPress Theme page
- How to get the URI to a theme without the domain. Example: /wp-content/themes/my-theme
- Does WordPress count as a means to learn web development? [closed]
- current-menu-item class not working
- Prevent theme from activating [duplicate]
- Messing up with transient API – getting flushed on refresh
- A mystery 300px image size
- which is the best way to customize nav-menu-template.php?
- wp-cli: For development, how can I activate a theme that is on the local disk but not zipped?
- Inheritance of parent theme plugin files in a child theme
- Why is the Page Template dropdown menu using the wrong file name?
- Display a list of certain categories by ID
- Implementing FancyBox
- Single Page Design, Storing in Theme Options
- Working with a WP Starter theme
- Child theme enqueue scripts using new functions
- Should I change text-domain of TGM library inside theme?
- tag is being auto inserted
- Custom theme updater – random string in new theme name
- Show woocommerce categories on my theme menu styling
- “Bad element for masonry: undefined” why this error us occuring? [closed]
- Scroll to position on page for category pages only — woocommerce
- Displaying details of a post in a sidebar
- How to Find the Page the Front Page is Using?
- My jQuery is enqueued properly. So why isn’t it working?
- Database Tables in WordPress Theme
- How do I get the trackback count of a post in wordpress without writing an SQL query?
- 3 Level Deep Navigation Menu Not Showing All Levels
- Call to require(‘../../../wp-blog-header.php’) results in 404 error?
- Where do files uploaded via Media Manager get stored in MU?
- Random white space before doctype
- How to add menù section to my WordPress template?
- Do I need to create a child theme for JointsWP
- why mytheme/single-product.php works but not mytheme/woocommerce/single-product.php
- theme-independent CSS/JS files
- What is the need for the static front page [closed]
- Do translation functions like __e() have to take strings in English in themes?
- How to add post meta fields to an article’s as meta elements
- How add built-in textarea in theme development?
- Pagination fuction in shortcode always displays on top
- tag__in does not return posts
- How to remove bullets from widget
- Pagination don’t work with active filters
- restrain filter on get_the_excerpt to queried item in stead of current post
- Theme has disappeared
- wanted to sort the wp_query array by two ACF field (Year and month)
- Getting post URL within custom content template
- Getting unexpected warnings from theme options code
- Block validation failed for `core/pullquote` after adding theme support for editor-color-palette
- makeing a terms of use page that is part of the theme
- Different templates for each category level
- Child theme in separate WordPress Install
- Display problems in admin dashboard when creating a new theme from scratch
- wp_nav_menu custom walker class
- Using Customizer value in an external PHP file inside a theme
- Changes to template not showing up unless ?reset=1 added to URL
- How to add drop symbol to parent nav items which have child
- Enqueue Stylesheets After Theme’s “rtl.css”
- WordPress 3.5 + Foundation 5 not working on IE9
- How do I keep images in posts below a certain size without editing the post?
- Using wp_enqueue_script with social media buttons?
- Want to include ad code after related post
- How can disable function wp_link_dialog()
- Pagination adds product to cart Woo-Commerce
- Onepage with shortcodes
- How can I add a single image from a gallery into the page header?
- How to create full header but keep content narrow
- Creating image grid on products page in wordpress
- Insert gutenberg blocks into template
- What is the point of using archive.php instead of index.php?