Browse Source

Blockbase: Fix comments

Daniel Dudzic 4 years ago
parent
commit
8b9da91099
2 changed files with 23 additions and 0 deletions
  1. 4 0
      blockbase/inc/wpcom-style.css
  2. 19 0
      blockbase/inc/wpcom.php

+ 4 - 0
blockbase/inc/wpcom-style.css

@@ -0,0 +1,4 @@
+/* NOTE: This is a wp.com-specific fix so that the comment form presented there (highlander) is NOT displayed as a GRID. */
+body.highlander-enabled .wp-block-post-comments form {
+	display: revert;
+}

+ 19 - 0
blockbase/inc/wpcom.php

@@ -0,0 +1,19 @@
+<?php
+/**
+ * WordPress.com-specific functions and definitions.
+ *
+ * This file is centrally included from `wp-content/mu-plugins/wpcom-theme-compat.php`.
+ *
+ * @package Blockbase
+ */
+
+
+/**
+ * Enqueue our WP.com styles for front-end.
+ * Loads after theme styles so we can add overrides.
+ */
+function blockbase_wpcom_scripts() {
+	wp_enqueue_style( 'blockbase-wpcom-style', get_stylesheet_directory_uri() . '/inc/wpcom-style.css', array( 'blockbase-styles' ) );
+}
+add_action( 'wp_enqueue_scripts', 'blockbase_wpcom_scripts' );
+