🐞 fix: Add updated hooks

This commit is contained in:
Keith Solomon
2025-10-01 10:30:38 -05:00
parent 89a1a48382
commit b9b9225780

View File

@@ -74,27 +74,6 @@ add_action(
'id' => 'sidebar-page', 'id' => 'sidebar-page',
) + $config ) + $config
); );
register_sidebar(
array(
'name' => 'Footer Area 1',
'id' => 'footer-1',
) + $cfg_foot
);
register_sidebar(
array(
'name' => 'Footer Area 2',
'id' => 'footer-2',
) + $cfg_foot
);
register_sidebar(
array(
'name' => 'Footer Area 3',
'id' => 'footer-3',
) + $cfg_foot
);
} }
); );
@@ -168,6 +147,26 @@ function init() {
add_filter( 'wp_img_tag_add_width_and_height_attr', '__return_false' ); // Disable intrinsic image size. add_filter( 'wp_img_tag_add_width_and_height_attr', '__return_false' ); // Disable intrinsic image size.
add_filter( 'wp_img_tag_add_auto_sizes', '__return_false' ); // Disable auto sizes. add_filter( 'wp_img_tag_add_auto_sizes', '__return_false' ); // Disable auto sizes.
add_filter( 'xmlrpc_enabled', '__return_false' ); add_filter( 'xmlrpc_enabled', '__return_false' );
// Add theme support features
add_theme_support( 'post-thumbnails' );
add_theme_support( 'title-tag' );
add_theme_support(
'html5',
array(
'caption',
'comment-form',
'comment-list',
'gallery',
'global-search-form',
'script',
'style',
)
);
add_theme_support( 'align-wide' );
add_theme_support( 'editor-styles' );
add_theme_support( 'responsive-embeds' );
add_theme_support( 'customize-selective-refresh-widgets' );
} }
add_action( 'init', __NAMESPACE__ . '\\init', 1 ); add_action( 'init', __NAMESPACE__ . '\\init', 1 );
@@ -210,12 +209,14 @@ add_filter(
add_action( add_action(
'admin_head', 'admin_head',
function () { function () {
echo '<style type="text/css"> echo '
<style type="text/css">
.attachment-266x266, .thumbnail img { .attachment-266x266, .thumbnail img {
width: 100% !important; width: 100% !important;
height: auto !important; height: auto !important;
} }
</style>'; </style>
';
} }
); );