Your account expired support, please renew to get your support.

HomePage Forums Themes Support Spacey – Single Property WordPress Theme Change Tag Header on post Page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #29001
    gsr
    Support Expired

    Hello i want to change Tag Header on post Page from h2 to h1, bcs i need fix my seo audit using h1 in first title.. i tried cuztomize page in cpnale but the css not showing.. could you help me? or give me some tutorials

    https://grandsharon-residence.com/blog/

    #29010

    Hi you,

    Please copy this code and paste into the file functions.php (child-theme):

    function spacey_post_header() {
            ?>
            <header class="entry-header">
                <?php
    
                /**
                 * Functions hooked in to spacey_post_header_before action.
                 */
                do_action('spacey_post_header_before');
                ?>
    
                <?php
                if (is_single()) {
                    ?>
                    <div class="entry-meta">
                        <?php
                            spacey_categories_link();
                            spacey_post_meta();
                        ?>
                    </div>
                    <?php
                    the_title('<h1 class="alpha entry-title">', '</h1>');
                    ?>
                <?php } else {
                    spacey_categories_link();
                    ?>
                    <div class="entry-meta">
                        <?php spacey_post_meta(); ?>
                    </div>
                    <?php
                    the_title(sprintf('<h2 class="alpha entry-title"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h2>');
                }
                ?>
    
                <?php
                do_action('spacey_post_header_after');
                ?>
            </header><!-- .entry-header -->
            <?php
        }
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.