Restyle WordPress themes for editorial YouTube ops look

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
eric
2026-08-25 05:01:08 -05:00
parent 4d9ee50d07
commit 5a339a4658
4 changed files with 466 additions and 63 deletions

View File

@@ -65,20 +65,30 @@ add_action('init', static function (): void {
});
add_action('wp_enqueue_scripts', static function (): void {
$css = <<<'CSS'
:root { --nomadro-accent:#7c3aed; }
body { -webkit-font-smoothing: antialiased; }
.entry-content, .wp-block-post-content { font-size: 1.0625rem; line-height: 1.75; }
.entry-content h2, .wp-block-post-content h2 { margin-top: 2rem; line-height: 1.3; }
.nomadro-trust-footer {
display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
justify-content: center; padding: 1.5rem 1rem 2rem; font-size: 0.95rem;
}
.nomadro-trust-footer a { color: #344054; text-decoration: underline; }
CSS;
wp_register_style('nomadro-live-adsense-opt', false, [], '1.0.0');
wp_enqueue_style('nomadro-live-adsense-opt');
wp_add_inline_style('nomadro-live-adsense-opt', $css);
wp_enqueue_style(
'nomadro-live-theme',
content_url('mu-plugins/nomadro-live-theme.css'),
[],
'2.1.0'
);
}, 30);
add_action('wp_body_open', static function (): void {
if (!is_front_page() && !is_home()) {
return;
}
echo '<section class="nomadro-hero" id="nomadro-hero"><div class="nomadro-hero-inner">';
echo '<div class="nomadro-kicker">YouTube ops desk</div>';
echo '<h1>Analytics, live workflows, and creator runbooks.</h1>';
echo '<p>English operating guides for YouTube teams: dashboards, comments, live checklists, and production reliability.</p>';
echo '</div></section>';
});
add_action('wp_footer', static function (): void {
if (!is_front_page() && !is_home()) {
return;
}
echo '<script>document.addEventListener("DOMContentLoaded",function(){var h=document.getElementById("nomadro-hero");var b=document.querySelector(".wp-site-blocks");if(h&&b&&b.firstElementChild){b.insertBefore(h,b.firstElementChild.nextSibling);}});</script>';
}, 20);
add_action('wp_footer', static function (): void {