How can I add site title in the right of the logo without using child theme

Hi everyone, is there any way to add the site title next to the logo without using child theme?
thank you!

HI,

Thank you for contacting us about our theme, Sydney. I am happy to help with your queries.

To display the site title next to the enabled logo image, try the below steps:

  1. Add the below function to your child theme’s functions.php file. If you haven’t yet run it, alternatively you can use the functionality plugin like Code Snippets.
    /**
     * Get site title
     */
    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 );

    }
  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. Add this CSS code to your website’s Additional CSS, that is located under the Dashboard > Appearance > Customize.
    .site-header .col-md-4 > * {
      float: left; 
    }

    .site-header .col-md-4 .site-title {
      color: #fff;
      margin-left: 15px;
      font-size: 20px;
      line-height: 40px;
    }

You would need to make some styles adjustments to make it meets your need.

I hope this reply helps.

Regards,
Kharis
aThemes Support

thank you!!! it was helpful

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
aThemes Support