Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

87
Visualizações
How can I display my Navbar Code in multiple HTML documents by linking to one document containing the HTML Code on Desktop and Mobile?

I have a blog type website I am creating and I would like to have the code for my navbar appear on multiple pages on the website, but be linked from one file. I would like it to be linked in the same way that CSS & Javascript documents are linked to an html document.

I am a bit new to webcoding so I apologize in advance if I do not explain something properly and I am happy to clarify if anyone has any questions

The website is using HTML, CSS, Javascript and Bootstrap 5 CSS & Scripts. I'm open for using other coding languages if that is recommended.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I'm open for using other coding languages if that is recommended.

Than I would suggest using a server-side language for it. PHP could be very easy:

Your main file (index.php) should be something like this:

<html>
<head>
    <!-- Title & meta tags, etc... -->
</head>
<body>
    <?=include("header.php"?>
    <!-- Unique page content goes here -->
</body>
</html>

and inside the file header.php just throw your navbar.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda