Browse Source

#2129: Button 2: More Block padding

otpidusprime 5 years ago
parent
commit
ef58caed77
1 changed files with 8 additions and 0 deletions
  1. 8 0
      button-2/functions.php

+ 8 - 0
button-2/functions.php

@@ -116,6 +116,14 @@ function button_2_adjusted_content_width() {
 }
 add_action( 'template_redirect', 'button_2_adjusted_content_width', 0 );
 
+/** 
+ * Wrap more-link inside a paragraph 
+ */
+function button_2_more_link($more) {
+    return '<p>'.$more.'</p>';
+}
+add_filter('the_content_more_link','button_2_more_link');
+
 /**
  * Register widget area.
  *