Comments (12)
I think you should create a public
folder in the root directory and put the favicon in it
from nextra.
Which theme are you currently using?
And why do you want to hide the search bar for some pages?
from nextra.
I am using docs theme and I want to hide the search bar on main page where I showcase all my projects. I want to show search bar only when someone clicks on any of my project (It's just my style of styling)
And moreover how to add favicon using ico or svg?
from nextra.
I don't think the search bar is customizable for each single page for now.
To add a favicon, check out this.
<link rel="icon" href="/favicon.ico" sizes="any" />
from nextra.
I have tried using it in head : () in theme.config.jsx but it ain't working. Favicon Glyph is working but it is only taking an emoji or string as its parameter not ico or svg
from nextra.
do you have a repo or example?
from nextra.
This is my code. and it ain't working
faviconGlyph is working but it only takes a character or emoji as parameter not ico or svg
from nextra.
Doing that still doesn't solve the issue :(
favicon only changes using faviconGlyph: "👨🏻💻", but it only supports character or emoji
I hope they add ICO or SVG support to faviconGlyph, as well as customizability for the search bar on every page in future releases!
from nextra.
You don't need to change the link
tag, /favicon.ico
is good. I suggest you comment out the faviconGlyph
for now.
from nextra.
I am commenting faviconGlyph everytime I am using link tag and doing that "/favicon.ico" still don't solve the issue
favicon of the website is only getting affected from faviconGlyph
from nextra.
Maybe this example can help.
from nextra.
Using additionalLinkTags component is working fine to change favicon thank you so much :)
useNextSeoProps() {
return {
titleTemplate: "%s – Eniv Docs",
additionalLinkTags: [
{
href: "/square-code.png",
rel: "icon",
sizes: "32x32",
type: "image/png",
},
],
};
},
from nextra.
Related Issues (20)
- Hide breadcrumb on summary pages
- Theme Configuration - 404/500 HOT 1
- the way I make it is like this HOT 1
- How can I override the `img`
- [BUG?] Every reload i get this error HOT 2
- Display sidebar for "page" type
- Feedback for “Kirish” HOT 1
- Navbar UI
- How to order pages inside a subfolder?
- How to highlight a new item added in the right sidebar ? HOT 6
- Feedback for “Elon Store - MLOs - Changelogs”
- [v3] applying `display: "hidden"` breaks _meta in the subdir
- [v3] Extra {:foo} annotations not stripped from search text
- Tabs are not shown in Sidebar even after mentioning in `_meta.json` HOT 1
- Recma plugins order HOT 1
- Feedback for “Page Configuration” HOT 3
- v3 back-to-top button does not scroll all the way to top
- Defaults Meta Tags Doesn't Get Removed on Nextra.js HOT 6
- Sidebar hidden in production only HOT 6
- “Bleed” is bleeding on larger screen sizes HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nextra.