'Monograph Heading', 'size' => 48, 'slug' => 'monograph-heading']
]);
});
add_action('wp_enqueue_scripts', function() {
wp_enqueue_style('astra-child-style', get_stylesheet_uri());
wp_enqueue_script('monograph-custom-js', get_stylesheet_directory_uri() . '/scripts.js', ['jquery'], '1.0', true);
});
// Disable WordPress emoji scripts for performance
remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('wp_print_styles', 'print_emoji_styles');
?>
/* Global Typography and Menu Styling */
:root {
--primary-color: #2d2d2d;
--background-color: #f5f5f5;
--accent-color: #3f4c77;
}
body {
font-family: 'Inter var', sans-serif;
color: var(--primary-color);
background-color: var(--background-color);
line-height: 1.6;
margin: 0;
padding: 0;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 700;
color: var(--primary-color);
}
a {
color: var(--accent-color);
text-decoration: none;
}
a:hover {
text-decoration: underline
/* Global Typography and Menu Styling */
:root {
--primary-color: #2d2d2d;
--background-color: #f5f5f5;
--accent-color: #3f4c77;
}
body {
font-family: 'Inter var', sans-serif;
color: var(--primary-color);
background-color: var(--background-color);
line-height: 1.6;
margin: 0;
padding: 0;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 700;
color: var(--primary-color);
}
a {
color: var(--accent-color);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* Main menu styling */
.main-header-menu a {
font-family: 'Inter var', sans-serif;
font-weight: 600;
text-transform: uppercase;
color: var(--primary-color);
padding: 10px 15px;
}
.main-header-menu a:hover {
color: var(--accent-color);
}
// Header scripts (optional)
console.log('Monograph header scripts loaded');
'post',
'posts_per_page' => 6,
'orderby' => 'menu_order',
'order' => 'ASC',
];
$query = new WP_Query($args);
ob_start();
if ($query->have_posts()) {
echo '';
while ($query->have_posts()) {
$query->the_post(); ?>
'post-thumbnail']); ?>
';
}
wp_reset_postdata();
return ob_get_clean();
});
?>
/* Monograph Post Grid and Content Styling */
.monograph-post-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
max-width: 1440px;
margin: 40px auto;
padding: 0 20px;
}
.post-item {
background: white;
border-radius: 8px;
box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
overflow: hidden;
transition: box-shadow 0.3s ease;
}
.post-item:hover {
box-shadow: 0 6px 18px rgb(0 0 0 / 0.15);
}
.post-thumbnail {
width: 100%;
aspect-ratio: 16 / 9;
object-fit: cover;
display: block;
}
.post-title {
font-family: 'Inter var', sans-serif;
font-weight: 700;
font-size: 1.5rem;
margin: 15px 20px 10px;
color: var(--primary-color);
}
.post-excerpt {
font-size: 1rem;
color: #555;
margin: 0 20px 20px;
line-height: 1.5;
}
/* Responsive */
@media (max-width: 1024px) {
.monograph-post-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 600px) {
.monograph-post-grid {
grid-template-columns: 1fr;
}
}
/* Animation CSS */
.animate-fade-in {
animation: fadeInUp 0.8s ease forwards;
opacity: 0;
transform: translateY(20px);
}
@keyframes fadeInUp {
to {
opacity: 1;
transform: translateY(0);
}
}
// Lazy load animations for post grid
document.addEventListener('DOMContentLoaded', () => {
const observer = new IntersectionObserver(entries => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('animate-fade-in');
observer.unobserve(entry.target);
}
});
}, { threshold: 0.1 });
document.querySelectorAll('.post-item').forEach(item => {
observer.observe(item);
});
});
Skip to content
Welcome to WordPress. This is your first post. Edit or delete it, then start writing!
"Footer Widget $i",
'id' => "footer-widget-$i",
'before_widget' => '',
'before_title' => '',
]);
}
}
add_action('widgets_init', 'monograph_footer_widgets_init');
?>
/* Footer Styling */
.site-footer {
background-color: var(--primary-color);
color: var(--background-color);
padding: 40px 20px;
font-family: 'Inter var', sans-serif;
font-size: 0.9rem;
text-align: center;
}
.site-footer a {
color: var(--background-color);
text-decoration: none;
transition: color 0.3s ease;
}
.site-footer a:hover {
color: var(--accent-color);
}
.footer-widget {
margin-bottom: 20px;
}
.footer-widget-title {
font-weight: 700;
margin-bottom: 10px;
}
// Footer scripts (optional)
console.log('Footer scripts loaded');
error: Content is protected !!