From e79c775a61cd1af30554c2314621d4fe376cb246 Mon Sep 17 00:00:00 2001 From: Chuck Dries Date: Wed, 26 Jul 2023 20:05:21 -0700 Subject: [PATCH] footer logo and white-bg-overlay in editor --- .gitignore | 1 + ...colors-version-2.png => ts-logo-gradient.png} | Bin transsocial-theme/functions.php | 15 ++++++++------- transsocial-theme/patterns/footer.php | 4 ++-- transsocial-theme/style.css | 4 ++-- transsocial-theme/theme.json | 1 + 6 files changed, 14 insertions(+), 11 deletions(-) rename transsocial-theme/assets/images/{transsocial-logo-ts-palm-colors-version-2.png => ts-logo-gradient.png} (100%) diff --git a/.gitignore b/.gitignore index b23d153..b737c1a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ transsocial-link-card advanced-generated-theme .wp-env.json +twentytwentytwo \ No newline at end of file diff --git a/transsocial-theme/assets/images/transsocial-logo-ts-palm-colors-version-2.png b/transsocial-theme/assets/images/ts-logo-gradient.png similarity index 100% rename from transsocial-theme/assets/images/transsocial-logo-ts-palm-colors-version-2.png rename to transsocial-theme/assets/images/ts-logo-gradient.png diff --git a/transsocial-theme/functions.php b/transsocial-theme/functions.php index 4cc42dc..6e778a9 100644 --- a/transsocial-theme/functions.php +++ b/transsocial-theme/functions.php @@ -17,7 +17,7 @@ if (!isset($content_width)) { } -if (!function_exists('transsocial-theme_setup')) : +if (!function_exists('transsocialtheme_setup')) : /** * Sets up theme defaults and registers support for various @@ -27,7 +27,7 @@ if (!function_exists('transsocial-theme_setup')) : * hook, which runs before the init hook. The init hook is too late * for some features, such as indicating support post thumbnails. */ - function transsocial-theme_setup() + function transsocialtheme_setup() { // /** @@ -71,6 +71,7 @@ if (!function_exists('transsocial-theme_setup')) : } add_theme_support('align-wide'); + // Add support for block styles. // add_filter('render_block', function ($blockContent, $block) { @@ -83,13 +84,13 @@ if (!function_exists('transsocial-theme_setup')) : // return preg_replace($pattern, $replacement, $blockContent); // }, 10, 2); } -endif; // transsocial-theme_setup -add_action('after_setup_theme', 'transsocial-theme_setup'); +endif; // transsocialtheme_setup +add_action('after_setup_theme', 'transsocialtheme_setup'); -if (!function_exists('transsocial-theme_enqueue')) : - function transsocial-theme_enqueue() +if (!function_exists('transsocialtheme_enqueue')) : + function transsocialtheme_enqueue() { wp_enqueue_style('style', get_stylesheet_uri()); } endif; -add_action('wp_enqueue_scripts', 'transsocial-theme_enqueue'); +add_action('wp_enqueue_scripts', 'transsocialtheme_enqueue'); diff --git a/transsocial-theme/patterns/footer.php b/transsocial-theme/patterns/footer.php index e70e77e..e104f66 100644 --- a/transsocial-theme/patterns/footer.php +++ b/transsocial-theme/patterns/footer.php @@ -30,8 +30,8 @@ - -
<?php echo esc_attr_e( 'TransSOCIAL Logo', 'transsocial-theme' ); ?>
+ +
<?php echo esc_attr_e( 'TransSOCIAL Logo', 'transsocial-theme' ); ?>
diff --git a/transsocial-theme/style.css b/transsocial-theme/style.css index b391a46..531481f 100644 --- a/transsocial-theme/style.css +++ b/transsocial-theme/style.css @@ -46,9 +46,9 @@ Tags: --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); } -.white-bg-overlay { +/* .white-bg-overlay { background: hsla(0, 0%, 100%, 0.7) -} +} */ .wp-site-blocks { min-height: 100vh; display: grid; diff --git a/transsocial-theme/theme.json b/transsocial-theme/theme.json index 85ebed1..927c3aa 100644 --- a/transsocial-theme/theme.json +++ b/transsocial-theme/theme.json @@ -188,6 +188,7 @@ "color": { "background": "var(--wp--preset--color--contrast)" }, + "css": "* .white-bg-overlay {\n background: hsla(0, 0%, 100%, 0.7)\n}", "spacing": { "blockGap": "24px" },