Title and tag line disappeared in a poof!

Working in Talon. As soon as I uploaded the Logo’s PNG file, the site Title and Tag Line disappeared. Even though the entry areas for each (in the Appearance/Themes customizer) are filled in with the correct text, no text appears in preview or on the published site.

Hello there,

Firsly, add this snippet to a child theme’s function. If you aren’t running any child theme, you can also use Code Snippets plugin or Functionality.

    /**
     * Get site title and description
     */
    add_action( 'wp_enqueue_scripts', 'talon_child_site_info', 9999 );
    function talon_child_site_info() {

      $site_info = array(
        'name'        => get_bloginfo('name'),
        'description' => get_bloginfo('description')
      );

      wp_localize_script( 'talon-scripts', 'site_info', $site_info );

    }

Then do the below steps:

  1. Install and activate the TC Custom JavaScript plugin
  2. Go To Appearance > Custom JavaScript
  3. Paste the following code into the provided box
    jQuery(function($) {

      $('.site-branding').append('<h1 class="site-title">'+site_info.name+'</h1><p class="site-description">'+site_info.description+'</p>')

    });
  1. Update

Regards,
Kharis

Perfect! It worked!

Thank you very much!

You’re welcome!

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis