Principle
  • 👋Introduction
  • 🆕Changelog
  • 🏁Getting Started
    • 🔽Uploading a Theme
  • 📜MAIN TEMPLATES
    • 📰Post Template
    • 📃Page Template
    • 📑Categories (Tags) Template
    • 🧑‍🎨Authors Template
    • ♾️Archive (All posts) Template
    • 💡Case Study Template
    • 💼Case Studies (All case studies) Template
  • ⚙️CUSTOM SETTINGS
    • ™️Logos
    • ✳️Header Type
    • 🎨Colors
    • 🧮Border Radius
    • 📢Subscribe CTA Text and Subtext
    • 🍧Sidebar subscribe banner and advertising banner
  • 🤝Membership
    • 🎬Setting Up
    • 🔽Sign In Page
    • 🆙Sign Up Page
    • 🔀Subscribe Page
    • 👤Account Page
    • 💸Membership Page
  • 🔧OTHER SETTINGS
    • ⏬Submenus
    • 🧰Add Icons in Navigation bar
    • 📸Add Your Social Link (Icon)
    • 💬Comments
  • ☑️TERMS & CONDITIONS
    • 🔁Refund Policy
Powered by GitBook
On this page
  1. OTHER SETTINGS

Add Icons in Navigation bar

PreviousSubmenusNextAdd Your Social Link (Icon)

Last updated 5 months ago

The navigation bar includes an option to add icons to the navigation item

To customize:

  • Go to Settings > Code injection from the admin menu

  • Choose Site footer

  • Below is the code needed to add a specific icon:

Copy

<script>
  const blogLinks = document.querySelectorAll(".nav-item__ADD_THIS_NAME_OF_NAVIGATION_ITEM");
  
  const blogSvgIcon = `CHANGE_THIS_TO_YOUR_SVG_CODE`

  if(blogLinks.length){
  blogLinks.forEach(link => {
    link.insertAdjacentHTML('afterbegin', blogSvgIcon);
    })
  }
</script>

The selector class is based on the navigation item's name. For example, an item named "Blog" would have the selector ".nav-item__blog".

To view the code of an SVG icon, open the file (*.svg) in any text editor.

  • Copy this code and paste it inside Site footer input area

  • Replace "CHANGE_THIS_TO_YOUR_SVG_CODE" with your SVG code and ".nav-item__ADD_THIS_NAME_OF_NAVIGATION_ITEM" with the name of the navigation, like this:

  • Click Save to save your work!

🔧
🧰
Navigation bar
Code injection