Skip to content

Commit

Permalink
feat: Add jetpack subscribe form styling
Browse files Browse the repository at this point in the history
Signed-off-by: Souptik Datta <souptikdatta2001@gmail.com>
  • Loading branch information
Souptik2001 committed Dec 10, 2024
1 parent 32b0fa3 commit b3c48d3
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 5 deletions.
3 changes: 3 additions & 0 deletions backend/themes/souptik/assets/css/overrides.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.wp-block-jetpack-subscriptions {
border: none;
}
4 changes: 3 additions & 1 deletion backend/themes/souptik/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

// Includes.
require_once __DIR__ . '/inc/blocks.php';
require_once __DIR__ . '/inc/assets.php';

// Setup.
Blocks\setup();
Blocks\setup();
Assets\setup();
25 changes: 25 additions & 0 deletions backend/themes/souptik/inc/assets.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* Assets functions.
*
* @package souptik
*/

namespace Souptik\Theme\Assets;

/**
* Setup.
*
* @return void
*/
function setup(): void {
// Fire hooks to bootstrap theme assets.
add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\\enqueue_styles' );
}

/**
* Enqueue styles.
*/
function enqueue_styles() {
wp_enqueue_style( 'overrides', get_stylesheet_uri() . '/assets/css/overrides.css', [], filemtime( get_stylesheet_directory() . '/assets/css/overrides.css' ) );
}
4 changes: 0 additions & 4 deletions backend/themes/souptik/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,3 @@ License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: souptik
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, accessibility-ready, blog, portfolio, news
*/

.wp-block-jetpack-subscriptions {
border: none;
}

0 comments on commit b3c48d3

Please sign in to comment.