How can I display a view title with 'No Results Behaviour'? Using Drupal V 7.34 and Views 7.x.38

On the front page I have a view that lists news articles based on publish date being in the last 2 weeks. This works fine. 

What I am now wanting is to insert a new view to pull images from Flickr when there are no news articles to show.

So, I created a new view for the Flickr feed, and adjusted the paging as I wanted. I set up the No Results Behaviour to show my new view in the Global View Area.

This works, but the title of the view is not displayed.

How can I show the title of the NRB view?

Many thanks
i believe this is your problem 

https://www.drupal.org/node/1602058 

solution is here  

https://www.drupal.org/node/1176080

If you have a view and you want to be able to programmatically change the title of, you can do it by implementing hook_views_pre_render in your custom module:
alter it when particular view or field is not having any result

&lt;?php
function mymodule_views_pre_render(&amp;$view) {
  if ($view-&gt;name == 'my_view_name' &amp;&amp; $view-&gt;current_display == 'my_display_id') {
    // Here you can do any php you want to get the title you need for your view.
    $view-&gt;build_info['title'] = "My custom title!";
  }
}
?&gt;


If you are altering the query and you have argument substitutions affecting the title, you can change these in hook_views_query_alter:

&lt;?php
function mymodule_views_query_alter(&amp;$view, &amp;$query) {
  if ($view-&gt;name == 'my_view_name' &amp;&amp; $view-&gt;current_display == 'my_display_id') {
      // First substitution - you may want !1 or %2, etc
      $view-&gt;build_info['substitutions']['%1'] = $new_substitution;
    }
}
?&gt;


Views Displayed as Pages

Use this:

drupal_set_title('My custom title!');


Instead of:

$view-&gt;build_info['title'] = "My custom title!";


or some thing like this in views 3

&lt;?php
/**
 * Implements hook_views_pre_view().
 */
function MODULENAME_views_pre_render($view) {
  if ($view-&gt;name == 'my_view_name') {
    if ($view-&gt;current_display == 'my_display_name') {
      $view-&gt;set_title('my new title');
    }
  }
}
?&gt;