SimonPadbury / b4st

A Bootstrap 4 Starter Theme, for WordPress
The Unlicense
311 stars 104 forks source link

Add Action Hooks #41

Closed SimonPadbury closed 6 years ago

SimonPadbury commented 6 years ago

Action Hooks

Keep adding to this Issue until action hooks listing is near complete, before adding these into b4st.

// <head>
<?php b4st_before_head(); ?>
<?php b4st_after_head(); ?>
<?php get_header(); ?>
// <body>
<?php b4st_before_body(); ?>
<?php b4st_after_body(); ?>

See also the specific templates below.
// ==== index.php
<?php b4st_before_index_template(); ?>
<?php b4st_after_index_template(); ?>

// ==== category.php
<?php b4st_before_category_template(); ?>
<?php b4st_after_category_template(); ?>

// ==== author.php
<?php b4st_before_category_template(); ?>
<?php b4st_after_category_template(); ?>

// ==== single.php
<?php b4st_before_single_template(); ?>
<?php b4st_after_single_template(); ?>

// ==== page.php
<?php b4st_before_page_template(); ?>
<?php b4st_after_page_template(); ?>

// ==== 404.php
<?php b4st_before_404_template(); ?>
<?php b4st_after_404_template(); ?>
// header.php
<?php b4st_header_top(); ?>
<?php b4st_header_bottom(); ?>
// Navbar
// sidebar.php
<?php b4st_before_sidebar1(); ?>
<?php b4st_after_sidebar1(); ?>
// sidebar.php
<?php b4st_before_sidebar2(); ?>
<?php b4st_after_sidebar2(); ?>
// footer
<?php b4st_before_footer(); ?>
<?php b4st_after_footer(); ?>
<?php wp_footer(); ?>