I am building an admin page in a project that uses a paid-for theme called pages.
The issue is that in these themes, <nav>
and <header>
must be direct children of <body>
.
When I use Vue to bootstrap the app, I am rendering it to a <div>
with an id
that's set to root
. This then nests the <nav>
and <header>
within this container (i.e. under <div id=root>
).
I have been searching high and low on how to get Vue components to become direct children of body.
How to do this?
What I am getting:
<body>
<div>
<nav></nav>
<header></header>
</div>
</body>
What the theme needs:
<body>
<nav></nav>
<header></header>
</body>