Is there a way to insert custom nav buttons or links in the header?

  • updated
  • Completed

I wanted to add a link back to my site next to the logo in the header. Is this something that is possible?

Vladimir Mullagaliyev
  • Answer
  • Completed

Yes,

You can do it with Custom script.

Open you project settings -> Project -> Custom CSS/JS, then last tab "External JS/CSS".

Add this code:


<script>
initqueue.push(function() {
$('<a href="http://test.com">My website</a>').appendTo('.navbar-header');   
});
</script>

The you can add CSS style for the link as well.

Harry J.

It worked great, but I had to remove the ; right before the closing script tag - Thanks!

Voo

I think now the more complete code below:

$('<li><a href="http://yoursite.com"><i class="fa fa-globe"></i><span class="hidden-xs"> WEB site</span></a></li>').appendTo('.nav.navbar-nav');
 Sign in to leave a comment