3.1 Global changes (Common changes)
Global changes, like changing the title in the navigation bar, can be coded in hooks/header-extras.php
.
- Create a
<script></script>
section inhooks/header-extras.php
- Between
<script>
and</script>
place the following code:new AppGiniCommon()
.setIcon("plus")
.setTitle("CLINICManagement");
The file hooks/header-extras.php
should look like this now:
- Save
header-extras.php
- Reload your application in the browser
<script src="hooks/AppGiniHelper.min.js"></script> <script> new AppGiniCommon() .setIcon("plus", "text-danger") .setTitle("<b>CLINIC</b>Management"); </script>
You should see a different icon and title in the navigation bar at the top of the page now.
Change the title by passing a different string into the .setTitle()
function, for example .setTitle("MY<b>APP</b>")
Change the color-variation by replacing text-danger
with text-primary
.
Change the icon by replacing plus
with cog
or any other Glyphicon.