Skip to content

Instantly share code, notes, and snippets.

@BiancaNL
BiancaNL / gist:c2959b162daf20deff6fb62cdf5dd21b
Last active April 24, 2018 14:56
Hide Gutenberg only specific posts or pages
function disable_gutenberg_per_id( $classic ) {
global $post;
if ( 123 == $post->ID )
return false;
return $classic;
}
add_filter( 'gutenberg_can_edit_post_type', 'disable_gutenberg_per_id' );
.acf-pricing-table {
display: inline-block;
background: #fff;
padding: 30px;
text-align: center;
margin: 7px; border: 1px solid #000;
}
.acf-pricing-table-price-desc {
font-weight: 900;
function acf_pricing_table() {
ob_start();
?>
<?php if( have_rows('pricing_table') ): ?>
<div class="pricing-table-container">
<?php while( have_rows('pricing_table') ): the_row();
$price = get_sub_field('price');
.dvk-social-sharing {
line-height: 32px;
}
.dvk-social-sharing > a{
margin-left:12px;
display: inline-block;
text-decoration: none;
}