Browse Source

Coutoire: Fix content_width filter, update RTL styles

Allan Cole 6 years ago
parent
commit
45aa0f0977
2 changed files with 8 additions and 10 deletions
  1. 3 10
      coutoire/functions.php
  2. 5 0
      coutoire/style-rtl.css

+ 3 - 10
coutoire/functions.php

@@ -94,19 +94,12 @@ endif;
 add_action( 'after_setup_theme', 'coutoire_setup' );
 add_action( 'after_setup_theme', 'coutoire_setup' );
 
 
 /**
 /**
- * Set the content width in pixels, based on the child-theme's design and stylesheet.
- *
- * Priority 0 to make it available to lower priority callbacks.
- *
- * @global int $content_width Content width.
+ * Filter the content_width in pixels, based on the child-theme's design and stylesheet.
  */
  */
 function coutoire_content_width() {
 function coutoire_content_width() {
-	// This variable is intended to be overruled from themes.
-	// Open WPCS issue: {@link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/1043}.
-	// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
-	$GLOBALS['content_width'] = apply_filters( 'coutoire_content_width', 1200 );
+	return 1200;
 }
 }
-add_action( 'after_setup_theme', 'coutoire_content_width', 0 );
+add_filter( 'varia_content_width', 'coutoire_content_width' );
 
 
 /**
 /**
  * Add Google webfonts, if necessary
  * Add Google webfonts, if necessary

+ 5 - 0
coutoire/style-rtl.css

@@ -1860,6 +1860,11 @@ hr.is-style-dots:before {
 	}
 	}
 }
 }
 
 
+.jetpack_subscription_widget input[type="text"] {
+	padding: 16px !important;
+	width: 100% !important;
+}
+
 table,
 table,
 .wp-block-table {
 .wp-block-table {
 	width: 100%;
 	width: 100%;