• Resolved dfatrickz

    (@dfatrickz)


    Hello!

    I have a problem with my h1 tags… it seems like they get added by themself.

    Example: <h1>Posts navigation</h1>

    i dont know where it came from because it was not there at first…
    and i dont have a clue on how to change it. :/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter dfatrickz

    (@dfatrickz)

    what theme are you using?

    are you using a browser inspection tool to see where the h1 tags are?

    can you post a link to your site to illustrate the problem?

    Thread Starter dfatrickz

    (@dfatrickz)

    Hey.

    No im using semalt to see my tags and other info..

    And i have checked all the theme files and could not find the tag.

    The theme is awaken

    the problem does not show up in the website itself. i found where the tag is located and it is located in the navigation –> https://gyazo.com/95450473dd95bfce616f2c458c223460

    http://carcrashvideostv.com

    the second <h1> tag is a screen reader tag:

    <h1 class="screen-reader-text">Posts navigation</h1>

    please post in your theme’s forum at https://wordpress.org/support/theme/awaken#postform to see if anybody there might be able to comment in your issue.

    the code for ist is in /inc/template-tags.php;

    if ( ! function_exists( 'awaken_paging_nav' ) ) :
    /**
     * Display navigation to next/previous set of posts when applicable.
     */
    function awaken_paging_nav() {
    	// Don't print empty markup if there's only one page.
    	if ( $GLOBALS['wp_query']->max_num_pages < 2 ) {
    		return;
    	}
    
    	$paged        = get_query_var( 'paged' ) ? intval( get_query_var( 'paged' ) ) : 1;
    	$pagenum_link = html_entity_decode( get_pagenum_link() );
    	$query_args   = array();
    	$url_parts    = explode( '?', $pagenum_link );
    
    	if ( isset( $url_parts[1] ) ) {
    		wp_parse_str( $url_parts[1], $query_args );
    	}
    
    	$pagenum_link = remove_query_arg( array_keys( $query_args ), $pagenum_link );
    	$pagenum_link = trailingslashit( $pagenum_link ) . '%_%';
    
    	$format  = $GLOBALS['wp_rewrite']->using_index_permalinks() && ! strpos( $pagenum_link, 'index.php' ) ? 'index.php/' : '';
    	$format .= $GLOBALS['wp_rewrite']->using_permalinks() ? user_trailingslashit( 'page/%#%', 'paged' ) : '?paged=%#%';
    
    	// Set up paginated links.
    	$links = paginate_links( array(
    		'base'     => $pagenum_link,
    		'format'   => $format,
    		'total'    => $GLOBALS['wp_query']->max_num_pages,
    		'current'  => $paged,
    		'mid_size' => 3,
    		'add_args' => array_map( 'urlencode', $query_args ),
    		'prev_text' => __( '<span class="meta-nav-prev"></span> Previous', 'awaken' ),
    		'next_text' => __( 'Next <span class="meta-nav-next"></span>', 'awaken' ),
    		'type'      => 'list',
    	) );
    
    	if ( $links ) :
    
    	?>
    	<nav class="navigation paging-navigation" role="navigation">
    		<h1 class="screen-reader-text"><?php _e( 'Posts navigation', 'awaken' ); ?></h1>
    			<?php echo $links; ?>
    	</nav><!-- .navigation -->
    	<?php
    	endif;
    }
    endif;

    as this function is pluggable, you can re-write it in your child theme.

    please post in your theme’s forum at https://wordpress.org/support/theme/awaken#postform to see if anybody there might be able to comment further on your issue.

    Thread Starter dfatrickz

    (@dfatrickz)

    Thanks for your help.

    The file you mentioned was the only file i didnt check…

    The problem is fixed Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problem with h1 tags.’ is closed to new replies.