It’s a personal choice. If the containing markup is consistent across all templates it doesn’t matter if they’re in the template or header/footer, it’s just one less bit of markup that gets repeated in every template.
Related Posts:
- How to create .pot files with POedit?
- How do I get the theme URL in PHP?
- Why when I submit a form in wordpress it loads a 404 page though URL is correct
- What is the constant WP_USE_THEMES for?
- What is the difference between front-page.php and home.php? [duplicate]
- How to enqueue script if widget is displayed on page?
- Custom Image section in Customizer
- get_stylesheet_directory() returns wrong URI… localhost/using vhosts
- Any alternate TinyMCE4 themes / subthemes?
- Strict Standards Error bootstrap navwalker
- wp_get_attachment_image_attributes not working for me
- Specify image dimensions
- Adding Action Hooks In Parent Theme For Easier Child Theme Customization
- add_editor_style not working
- Add colors to existing color palette without replacing it
- WordPress Google Maps in Custom Theme
- How can I include a post in a theme?
- Custom CSS In Uploads Folder
- Default header image does not display
- Create self-populating menu and add extra divs to the menu layout
- How to write .htaccess dynamically? [closed]
- Adding wp_enqueue_media(); causes problem
- A guide or tool for inserting bootstrap in underscores theme? [closed]
- wp_get_attachment_image_src() width and height boolean
- What is the correct way to do a mobile theme for WordPress?
- What is the right way to make custom main page?
- .sub-menu or .children?
- Custom CSS without css.php file
- Is there a need for nonce with Post Metabox?
- Script only partially runs on theme activation, but runs fully on deactivation?
- How to echo category_description() without stripping out html tags?
- Understanding WordPress(framework?) Web Development
- Stylesheet not linking
- How to control layout of posts on page?
- saving row as a template using WPBakery Page Builder is not working [closed]
- Theme Development for WordPress Multisite Installation
- Custom metabox for custom page template
- Display recent posts with thumbnail
- Primary navigation menu & footer not showing in category / tag page
- Show notice just below the search form on the themes page
- Missing tested up to on readme text validator
- Posting page on all subdomains
- How do I build a post_thumbnail based archive? [closed]
- Single translation for many locales
- Display theme layouts [closed]
- Is accessing theme and using customizer GPL distribution?
- How to enqueue javascript for WP Customize options sidebar?
- WordPress 500 Internal server error when activating custom theme [closed]
- Customize how a WordPress theme looks like in the Theme Selector
- Wpautop in wp_editor not working
- Comment status shows ‘closed’ in db, but it shows ‘open’ when i echo it
- I used single quote to design HTML of my WordPress blog. Now site redirects to index.php everytime than page.php or single.php
- Is there any way to register custom background images like header images?
- html5-reset theme does not show the image [closed]
- WordPress HTML5 Gallery Support – Convert HTML4 -> HTML5
- Issue On Displaying Pages with Post Name Permalink
- How to make javascript work on theme options page
- Contact Form Security
- Where do you add code in custom fuctions so it works on a specific page?
- WordPress: Allowed Memory Size Exhausted – After Moving from Dev to Live [closed]
- What exactly is “wordpress theming”? [closed]
- Present Color Schemes to Clients
- Customizer Color Control Not Working
- where to start with WordPress theme development [closed]
- Create a Grid/List Toggle in WordPress Archive
- GrandParent ,Parent, Child issue
- Unable to add widgets to sidebars in custom theme
- View list of all attachments on site
- How do I display a greyed out next_post_link when there is no next post
- What is the difference between Twenty eleven & roots framework?
- Woocommerce AJAX filters option loading spiner – problem on mobile device
- How to Modify WP_Includes/blocks/latest_posts.php
- Adding popup support to the theme
- How do I change the color of individual page titles in WordPress?
- Page For Specific Posts
- How toprint informations in footer
- How to implement pagination in category.php template
- How to reduce the vertical space above and below a ul list uniformly with one command?
- How can I show a custom WordPress menu anywhere I want on my website?
- WordPress Menu item > Sub menu Class update
- How to connect two child themes on different sub domains to the same base theme
- How to know and change the machine name of a menu?
- Should I detect the device or the page first?
- How does mediaelement.js work in WordPress?
- Images use & location, on new wordpress theme
- WordPress Theme Developments – Start from another theme
- Access meta box checked value in another file
- Slider should be display in home template [closed]
- Best way to access variables in template markup
- How does offset works on pagination? (get_results)
- Plugin or script to apply updated media settings to all featured images
- Header links also appearing in the footer
- JQuery Equal Height in Rows Conflicts Only Works without Registering wp_footer();
- WordPress Subpages Fancybox Trouble
- How to Create a Multi Purpose Theme?
- customize functionality of share buttons under each blog post [closed]
- 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?
- How to make it so I can “use” template parts in (classic/full) site editor