Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/woocomme.../patterns
File: banner.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Title: Banner
[2] Fix | Delete
* Slug: woocommerce-blocks/banner
[3] Fix | Delete
* Categories: WooCommerce, featured-selling
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
[7] Fix | Delete
$banner_title = __( 'Up to 60% off', 'woocommerce' );
[8] Fix | Delete
$banner_button = __( 'Shop vinyl records', 'woocommerce' );
[9] Fix | Delete
$first_description = __( 'Holiday Sale', 'woocommerce' );
[10] Fix | Delete
$second_description = __( 'Get your favorite vinyl at record-breaking prices.', 'woocommerce' );
[11] Fix | Delete
?>
[12] Fix | Delete
[13] Fix | Delete
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"calc( 0.5 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)))","bottom":"calc( 0.5 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)))","left":"var(--wp--style--root--padding-left, var(--wp--custom--gap--horizontal))","right":"var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal))"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained","justifyContent":"center"}} -->
[14] Fix | Delete
<div class="wp-block-group alignfull" style="margin-top:0;margin-bottom:0;padding-top:calc( 0.5 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)));padding-right:var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal));padding-bottom:calc( 0.5 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)));padding-left:var(--wp--style--root--padding-left, var(--wp--custom--gap--horizontal))">
[15] Fix | Delete
<!-- wp:spacer {"height":"calc( 0.25 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)))"} -->
[16] Fix | Delete
<div style="height:calc( 0.25 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)))" aria-hidden="true" class="wp-block-spacer"></div>
[17] Fix | Delete
<!-- /wp:spacer -->
[18] Fix | Delete
[19] Fix | Delete
<!-- wp:columns {"align":"wide"} -->
[20] Fix | Delete
<div class="wp-block-columns alignwide">
[21] Fix | Delete
<!-- wp:column {"verticalAlignment":"center"} -->
[22] Fix | Delete
<div class="wp-block-column is-vertically-aligned-center">
[23] Fix | Delete
<!-- wp:paragraph {"style":{"typography":{"fontSize":"18px"},"spacing":{"margin":{"top":"0","right":"0","bottom":"0","left":"0"}}}} -->
[24] Fix | Delete
<p style="margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;font-size:18px"><strong><?php echo esc_html( $first_description ); ?></strong> </p>
[25] Fix | Delete
<!-- /wp:paragraph -->
[26] Fix | Delete
[27] Fix | Delete
<!-- wp:heading {"level":3,"style":{"typography":{"fontSize":"48px"}}} -->
[28] Fix | Delete
<h3 class="wp-block-heading" style="font-size:48px"><?php echo esc_html( $banner_title ); ?></h3>
[29] Fix | Delete
<!-- /wp:heading -->
[30] Fix | Delete
[31] Fix | Delete
<!-- wp:paragraph {"style":{"typography":{"fontSize":"24px"},"spacing":{"margin":{"top":"0","right":"0","bottom":"0","left":"0"}}}} -->
[32] Fix | Delete
<p style="margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;font-size:24px"><?php echo esc_html( $second_description ); ?></p>
[33] Fix | Delete
<!-- /wp:paragraph -->
[34] Fix | Delete
[35] Fix | Delete
<!-- wp:buttons {"style":{"spacing":{"blockGap":"0","margin":{"top":"20px","bottom":"0"}}}} -->
[36] Fix | Delete
<div class="wp-block-buttons" style="margin-top:20px;margin-bottom:0">
[37] Fix | Delete
<!-- wp:button {"style":{"typography":{"fontSize":"16px"},"border":{"width":"0px","style":"none"}},"className":"is-style-fill"} -->
[38] Fix | Delete
<div class="wp-block-button has-custom-font-size is-style-fill" style="font-size:16px">
[39] Fix | Delete
<a class="wp-block-button__link wp-element-button" href="<?php echo esc_url( get_permalink( wc_get_page_id( 'shop' ) ) ); ?>" style="border-style:none;border-width:0px;">
[40] Fix | Delete
<?php echo esc_html( $banner_button ); ?>
[41] Fix | Delete
</a>
[42] Fix | Delete
</div>
[43] Fix | Delete
<!-- /wp:button -->
[44] Fix | Delete
</div>
[45] Fix | Delete
<!-- /wp:buttons -->
[46] Fix | Delete
</div>
[47] Fix | Delete
<!-- /wp:column -->
[48] Fix | Delete
[49] Fix | Delete
<!-- wp:column {"verticalAlignment":"center"} -->
[50] Fix | Delete
<div class="wp-block-column is-vertically-aligned-center">
[51] Fix | Delete
<!-- wp:image {"id":1,"sizeSlug":"full","linkDestination":"none"} -->
[52] Fix | Delete
<figure class="wp-block-image size-full">
[53] Fix | Delete
<img src="<?php echo esc_url( plugins_url( 'assets/images/pattern-placeholders/music-needle-turntable-black-and-white-white-photography.jpg', WC_PLUGIN_FILE ) ); ?>" alt="<?php esc_attr_e( 'Placeholder image used to represent products being showcased in a banner.', 'woocommerce' ); ?>" class="wp-image-1" />
[54] Fix | Delete
</figure>
[55] Fix | Delete
<!-- /wp:image -->
[56] Fix | Delete
</div>
[57] Fix | Delete
<!-- /wp:column -->
[58] Fix | Delete
</div>
[59] Fix | Delete
<!-- /wp:columns -->
[60] Fix | Delete
[61] Fix | Delete
<!-- wp:spacer {"height":"calc( 0.25 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)))"} -->
[62] Fix | Delete
<div style="height:calc( 0.25 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)))" aria-hidden="true" class="wp-block-spacer"></div>
[63] Fix | Delete
<!-- /wp:spacer -->
[64] Fix | Delete
</div>
[65] Fix | Delete
<!-- /wp:group -->
[66] Fix | Delete
[67] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function