Posted on

WordPress Theme Development from Scratch 3

Adding Bootstrap 4

Now we add bootstrap, jquery and fontawesome to the theme.

1. Enqueue the scripts and css in functions.php
2. Adding the part in the footer (with admin part)
3. Adding featured images to content-page.php

Some other stuff

Especially for larger menus you will have random deletion of entries or such strange behaviour. One common issue might be the max_input_vars directive in PHP which is set to 1000 by default. Fix it by changing/adding the following to your php.ini:

max_input_vars = 3000