• Firstly thanks for the great theme!

    I am optimizing the site and have challenges to add the ALT TEXT to
    the main Header image as well as the main page images.
    For images running through posts, the ALT Text can be added no problem.

    Have searched the header.php and the functions.php file to see where this
    could be done (assume need to add some code like> alt text = “…….”

    Many thanks for your support.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I want to change the font on my header page but it’s not giving that option? How do I go about this?

    Thread Starter Dyna Myte

    (@dyna-myte)

    You can change that through the css style sheet, site title, font size.

    You need to edit functions.php. This is the code:

    function bavotasan_header_images() {
    	global $post;
    	$post_id = ( is_attachment() && isset( $post->post_parent ) ) ? $post->post_parent : get_queried_object_id();
    	$custom_image = ( is_singular() || get_option( 'page_for_posts' ) == $post_id || is_attachment() ) ? get_post_meta( $post_id, 'arcade_custom_image', true ) : '';
    
    	if ( $custom_image ) {
    		echo '<img src="' . esc_url( $custom_image ) . '" alt="" class="header-img" />';
    	} else {
    		if ( $header_image = get_header_image() ) :
    			?>
    			<img class="header-img" src="<?php header_image(); ?>" alt="" />
    			<?php
    		endif;
    	}
    }
    Thread Starter Dyna Myte

    (@dyna-myte)

    OK thank you for the code – will test this further. Realized better to change the functions.php via the FTP, not in WP editor area !

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Header & Page Images Alt text’ is closed to new replies.