some themes use directly css/ and js/ folders and this may need to be treated separately
d. site assets
Search for all the css/js files in the file. This is either in the head or just before
.
After it, add the line:
<?php styles_and_scripts(); ?>
e. head hooks
Before the tag ends, add the line
<?php head_hooks(); ?>
f. Menu
In bootstrapmade.com, its usually within this tag
<nav class="nav-menu d-none d-lg-block">
Move it to menu.html and replace it with
<?php if (!run_site_code('menu')) menu(); ?>
4. Specific Features
head.php
Some themes have a right first page header or a splash image. This code can be controlled pagewise using
<?php run_site_code('head'); ?>
LOGO / link to home
This should look something like this:
<a href="<?php echo am_var('url');?>"><img src="<?php echo am_var('url'); ?><?php echo am_var('safeName'); ?>-logo.png" alt="<?php echo am_var('name'); ?>" class="img-fluid"></a>
5. Chop into home.php and footer.php
Detect home.php
Detect begin of content of the page
This is sometimes where
</header>
ends
On bootstrapmade, this is the beginning of the hero section rest of content should go to home.php or content/index.php
Detect Footer
This is sometimes where the tag ends
Rest of file should go into footer.php
6. Footer
Footer Content
this is usually a footer-top sort of div above which this line should be placed
<?php if (!run_site_code('footer-content')) { ?>
//[default theme content]
<?php } ?>
this will tell php to use the [optional] _footer-content.php from the website
Add
<br /><?php amadeus_credits(); ?>
in the footer (usually below the theme credits
Post Credits
if necessary, add
<?php if (am_var('footer_post_credits')) { echo replace_vars(am_var('footer_post_credits')); } ?>
Page Info
About
This page / section has all the documentation required for a developer or do-it-yourself website owner to get started crafting with Amadeus. Warning, tech hurdles to jump.