title: How can I display text only on the collapsed navbar in Bootstrap?
body: <p>I'd like to display a telephone number that appears on the navbar next to the navbar toggle button. The toggle button only appears once the navbar is in the collapsed state. I'd like the text to appear next to it.</p>
  <p>Here's what I have now:</p>
  <p><img src="https://i.stack.imgur.com/7rFMM.png" alt="collapsed navbar" /></p>
  <p>And here's what I am trying to achieve:</p>
  <p><img src="https://i.stack.imgur.com/veZf3.png" alt="collapsed navbar with text" /></p>
  <p>HTML from the relevant divs:</p>
  <pre><code>&lt;div class=&quot;header-centered&quot;&gt;&lt;img src=&quot;http://placehold.it/350x150&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;navbar&quot;&gt;
    &lt;div class=&quot;navbar-inner&quot;&gt;
      &lt;div class=&quot;container&quot;&gt;
        &lt;!-- .btn-navbar is used as the toggle for collapsed navbar content --&gt;
        &lt;button type=&quot;button&quot; class=&quot;btn btn-navbar&quot; data-toggle=&quot;collapse&quot; data-target=&quot;.nav-collapse&quot;&gt;
          &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt;
          &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt;
          &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt;
        &lt;/button&gt;
  
        &lt;!-- Everything you want hidden at 940px or less, place within here --&gt;
        &lt;div class=&quot;nav-collapse collapse&quot;&gt;
          &lt;ul class=&quot;nav&quot;&gt;
            &lt;li class=&quot;active&quot;&gt;&lt;a href=&quot;#&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link1&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link2&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link3&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link4&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link5&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <p>I don't want the text to appear unless the navbar is collapsed. How can this be achieved?</p>