';
if (!is_home()) {
echo '
';
bloginfo('name');
echo " >> ";
if (is_category() || is_single()) {
the_category(' >> ');
if (is_single()) {
echo ' >>
' . esc_html(get_the_title()) . '';
}
} elseif (is_page()) {
echo '
' . esc_html(get_the_title()) . '';
}
}
echo '
';
}
function architecture_construction_body_classess( $classes ) {
// Get the customizer setting value
$hide_post_meta = get_theme_mod( 'architecture_construction_single_post_meta_setting', true );
// Check if the setting is set to hide
if ( !$hide_post_meta ) {
$classes[] = 'hide-post-meta';
}
return $classes;
}
add_filter( 'body_class', 'architecture_construction_body_classess' );
function architecture_construction_hide_single_header_img() {
?>
'',
'Verdana' => '',
'Helvetica' => '',
'Times New Roman'=> '',
'Georgia' => '',
'Courier New' => '',
'Trebuchet MS' => '',
'Tahoma' => '',
'Palatino' => '',
'Garamond' => '',
'Impact' => '',
'Comic Sans MS' => '',
'Lucida Sans' => '',
'Arial Black' => '',
'Gill Sans' => '',
'Segoe UI' => '',
'Open Sans' => 'Open+Sans:wght@400;700',
'Roboto' => 'Roboto:wght@400;700',
'Lato' => 'Lato:wght@400;700',
'Montserrat' => 'Montserrat:wght@400;700',
'Libre Baskerville' => 'Libre+Baskerville:wght@400;700'
);
$architecture_construction_google_fonts_url = '';
if (!empty($google_fonts[$architecture_construction_heading_font_family]) || !empty($google_fonts[$architecture_construction_body_font_family])) {
$fonts = array();
if (!empty($google_fonts[$architecture_construction_heading_font_family])) {
$fonts[] = $google_fonts[$architecture_construction_heading_font_family];
}
if (!empty($google_fonts[$architecture_construction_body_font_family])) {
$fonts[] = $google_fonts[$architecture_construction_body_font_family];
}
// Build Google Fonts URL
$architecture_construction_google_fonts_url = add_query_arg(
'family',
implode('|', $fonts),
'https://fonts.googleapis.com/css2'
);
}
if ($architecture_construction_google_fonts_url) {
wp_enqueue_style('architecture-construction-google-fonts', $architecture_construction_google_fonts_url, false);
}
}
add_action('wp_enqueue_scripts', 'architecture_construction_enqueue_google_fontss');
function architecture_construction_apply_typography() {
// Get the font family settings from the customizer
$architecture_construction_heading_font_family = get_theme_mod('architecture_construction_heading_font_family');
$architecture_construction_body_font_family = get_theme_mod('architecture_construction_body_font_family');
// Only output CSS if one or both fonts are set
if ($architecture_construction_body_font_family || $architecture_construction_heading_font_family) {
?>