WordPress.org

Forums

Arcade Basic
Header & Page Images Alt text (5 posts)

  1. Dyna Myte
    Member
    Posted 10 months ago #

    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.

  2. kimyausie
    Member
    Posted 10 months ago #

    I want to change the font on my header page but it's not giving that option? How do I go about this?

  3. Dyna Myte
    Member
    Posted 10 months ago #

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

  4. c.bavota
    Member
    Theme Author

    Posted 9 months ago #

    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;
    	}
    }
  5. Dyna Myte
    Member
    Posted 9 months ago #

    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 !

Reply

You must log in to post.

About this Theme

About this Topic

Tags