Looking into the source code of the “Primer” theme, it looks like there’s a filter available primer_the_site_title_args
in /inc/hooks.php, which is wrapped in a conditional for is_home(). Something like the following added to your functions.php in a child theme should allow the title on the home page to be an h2 instead if you choose:
add_filter( 'primer_the_site_title_args', function( $args ) {
if ( is_home() ) {
$args['wrapper'] = 'h2';
}
return $args;
} );
Related Posts:
- Set the transport of the Customizer ‘header_image’ core setting to ‘postMessage’
- Widgets not showing in my custom theme
- Can’t load WP function into external function
- Customizer: Output default value in Customizer CSS
- Customizer: active_callback and sanitize_callback incompatibility?
- My page.php shows the index.php
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- Why am I getting a different filename? And how does WordPress load singular.php for both Page & Post? (Fresh WordPress installation)
- Apply class to every third list item? [duplicate]
- Insert page content into another page with a changed variable
- When I click for the redirect link it is showing the content of index.php instead of single_assignment_page.php
- How to associate dynamic PHP page for chosen WordPress tag?
- Where can I find the declaration of `$_wp_theme_features`?
- Create a custom theme-specific page, invisible in the admin-panel?
- Showing custom field contents without listing description
- How to use PHP code with wordpress page
- How to remove the intro animation which appears during the load up of some WordPress themes? [closed]
- hello can you advise how to fix the error?
- How to add elements to an empty array in PHP?
- Sending the reset password link programatically
- Any guides on creating custom admin pages?
- Receiving Stripe Webhooks on a wordpress website
- How do I make my function add variables/values to the $post object?
- What would be a PHP command to erase all posts from category X from the last month?
- Walker class: Problems with understanding how walk() method can be called without error
- Change comments form title on a page by page basis
- Setting up the child theme so as to enable right-to-left WordPress?
- Design view breaking on Pages
- How do I know what variables are passed in a filter/action and what their meaning is?
- Type hinting and void return question
- Customized title tag for each page in pagination?
- How should I best target dynamically served content?
- How to break down importing of feeds
- How to create and work with custom data / tables (i.e., for arbitrary data)?
- Multiple choice in a custom taxonomy
- Call global variable array() in woocommerce child/template
- WP dynamic featured image – Can’t get second featured image url
- Show full posts in archive
- Get value from shortcode to do something
- How to hide products that do not have an image from a slider carousel for an ecommerce webpage?
- Send an email to specific adress when button is clicked?
- How to get the value of input hidden html from text editor to custom page template?
- Create Page To Count Comments For Each Post In WordPress Site
- Output Video Download Link in template
- get_the_title() gets printed out twice
- how to show only specific category for a template
- What does this mean in wordpress? Easy question
- How to get private property in parent class into extended class?
- Show About and Contact Us page when they’re clicked in the top menu.
- Create a WordPress shortcode using PHP [duplicate]
- Do I have anything to worry about when switching to a default theme to test for plugin conflictions?
- Clickable image link sends people to wrong URL
- Save Custom CSS file in the upload folder dynamically?
- Pass Variables or Variable Place-Holder from Editor to PHP
- How to include custom PHP file both in header and footer files
- How to echo every parent page title?
- Delete or edit postmeta with specific meta_key?
- Store and Change Session variable – PHP SESSION VARIABLE
- Overide Variable in Child Theme
- Update if post with specific title exists
- Removing custom sort order from admin page listing
- PHP Output also in Child theme, but different
- $wpdb->get_results breaking page?
- Randomize Color Scheme Selection in Theme
- pass html code to worpdress
- How do I custom code the start page?
- Kohana Frontend, WordPress Backend
- Commas in Tag Cloud
- How do I add my PHP app to a WordPress page whilst keeping semantic URLs?
- WP_REST_Response – How to return Gzip answer and add Content-encoding header?
- Create Columns with Custom Walker and CSS Classes
- I am having issue in divi woocomerce checkout module. (DIVI theme)
- How can I check that the acf field value is not a duplicate when adding a post?
- Adding an Anchor Link to a wordpress menu using WPBakery Page Builder
- Removing “There is no account with that username or email address.” error message in “/wp-login.php?action=lostpassword”
- Styling a category link
- How to check a variable Changes
- Not able to remove caption shortcode from the content
- global $product is empty string when passed into function
- Inserting a class on before_widget if checkbox is checked
- Trying to add some custom text into WordPress Post title via function.php
- How to identify which php file a plugin is using on page load?
- Invalid Argument foreach
- How to add a full working piece of website already coded, to a large scale Website design project?
- Create custom admin page with custom text fields
- loading a php file to a specific page id
- custom field – changing an element or background of id div – different versions not working
- Multisite – Display different header content based on which site is accessed
- How can I customize a WordPress theme before it’s downloaded?
- Two theme locations for two menus, but only one is showing up
- PHP call div with function
- Where can I find the code for the menu page meta boxes?
- WordPress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache
- Catchable fatal error in appcloud free theme by Tokokoo
- I want Page titles and excerpts to show up on home.php in certain order
- ACF: Echo page title when checkbox is checked
- HTML in PHP problem [closed]
- PHP Use Declared array Variable inside already Declared Array
- How to create and add js and css file when server is not on my PC?
- How to continuously developing a WP site that is already deployed in production without damaging it during development