Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

How to wrap image logo in Homepage with H1 tag

Following your comment, here’s how you can do:

Education Hub use hook to display header, so you it is possible to override education_hub_action_header hook inside a plugin like that

add a new php file in wp-content/plugins/ with following content:

<?php

/*
Plugin Name: h1 in homepage logo for education hub
Version: 1.0.0
*/

add_action('init', function(){
    remove_action( 'education_hub_action_header', 'education_hub_site_branding', 10 );
});

add_action('education_hub_action_header', 'education_hub_site_branding_override');
function education_hub_site_branding_override(){
    ?>
        <div class="site-branding">

            <?php if ( is_front_page() || is_home() ) : ?>
                <h1>
            <?php endif; ?>
            <?php education_hub_the_custom_logo(); ?>
            <?php if ( is_front_page() || is_home() ) : ?>
                </h1>
            <?php endif; ?>

            <?php $show_title = education_hub_get_option( 'show_title' ); ?>
            <?php $show_tagline = education_hub_get_option( 'show_tagline' ); ?>
            <?php if ( true === $show_title || true === $show_tagline ) :  ?>
            <div id="site-identity">
                <?php if ( true === $show_title ) :  ?>
                <?php if ( is_front_page() && is_home() ) : ?>
                  <h1 class="site-title"><a href="https://wordpress.stackexchange.com/questions/366568/<?php echo esc_url( home_url("https://wordpress.stackexchange.com/" ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
                <?php else : ?>
                  <p class="site-title"><a href="https://wordpress.stackexchange.com/questions/366568/<?php echo esc_url( home_url("https://wordpress.stackexchange.com/" ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
                <?php endif; ?>
                <?php endif ?>

                <?php if ( true === $show_tagline ) :  ?>
                <p class="site-description"><?php bloginfo( 'description' ); ?></p>
                <?php endif ?>
            </div><!-- #site-identity -->
            <?php endif; ?>

        </div><!-- .site-branding -->

        <?php $show_search_form = education_hub_get_option( 'show_search_form' ); ?>
        <?php if ( true === $show_search_form ) : ?>
            <div class="search-section">
                <?php get_search_form(); ?>
            </div>
        <?php endif; ?>

    <?php
}

then activate: h1 in homepage logo for education hub plugin

Related Posts:

  1. how to display recent post by category on home page
  2. Ability to change homepage on WordPress using API
  3. Issue with custom plugin
  4. Get all the URLs of the pages that uses a specific shortcode
  5. How can i add simple code in only in posts by function.php
  6. How to display registered customer list as dropdown in WooCommerce checkout?
  7. Hide DIV if empty – Plugin Gallery
  8. Customizing a blog page layout
  9. Error When Trying To Login [closed]
  10. How to change WooCommece variation data programmtically [closed]
  11. Getting a ressource ID, from a WC_Order_Item_Product/Order
  12. How to include files relative to a file’s directory
  13. How to redirect non www to www? [closed]
  14. .php file for woocommerce edit category? [closed]
  15. Customize Menu | Styling LESS/SCSS code formats
  16. Switch from wp-cron to a server cron job
  17. How to translate wordpress error message
  18. Asynchronous request in wordpress
  19. Override a Plugin Function
  20. Api external with wordpress
  21. All custom widgets are not showing in widget area at the same time
  22. How to delete all categories programatically?
  23. How to use custom Javascript code inside a plugin?
  24. Make plugin php file called directly aware of WordPress?
  25. How to use printf to output two links?
  26. Why is it important to check for isset and is_array before checking in_array in this example?
  27. Adding a simple Javascript file with a plugin
  28. WordPress custom post type image in RSS
  29. How to add/change (woocommerce) product tab icon
  30. How to delete a theme using AJAX
  31. speed up pagination for huge database
  32. dynamically create callback functions inside a for loop
  33. Comment “like” problem – “users who like this” avatar linking to current user profile instead of “liker’s” profile
  34. I want to generate the pdf and save it in library?
  35. Profile / benchmark wordpress on apache?
  36. Way to send multiple values for column to MySQL?
  37. Using meta_query in a WP_Query not working for numbers properly
  38. Add the_post_thumbnail_url to a shortcode in function.php
  39. Inserting Plugins Into Blank Space of Externally Designed WordPress Theme
  40. Add key and value to an array in another file
  41. how to add a comment button to be displayed only for the posts in the home page [closed]
  42. Calling a save function from a “submit” button
  43. File Uploader – Upload without adding to Media Library
  44. ACF – How to set the menu order for the relationship field
  45. Creating an admin meta box to save post as pending
  46. Custom search search does not work?
  47. Must use Plugin not updating HTML code in head
  48. Wierd site output [closed]
  49. Wp Debug Enabled True Notices and Warning
  50. How to call external functions from a PHP script in a WordPress plugin?
  51. How to change layout of shop page in wordpress? [closed]
  52. How to write to a separate PHP file in plugin settings
  53. Pagination shows Same posts
  54. Add logo to admin menu in my plugin
  55. same user role or copy the user role to be same as the other role
  56. Trying to make a simple wordpress plugin, having difficulties understanding how to make it?
  57. Plugin not working locally, but works on server
  58. Change website directory safely to add a static page on startup
  59. Disable Checkbox depending on state of another checkbox
  60. Passing PHP Variables to AJAX Loaded Pages
  61. Custom meta box with jQuery.sortable custom post type list
  62. preg_replace() No ending delimiter ‘.’ found [closed]
  63. Building a plugin into a theme
  64. 2 wordpress site same database
  65. How to redirect to a page after the form is submitted
  66. “Allowed memory size” problem [closed]
  67. Echo out element to another page.
  68. Equivalent of admin.php for public pages
  69. Get data from wp_posts of mysql in to variables of wordpress-php script
  70. WordPress plugin won’t create custom tables
  71. Retrieve Plugin Settings and insert into XML string
  72. Social share buttons text shows up on post excerpts
  73. wordpress plugin license issue -New plugin development
  74. Create “new pages” within the admin section of plugin
  75. Passing value as hidden parameter to next page
  76. Trying to include files in plugin isn’t working
  77. Next Previous Post in wordpress with previous / next link with title?
  78. Cannot access empty property error in Advanced Access Manager
  79. Dynamic Image Replacement through call rail phone call tracking plugins in wordpress
  80. How can I show registration form inside modal?
  81. Trying to use shortcode for a plugin on custom homepage of Responsive theme
  82. WordPress truncate posts question (plugin related)
  83. Different registration form for different roles
  84. Trying to get property of non-object wordpress error message
  85. Theme Functions run a function upon activation or preview
  86. Is this plugin safe to run?
  87. Adding a Tag Parameter / Filter to My Shortcode
  88. More gentle way to hook WordPress custom url
  89. Categories from front-end, checkbox selection doesn’t work
  90. Apply html elements in php statement
  91. How to display results from a data table with an encrypted user id?
  92. How to add custom function to pluggable.php
  93. How to remove automatic generated tag in Home page
  94. WordPress Post HTML after Posting
  95. Settings options not showing up on Sub Menu page in WordPress plugin
  96. WordPress Stats Plugin: Display Post Views [closed]
  97. Pagination not working
  98. Linked pages from plugin on front can’t see $wpdb
  99. Advertising: Every page refresh counts as 3 ad impressions
  100. exec-PHP shows output at bottom of page
Categories plugins Tags frontpage, homepage, logo, php, plugins
How to add custom HTML markup and classes to the_content()?
Embed Kajabi into WP

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress