GithubHelp home page GithubHelp logo

Favicon about nextra HOT 12 CLOSED

Shubham-EV avatar Shubham-EV commented on June 10, 2024
Favicon

from nextra.

Comments (12)

jellli avatar jellli commented on June 10, 2024 1

I think you should create a public folder in the root directory and put the favicon in it

from nextra.

jellli avatar jellli commented on June 10, 2024

Which theme are you currently using?

And why do you want to hide the search bar for some pages?

from nextra.

Shubham-EV avatar Shubham-EV commented on June 10, 2024

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.

jellli avatar jellli commented on June 10, 2024

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.

Shubham-EV avatar Shubham-EV commented on June 10, 2024

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.

jellli avatar jellli commented on June 10, 2024

do you have a repo or example?

from nextra.

Shubham-EV avatar Shubham-EV commented on June 10, 2024

githubeg
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
githubeg1

from nextra.

Shubham-EV avatar Shubham-EV commented on June 10, 2024

githubeg

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.

jellli avatar jellli commented on June 10, 2024

You don't need to change the link tag, /favicon.ico is good. I suggest you comment out the faviconGlyph for now.

from nextra.

Shubham-EV avatar Shubham-EV commented on June 10, 2024

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.

jellli avatar jellli commented on June 10, 2024

Maybe this example can help.

from nextra.

Shubham-EV avatar Shubham-EV commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.