li a{'; $board_games_custom_css .= 'text-transform: Capitalize !important;'; $board_games_custom_css .= '}'; } else if ($board_games_menu_text_transform == 'uppercase') { $board_games_custom_css .= '.site-navigation .primary-menu > li a{'; $board_games_custom_css .= 'text-transform: uppercase !important;'; $board_games_custom_css .= '}'; } else if ($board_games_menu_text_transform == 'lowercase') { $board_games_custom_css .= '.site-navigation .primary-menu > li a{'; $board_games_custom_css .= 'text-transform: lowercase !important;'; $board_games_custom_css .= '}'; } $board_games_footer_widget_title_alignment = get_theme_mod('board_games_footer_widget_title_alignment', 'left'); if ($board_games_footer_widget_title_alignment == 'left') { $board_games_custom_css .= 'h2.widget-title{'; $board_games_custom_css .= 'text-align: left !important;'; $board_games_custom_css .= '}'; } else if ($board_games_footer_widget_title_alignment == 'center') { $board_games_custom_css .= 'h2.widget-title{'; $board_games_custom_css .= 'text-align: center !important;'; $board_games_custom_css .= '}'; } else if ($board_games_footer_widget_title_alignment == 'right') { $board_games_custom_css .= 'h2.widget-title{'; $board_games_custom_css .= 'text-align: right !important;'; $board_games_custom_css .= '}'; } $board_games_show_hide_related_product = get_theme_mod('board_games_show_hide_related_product',true); if($board_games_show_hide_related_product != true){ $board_games_custom_css .='.related.products{'; $board_games_custom_css .='display: none;'; $board_games_custom_css .='}'; } /*-------------------- Global First Color -------------------*/ $board_games_global_color = get_theme_mod('board_games_global_color', '#6B20DE'); // Add a fallback if the color isn't set if ($board_games_global_color) { $board_games_custom_css .= ':root {'; $board_games_custom_css .= '--global-color: ' . esc_attr($board_games_global_color) . ';'; $board_games_custom_css .= '}'; } /*-------------------- Global Second Color -------------------*/ $board_games_secondary_color = get_theme_mod('board_games_secondary_color', '#9E21DD'); // Add a fallback if the color isn't set if ($board_games_secondary_color) { $board_games_custom_css .= ':root {'; $board_games_custom_css .= '--secondary-color: ' . esc_attr($board_games_secondary_color) . ';'; $board_games_custom_css .= '}'; } /*-------------------- Content Font -------------------*/ $board_games_content_typography_font = get_theme_mod('board_games_content_typography_font', 'Plus Jakarta Sans'); // Add a fallback if the color isn't set if ($board_games_content_typography_font) { $board_games_custom_css .= ':root {'; $board_games_custom_css .= '--font-main: ' . esc_attr($board_games_content_typography_font) . ';'; $board_games_custom_css .= '}'; } /*-------------------- Heading Font -------------------*/ $board_games_heading_typography_font = get_theme_mod('board_games_heading_typography_font', 'Play'); // Add a fallback if the color isn't set if ($board_games_heading_typography_font) { $board_games_custom_css .= ':root {'; $board_games_custom_css .= '--font-head: ' . esc_attr($board_games_heading_typography_font) . ';'; $board_games_custom_css .= '}'; } $board_games_columns = get_theme_mod('board_games_posts_per_columns', 3); $board_games_columns = absint($board_games_columns); if ( $board_games_columns < 1 || $board_games_columns > 6 ) { $board_games_columns = 3; } $board_games_custom_css .= " .site-content .article-wraper-archive { grid-template-columns: repeat({$board_games_columns}, 1fr); } "; $board_games_copyright_alignment = get_theme_mod( 'board_games_copyright_alignment', 'Default' ); if ( $board_games_copyright_alignment === 'Reverse' ) { $board_games_custom_css .= '.site-info .column-row { flex-direction: row-reverse; }'; $board_games_custom_css .= '.footer-credits { justify-content: flex-end; }'; $board_games_custom_css .= '.footer-copyright { text-align: right; }'; $board_games_custom_css .= '.site-info .column.column-3 { text-align: left; }'; } elseif ( $board_games_copyright_alignment === 'Center' ) { $board_games_custom_css .= '.site-info .column-row { flex-direction: column; align-items: center; gap: 15px; }'; $board_games_custom_css .= '.footer-credits { justify-content: center; }'; $board_games_custom_css .= '.footer-copyright { text-align: center; }'; $board_games_custom_css .= '.site-info .column.column-3 { text-align: center; }'; } $board_games_footer_widget_background_color = get_theme_mod('board_games_footer_widget_background_color'); if ($board_games_footer_widget_background_color) { $board_games_custom_css .= " .footer-widgetarea { background-color: ". esc_attr($board_games_footer_widget_background_color) ."; } "; } $board_games_footer_widget_background_image = get_theme_mod('board_games_footer_widget_background_image'); if ($board_games_footer_widget_background_image) { $board_games_custom_css .= " .footer-widgetarea { background-image: url(" . esc_url($board_games_footer_widget_background_image) . "); } "; } $board_games_copyright_font_size = get_theme_mod('board_games_copyright_font_size'); if ($board_games_copyright_font_size) { $board_games_custom_css .= " .footer-copyright { font-size: ". esc_attr($board_games_copyright_font_size) ."px; } "; } /*-------------------- Menu Color CSS -------------------*/ $board_games_header_menus_color = get_theme_mod('board_games_header_menus_color'); if($board_games_header_menus_color != false){ $board_games_custom_css .='.site-navigation .primary-menu a{'; $board_games_custom_css .='color: '.esc_attr($board_games_header_menus_color).'!important;'; $board_games_custom_css .='}'; } $board_games_header_menus_hover_color = get_theme_mod('board_games_header_menus_hover_color'); if($board_games_header_menus_hover_color != false){ $board_games_custom_css .='.site-navigation .primary-menu a:hover{'; $board_games_custom_css .='color: '.esc_attr($board_games_header_menus_hover_color).'!important;'; $board_games_custom_css .='}'; } $board_games_header_submenus_color = get_theme_mod('board_games_header_submenus_color'); if($board_games_header_submenus_color != false){ $board_games_custom_css .='.site-navigation .primary-menu li ul li a{'; $board_games_custom_css .='color: '.esc_attr($board_games_header_submenus_color).'!important;'; $board_games_custom_css .='}'; } $board_games_header_submenus_hover_color = get_theme_mod('board_games_header_submenus_hover_color'); if($board_games_header_submenus_hover_color != false){ $board_games_custom_css .='.site-navigation .primary-menu li ul li a:hover{'; $board_games_custom_css .='color: '.esc_attr($board_games_header_submenus_hover_color).'!important;'; $board_games_custom_css .='}'; }