Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

164
Vistas
Embedded gist script and styling

I am embedding gist's from github into my Ghost blog like so:

<script src="https://gist.github.com/matthiasguentert/27766a9d21ba6f88944a0c059d701a61.js" >
</script>

However, this gets badly styled by my Ghost theme.

enter image description here

The developer console reveals that my Ghost theme added extra styling to it.

enter image description here

So how can I remove e.g. <div class="lines"> ...? I've tried adding a short javascript, which however didn't work (very hacky, I know).

Funny enough, it works when executed on chrome console.

<script>
  const e = document.getElementsByClassName("lines");
  while(e.length > 0){e[0].parentNode.removeChild(e[0]);}
</script>
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda