Jump to content

Adding an Icon to the Nav

Featured Replies

Posted

I'm wondering if there is a way to add an icon to the nav bar, specifically on mobile. I'd like to add the Clubs icon to the main nav bar. Is this possible? I've found the area of the code that controls it but I have no idea what to add!

Thanks!

admin your them add to navbaritems and for the rest to work you will need the codes add to custom ccs

5 hours ago, Michael Molholt said:

I'm wondering if there is a way to add an icon to the nav bar, specifically on mobile. I'd like to add the Clubs icon to the main nav bar. Is this possible? I've found the area of the code that controls it but I have no idea what to add!

Thanks!

You can use this handy plugin 

 

  • Author
3 hours ago, Joel R said:

You can use this handy plugin 

 

I'm trying to add a new item to the mobile nav at the top, next to like notifications, messages, etc. - not just an icon on the smaller navigation below. If that makes sense!

8 hours ago, sweethoney said:

admin your them add to navbaritems and for the rest to work you will need the codes add to custom ccs

I need help with the code aspect, as well as where to add it!

Can you post a screenshot of how and where you want to add the icons?

  • Author
8 hours ago, Faqole said:

Can you post a screenshot of how and where you want to add the icons?

I'd like it to be on the mobile nav like so:

Full_Size_Render.jpg

  • Author

Anyone have any guidance?

14 hours ago, Michael Molholt said:

Anyone have any guidance?

Will require editing a template (which may have to be reverted and re-added after every upgrade)

If still want to then:

In Templates Tab >> core >> front >> global >> mobileNavBar

Find:

	<li {{if !\IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'discover' ) ) }}class='ipsHide'{{endif}}>
		<a data-action="defaultStream" class='ipsType_light'  href='{{if $defaultStream}}{$defaultStream->url()}{{else}}{url="app=core&module=discover&controller=streams" seoTemplate="discover_all"}{{endif}}'><i class='icon-newspaper'></i></a>
	</li>

add before that:

  <li>
      <a href="your link here"><i class="icon-eye"></i></a>
  </li>

then in custom.css add:

.icon-eye:before {
  font-family: FontAwesome;
  content: "\f06e";
}

NOTE: for the above to work you need to use the word icon- before name you want to use (notice in above I used icon-eye)

obviously need to add your own link and the icon number

  • Author
5 hours ago, steve00 said:

 

 

Thank you Steve!!

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.