Warning, I'm a complete newbie with very little coding experience. I'm creating a website with bootstrap using a wysiwyg front end, but I can also modify the code. I'm trying to create a bootstrap navbar that will be applied to each page in the website using php include on the server side.
I have created "Navbar.php" that includes just the navbar, no css or anything.
I have created a test page "test.php" with a simple paragraph. I'm placing the PHP code right after the <body>. The code I'm trying to use to pull "Navbar.php" into "test.php is:
<?php include("Navbar.php"); ?>
However, as soon as I save the page the code automatically changes to:
<!--?php include("Navbar.php); ?-->
This code is grayed out.
Now at the same time, I am able to include a css in the "test.php" page and it styles the page just fine, using the php include:
<style>
<?php include("default.css"); ?>
</style>
What am I doing wrong with the navbar such that it won't show up on test.php? I don't know if this makes a difference, but the "Navbar.php" page is originally saved as an .html page by the bootstrap front end, which I then just changed the extension to .php.