Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1316810
    netlover
    Participant

    Home

    Can you please tell me how to add alt text to the logo?
    Also, how can I make all heading 1 the same font and size as the headings currently on the internal pages?

    #1317044
    Paul R
    Moderator

    Hi,

    1. First you need to install a child theme – https://community.theme.co/kb/how-to-setup-child-themes/

    Then to add alt text to your logo, create file _brand.php in wp-content/themes/x-child/framework/views/global
    and copy the code below into that file

    
    <?php
    
    // =============================================================================
    // VIEWS/GLOBAL/_BRAND.PHP
    // -----------------------------------------------------------------------------
    // Outputs the brand.
    // =============================================================================
    
    $site_name        = get_bloginfo( 'name' );
    $site_description = get_bloginfo( 'description' );
    $logo             = x_make_protocol_relative( x_get_option( 'x_logo' ) );
    $site_logo        = '<img alt="My Logo" src="' . $logo . '" alt="' . $site_description . '">';
    
    ?>
    
    <?php echo '<h1 class="visually-hidden">' . $site_name . '</h1>'; ?>
    
    <a href="<?php echo home_url( '/' ); ?>" class="<?php x_brand_class(); ?>" title="<?php echo $site_description; ?>">
      <?php echo ( $logo == '' ) ? $site_name : $site_logo; ?>
    </a>
    

    Change My Logo with your text.

    2. To make heading 1 the same font, add this in Custom > Edit Global CSS in the customizer

    
    h1,.h1 {
        font-family: Expletus Sans,sans-serif;
    }
    

    Hope that helps

  • <script> jQuery(function($){ $("#no-reply-1316810 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>