li a{'; $boat_rental_custom_css .= 'text-transform: Capitalize !important;'; $boat_rental_custom_css .= '}'; } else if ($boat_rental_menu_text_transform == 'uppercase') { $boat_rental_custom_css .= '.site-navigation .primary-menu > li a{'; $boat_rental_custom_css .= 'text-transform: uppercase !important;'; $boat_rental_custom_css .= '}'; } else if ($boat_rental_menu_text_transform == 'lowercase') { $boat_rental_custom_css .= '.site-navigation .primary-menu > li a{'; $boat_rental_custom_css .= 'text-transform: lowercase !important;'; $boat_rental_custom_css .= '}'; } $boat_rental_footer_widget_title_alignment = get_theme_mod('boat_rental_footer_widget_title_alignment', 'left'); if ($boat_rental_footer_widget_title_alignment == 'left') { $boat_rental_custom_css .= 'h2.widget-title{'; $boat_rental_custom_css .= 'text-align: left !important;'; $boat_rental_custom_css .= '}'; } else if ($boat_rental_footer_widget_title_alignment == 'center') { $boat_rental_custom_css .= 'h2.widget-title{'; $boat_rental_custom_css .= 'text-align: center !important;'; $boat_rental_custom_css .= '}'; } else if ($boat_rental_footer_widget_title_alignment == 'right') { $boat_rental_custom_css .= 'h2.widget-title{'; $boat_rental_custom_css .= 'text-align: right !important;'; $boat_rental_custom_css .= '}'; } $boat_rental_show_hide_related_product = get_theme_mod('boat_rental_show_hide_related_product',true); if($boat_rental_show_hide_related_product != true){ $boat_rental_custom_css .='.related.products{'; $boat_rental_custom_css .='display: none;'; $boat_rental_custom_css .='}'; } $boat_rental_sticky_sidebar = get_theme_mod('boat_rental_sticky_sidebar',true); if($boat_rental_sticky_sidebar != true){ $boat_rental_custom_css .='.widget-area-wrapper{'; $boat_rental_custom_css .='position: relative !important;'; $boat_rental_custom_css .='}'; } /*-------------------- Global First Color -------------------*/ $boat_rental_global_color = get_theme_mod('boat_rental_global_color', '#0B5394'); // Add a fallback if the color isn't set if ($boat_rental_global_color) { $boat_rental_custom_css .= ':root {'; $boat_rental_custom_css .= '--global-color: ' . esc_attr($boat_rental_global_color) . ';'; $boat_rental_custom_css .= '}'; } /*-------------------- Content Font -------------------*/ $boat_rental_content_typography_font = get_theme_mod('boat_rental_content_typography_font', 'jost'); // Add a fallback if the color isn't set if ($boat_rental_content_typography_font) { $boat_rental_custom_css .= ':root {'; $boat_rental_custom_css .= '--font-main: ' . esc_attr($boat_rental_content_typography_font) . ';'; $boat_rental_custom_css .= '}'; } /*-------------------- Heading Font -------------------*/ $boat_rental_heading_typography_font = get_theme_mod('boat_rental_heading_typography_font', 'jost'); // Add a fallback if the color isn't set if ($boat_rental_heading_typography_font) { $boat_rental_custom_css .= ':root {'; $boat_rental_custom_css .= '--font-head: ' . esc_attr($boat_rental_heading_typography_font) . ';'; $boat_rental_custom_css .= '}'; } /*-------------------- FOOTER -------------------*/ $boat_rental_footer_widget_background_color = get_theme_mod('boat_rental_footer_widget_background_color'); if ($boat_rental_footer_widget_background_color) { $boat_rental_custom_css .= " .footer-widgetarea { background-color: ". esc_attr($boat_rental_footer_widget_background_color) ."; } "; } $boat_rental_footer_widget_background_image = get_theme_mod('boat_rental_footer_widget_background_image'); if ($boat_rental_footer_widget_background_image) { $boat_rental_custom_css .= " .footer-widgetarea { background-image: url(" . esc_url($boat_rental_footer_widget_background_image) . "); } "; } $boat_rental_copyright_font_size = get_theme_mod('boat_rental_copyright_font_size'); if ($boat_rental_copyright_font_size) { $boat_rental_custom_css .= " .footer-copyright { font-size: ". esc_attr($boat_rental_copyright_font_size) ."px; } "; } $boat_rental_columns = get_theme_mod('boat_rental_posts_per_columns', 3); $boat_rental_columns = absint($boat_rental_columns); if ( $boat_rental_columns < 1 || $boat_rental_columns > 6 ) { $boat_rental_columns = 3; } $boat_rental_custom_css .= " .site-content .article-wraper-archive { grid-template-columns: repeat({$boat_rental_columns}, 1fr); } "; $boat_rental_copyright_alignment = get_theme_mod( 'boat_rental_copyright_alignment', 'Default' ); if ( $boat_rental_copyright_alignment === 'Reverse' ) { $boat_rental_custom_css .= '.site-info .column-row { flex-direction: row-reverse; }'; $boat_rental_custom_css .= '.footer-credits { justify-content: flex-end; }'; $boat_rental_custom_css .= '.footer-copyright { text-align: right; }'; $boat_rental_custom_css .= '.site-info .column.column-3 { text-align: left; }'; } elseif ( $boat_rental_copyright_alignment === 'Center' ) { $boat_rental_custom_css .= '.site-info .column-row { flex-direction: column; align-items: center; gap: 15px; }'; $boat_rental_custom_css .= '.footer-credits { justify-content: center; }'; $boat_rental_custom_css .= '.footer-copyright { text-align: center; }'; $boat_rental_custom_css .= '.site-info .column.column-3 { text-align: center; }'; }