Jacob Goods
asked 10 years ago

Hey, love the theme. 
Got a quick question – how do i change the text on the sidebar toggle button? I know that I can change it into a menu icon, but I can’t find the respective <button> in the code to change it. 
Thanks in advance! 

1 Answers
DominicStaff
answered 10 years ago

To change the text on the sidebar toggle button in the DW Timeline pro, you can open the sidebar.php file, find the line 21 to line 29
Replace the following code:

   <button class="navbar-toggle sidebar-toggle active">
        <?php if ( $menu_icon == 'no'): ?>
          <?php _e('Sidebar','dw-timeline') ?>
        <?php else : ?>
          <span class="icon-bar first"></span>
          <span class="icon-bar second"></span>
          <span class="icon-bar third"></span>
      <?php endif ?>
    </button>

With new code:

  <button class="navbar-toggle sidebar-toggle active">
        <?php if ( $menu_icon == 'no'): ?>
          <?php _e('Sidebar','dw-timeline') ?>
        <?php else : ?>
            Your Text
      <?php endif ?>
    </button>

Hope this helps !

Jacob Goods
replied 10 years ago

Hey Dominic. Works like a charm. Thanks a lot!

Powered by DW Question & Answer Pro