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?
- Creating bulk posts with Youtube videos
- Putting PHP variables into javascript [duplicate]
- Random Default Avatar Function
- Set WordPress Default Template
- Posts vs. Pages
- Variable global scope [closed]
- Hide wordpress field if data is empty in post!
- How to rewrite URL with PHP variables with htaccess to a normal looking URL?
- Insert a button on a page with random number generation
- Change the site tagline (or similar) based on current page
- Trouble creating conditional PHP for nav menu items with children for custom Walker
- Custom Theme, Custom shortcode not working
- Setting custom canonical urls
- Using a variable in is_page(array())
- Only show search results with if current date is between two dates?
- Can’t get page content in WordPress
- database interactions using OOP
- Way to querry data (tags) from a wordpress database?
- How to add just one specific page to widget without plugin?
- Remove one value in dismissed_wp_pointers?
- WordPress does not load page.php, return 404.php
- create a select input with menus created on a custom options page
- Taxonomy linked to pages
- Global variable $post returning incorrect object
- How can I load a PHP page without using a Template?
- Static variable and add_rewrite_rule?
- How to put a variable in a instance in the widget
- Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
- Accessing data from a non-WP database/table within a page content
- Call global variable array() in woocommerce child/template
- Adding custom directory and PHP files in wordpress
- WordPress blog post url on category page
- Best practice for migration friendly images in posts/pages?
- Where in PHP do I move title and meta (date) to bottom of each blog section?
- Changing layout with wp_customise
- WP dynamic featured image – Can’t get second featured image url
- get_term_link() returns correct – But illogical error-messages disturb
- Converting HTML Template to WordPress Theme
- Extending the WP_Widget_Text class
- Show full posts in archive
- WordPress add post format support not working
- Page Automatically Generated from Theme?
- How can I Add a variable PHP in the Menu Nav
- How to add a php custom page to WordPress
- Selectbox in admin panel function linking to CSS
- Sort query_posts for Parent Pages to menue order or the count?
- How to hide all child pages with post_query?
- WordPress: Access a plugin from within a theme
- Can I install/embed WordPress on a ‘single page’?
- Getting error when trying to implement site-wide breadcrumbs in Twentytwentyone Theme [closed]
- Pass variable from one function to another
- Get value from shortcode to do something
- Connect WordPress with SharePoint [closed]
- How to check if a meta value has already been assigned to any user?
- How to hide products that do not have an image from a slider carousel for an ecommerce webpage?
- Reconfiguring WordPress site
- adding custom user input fields in WordPress admin dashboard gives error The link you followed has expired. Please try again
- Customize Theme comment template to Insert VoteUp and VoteDown buttons
- filter default query to show just selected level of child pages in wordpress
- Retrieve $_POST data submitted from external URL in WordPress(NOT API)
- Move category description below post list in blog
- Trying to build simple deposit code that hooks into woocommerce
- How to pick the default selected value in wordpress dropdown?
- WordPress Shortcodes.. printf is outputting a random number… Can’t figure out WHY?
- Add New User, extra fields which are required?
- user_profile_update_errors hook not executing
- Send an email to specific adress when button is clicked?
- Saving and Restoring a Canvas on A Individual User Basis
- Redirect specific user role to specific site after login?
- Send multiple attachments with wp_mail in PHP
- WordPress admin pointers tour bug?
- custom url rewrite for wordpress
- Extend plugin Class through functions.php
- How to add a do_action on refreshing of WP customizer?
- PHP, Creating a dynamic variable
- How to modify a global variable in a function and use it on another function?
- Populate editor with some content of a page with a page template
- Customize position of social icons in upme plugin [closed]
- Weird 404 URL Problem – domain name being placed at end of urls
- How to get the value of input hidden html from text editor to custom page template?
- Make a list of sites for each user in WPMU – switch_to_blog (display in SITE_ID: 1)
- How can I add an area/option for a custom page description?