updated file structures and HTML, added archive, single, page for better view control. updated labeling.

This commit is contained in:
Jacob Haddon
2024-02-18 15:05:34 -05:00
parent ae204a9d35
commit e6c111ace9
10 changed files with 257 additions and 47 deletions

View File

@ -1,8 +1,8 @@
<?php
// MFWPT - functions.php
// function file for mfwpt
// enqueue the stye
// to do: clean this up
function mytheme_enqueue_style() {
wp_enqueue_style( 'style', get_stylesheet_uri() );
@ -23,7 +23,10 @@ add_action( 'init', 'register_my_menus' );
// remove unused word press features from header
function remove_actions_parent_theme() {
function remove_actions_from_theme() {
// this removes a lot of the extras added in to <HEAD>
// it also probably breaks a lot of things
// remove_action('wp_head', 'rsd_link');
// remove_action('wp_head', 'wp_generator');
// remove_action('wp_head', 'feed_links', 2);
@ -38,7 +41,7 @@ function remove_actions_parent_theme() {
wp_dequeue_style( 'wc-block-style' );
wp_dequeue_style( 'global-styles' );
wp_dequeue_style( 'classic-theme-styles' );
wp_dequeue_style('core-block-supports');
remove_action( 'wp_head', '_wp_render_title_tag', 1);
// remove_action( 'wp_head', 'wp_enqueue_scripts', 1 );
@ -58,8 +61,11 @@ function remove_actions_parent_theme() {
remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0);
remove_action( 'wp_head', 'wp_custom_css_cb', 101);
remove_action( 'wp_head', 'wp_site_icon', 99);
remove_action( 'wp_enqueue_scripts', 'wp_enqueue_global_styles' );
remove_action( 'wp_footer', 'wp_enqueue_global_styles', 1 );
remove_action( 'wp_body_open', 'wp_global_styles_render_svg_filters' );
} // remove_actions_parent_theme
add_action( 'wp_enqueue_scripts', 'remove_actions_parent_theme');
add_action( 'wp_enqueue_scripts', 'remove_actions_from_theme');
function disable_emojis() {
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
@ -74,4 +80,8 @@ function disable_emojis() {
} // disable_emojis
add_action( 'init', 'disable_emojis' );
add_action('wp_footer', function () {
wp_dequeue_style('core-block-supports');
});
?>