Skip to content

Commit

Permalink
#2707 #2719 Gutenberg Button styling
Browse files Browse the repository at this point in the history
  • Loading branch information
MARQAS committed Dec 11, 2018
1 parent 4e58edc commit c93823d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions templates/features.php
Original file line number Diff line number Diff line change
Expand Up @@ -6792,3 +6792,11 @@ function ampforwp_remove_ahref_lightbox( $content ) {
$updated_content = preg_replace("/<a[^>]+\>(<img[^>]+\>)<\/a>/i", '$1', $content);
return $updated_content;
}
// Gutenberg Modules CSS
add_action('amp_post_template_css', 'ampforwp_gutenberg_css');
if ( ! function_exists('ampforwp_gutenberg_css') ) {
function ampforwp_gutenberg_css(){ ?>
.wp-block-button { color: #fff}
.wp-block-button a {background-color: #32373c;border-radius: 28px;color: inherit;display: inline-block;padding: 12px 24px;}
<?php }
}

0 comments on commit c93823d

Please sign in to comment.