Hi I would like to have the title and the logo visible on my website

I checked similar questions in the forum but those codes are from 2016 and they look different today when I compare them, so I don’t dare to try it. I saw you could create a child theme and then change in the javascript.
If there is a way where I can add a code in the additional CSS directly from the control panel that that would be perfect! Thanks for any advice on this! Johanna

Hello there,

Firstly, make sure your logo has been uploaded. Then add this PHP snippet with Code Snippets plugin.

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

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

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

    }

Enable it on frontend.

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
    (function($){

      $('.site-header .col-md-4').append('<h1 class="site-title">'+site_info.name+'</h1>');

    })(jQuery);
  1. Update

Regards,
Kharis
aThemes Support