Added theme archvier and changes to blocks
This commit is contained in:
@ -401,3 +401,17 @@ function mytheme_uninstall_icon_set() {
|
||||
}
|
||||
|
||||
add_action('wp_ajax_uninstall_icon_set', 'mytheme_uninstall_icon_set');
|
||||
|
||||
|
||||
/* Add Styles */
|
||||
function lcp_header_height_style() {
|
||||
// Fetch the lcp_header_height value from wp_options.
|
||||
$header_height = get_option('lcp_header_height', 0); // Default to 0 if not found
|
||||
|
||||
// Ensure we have a valid value
|
||||
if ($header_height) {
|
||||
// Output the inline style tag with the CSS variable for header height
|
||||
echo "<style>:root { --lcp--header--height: {$header_height}px; }</style>";
|
||||
}
|
||||
}
|
||||
add_action('wp_head', 'lcp_header_height_style');
|
||||
|
||||
Reference in New Issue
Block a user