Skip to content

I need help to customize vitepress #4102

Open
@jacktheartist14

Description

@jacktheartist14

Describe the bug

Hello! I've been using VitePress for a few months, and I need to customize some parts of the UI. For example, I want to make changes to the header, such as centering the nav (I attach an image). I've searched online for different ways to achieve this without success. I also tried to find information in the docs, but it’s not very clear for me. I also tried to achieve this using CSS but was unsuccessful. Currently, I’m using the default theme.

On the other hand, I needed to add a mini banner above the header and I was able to achieve this with js, inserting a div before the header and adding margins to the header and sidebar, but I would like to know if Vitepress has an easier way to do this.

I would really appreciate any help with this! Thanks!

image

Reproduction

Expected behavior

System Info

-

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions