footer logo and white-bg-overlay in editor
This commit is contained in:
parent
bc874f7159
commit
e79c775a61
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
transsocial-link-card
|
||||
advanced-generated-theme
|
||||
.wp-env.json
|
||||
twentytwentytwo
|
Before Width: | Height: | Size: 1.5 MiB After Width: | Height: | Size: 1.5 MiB |
@ -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');
|
||||
|
@ -30,8 +30,8 @@
|
||||
<!-- /wp:social-links --></div>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:image {"id":40,"sizeSlug":"large","linkDestination":"none","style":{"layout":{"selfStretch":"fixed","flexSize":"250px"}}} -->
|
||||
<figure class="wp-block-image size-large"><img src="<?php echo esc_url( get_theme_file_uri( 'assets/images/transsocial-logo-ts-palm-colors-version-2-1024x568.png' ) ); ?>" alt="<?php echo esc_attr_e( 'TransSOCIAL Logo', 'transsocial-theme' ); ?>" class="wp-image-40"/></figure>
|
||||
<!-- wp:image {"id":40,"sizeSlug":"large","linkDestination":"none","style":{"layout":{"selfStretch":"fixed","flexSize":"150px"}}} -->
|
||||
<figure class="wp-block-image size-large"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/ts-logo-gradient.png" alt="<?php echo esc_attr_e( 'TransSOCIAL Logo', 'transsocial-theme' ); ?>" class="wp-image-40"/></figure>
|
||||
<!-- /wp:image --></div>
|
||||
<!-- /wp:group --></div>
|
||||
<!-- /wp:group --></div>
|
||||
|
@ -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;
|
||||
|
@ -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"
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user