Kjell Reigstad 4 years ago
parent
commit
8721d6c22d
4 changed files with 37 additions and 2 deletions
  1. BIN
      blankie/Screenshot.png
  2. 0 2
      blankie/footer.php
  3. 17 0
      blankie/functions.php
  4. 20 0
      blankie/style.css

BIN
blankie/Screenshot.png


+ 0 - 2
blankie/footer.php

@@ -16,8 +16,6 @@
 
 	<footer id="colophon" class="site-footer default-max-width" role="contentinfo" aria-label="<?php esc_attr_e( 'Footer', 'seedlet' ); ?>">
 
-		<?php get_template_part( 'template-parts/footer/footer-widgets' ); ?>
-
 		<div class="site-info">
 			<?php $blog_info = get_bloginfo( 'name' ); ?>
 			<?php if ( ! empty( $blog_info ) ) : ?>

+ 17 - 0
blankie/functions.php

@@ -27,6 +27,23 @@ if ( ! function_exists( 'blankie_setup' ) ) :
 endif;
 add_action( 'after_setup_theme', 'blankie_setup', 11 );
 
+/**
+ * Remove Seedlet theme features.
+ */
+function blankie_remove_parent_theme_features() {
+
+	// Theme Support
+	remove_theme_support( 'custom-header' );
+	remove_theme_support( 'custom-logo' );
+	remove_theme_support( 'customize-selective-refresh-widgets' );
+
+	// Navigation Areas
+	unregister_nav_menu( 'primary' );
+	unregister_nav_menu( 'footer' );
+	unregister_nav_menu( 'social' );
+}
+add_action( 'after_setup_theme', 'blankie_remove_parent_theme_features', 10 );
+
 /**
  * Enqueue scripts and styles.
  */

+ 20 - 0
blankie/style.css

@@ -29,3 +29,23 @@ GNU General Public License for more details.
 */
 
 @import "variables.css";
+
+/* Remove outside padding on single post pages. */
+
+.single .site-main,
+.page .site-main {
+	padding-top: 0;
+	padding-bottom: 0;
+}
+
+/* Remove extra margin from articles on single post pages. */
+.single .site-main > article,
+.page .site-main > article {
+	margin-bottom: 0;
+}
+
+/* Center-align the Site Footer */
+
+.site-info {
+	text-align: center;
+}