Skip to content

Instantly share code, notes, and snippets.

- New: Newsletter block - design options
- New: Shop filters - option to show attribute and brand checkbox + hide swatch or image
- New: Summary-placed product tabs should appear under "product elements" in order to be custom ordered via drag and drop
- New: Woo filters canvas - add possibility to chose different widget area
- New: Woo filters canvas - option to trigger canvas with AJAX
- New: Brands layer (single product page) - add title option
- New: Free shipping progress bar - add option "Hide bar if cart is empty"
- New: Advanced search block - don't show CPT name in dropdown if only one CPT is selected
- New: Advanced search block - dropdown shadow color - add alpha channel option
- New: Dynamic data block - image - add "Expand on click" option
Blocksy Theme
- New: Add typography option for image figcaption
- New: Breadrumbs module as a block for Gutenberg
- New: Cart page option to update cart in real time
- New: Color option - allow inserting CSS variables in color option
- New: Color palette - add possibility to save a color palette as a preset
- New: Color palette - better organize predefined color palettes inside a modal
- New: Color palette - possibility to add new colors to a palette
- New: Content block footer builder element
- New: Footer - option for making container boxed/fluid
$greenshift_variables = [
'--container-width' => '--theme-container-width',
'--normal-container-max-width' => '--theme-normal-container-max-width',
'--narrow-container-max-width' => '--theme-narrow-container-max-width',
'--linkInitialColor' => '--theme-link-initial-color',
'--fontFamily' => '--theme-font-family',
'--buttonFontFamily' => '--theme-button-font-family',
'--buttonFontSize' => '--theme-button-font-size',
'--buttonFontWeight' => '--theme-button-font-weight',
'--buttonFontStyle' => '--theme-button-font-style',
@sergiu-radu
sergiu-radu / gist:3c73c51914b0b4a93fb3ef46259c1670
Created July 3, 2023 11:02
CSS for tag cloud legacy widget
[class*="tag_cloud"] {
.tagcloud {
display: flex;
flex-wrap: wrap;
gap: 8px;
a {
display: flex;
align-items: center;
height: 36px;
@sergiu-radu
sergiu-radu / gist:e0c8fe3791ec69b6890f0f651ae83c24
Last active December 6, 2024 19:08
Blocksy CSS Variables
--paletteColor1 -----> --theme-palette-color-1
--paletteColor2 -----> --theme-palette-color-2
--paletteColor3 -----> --theme-palette-color-3
--paletteColor4 -----> --theme-palette-color-4
--paletteColor5 -----> --theme-palette-color-5
--paletteColor6 -----> --theme-palette-color-6
--paletteColor7 -----> --theme-palette-color-7
--paletteColor8 -----> --theme-palette-color-8
--fontFamily -----> --theme-font-family
<!-- wp:greenshift-blocks/row {"id":"gsbp-bd418b2d-d7f3","gutterClassName":"gspb_row\u002d\u002dgutter-60","rowLayout":"2","displayStyles":false,"spacing":{"margin":{"values":{"top":[120],"bottom":[120]},"unit":["px","px","px","px"],"locked":false},"padding":{"values":{"top":[null],"bottom":[null]},"unit":["px","px","px","px"],"locked":false}},"gutterGap":["100px",null,null,null],"rowGap":["",null,null,null],"customWrap":["nowrap",null,null,null]} -->
<div id="gspb_row-id-gsbp-bd418b2d-d7f3" class="gspb_row gspb_row-id-gsbp-bd418b2d-d7f3 wp-block-greenshift-blocks-row gspb_row-id-gsbp-bd418b2d-d7f3 gspb_row--gutter-60"><div class="gspb_row__content"> <!-- wp:greenshift-blocks/row-column {"id":"gsbp-f0f7d072-8d3c","enableExtendedWidth":false,"width":[null],"gutterclass":"gspb_row\u002d\u002dgutter-60","gutterGap":["100px",null,null,null],"flexbox":{"type":"flexbox","flexDirection":["column"],"justifyContent":["center"]},"columnSize":"6","spacing":{"margin":{"values":{},"unit":["px","px","px","px"],"locked":fal
<!-- wp:greenshift-blocks/row {"id":"gsbp-5283fe07-4da3","align":"full","gutterClassName":"gspb_row\u002d\u002dgutter-60","rowLayout":"2","displayStyles":false,"background":{"color":"var(\u002d\u002dwp\u002d\u002dpreset\u002d\u002dcolor\u002d\u002dpalette-color-5, var(\u002d\u002dpaletteColor5, #F2F4F1))"},"spacing":{"margin":{"values":{},"unit":["px","px","px","px"],"locked":false},"padding":{"values":{"top":[120],"bottom":[120]},"unit":["px","px","px","px"],"locked":false}}} -->
<div id="gspb_row-id-gsbp-5283fe07-4da3" class="gspb_row gspb_row-id-gsbp-5283fe07-4da3 wp-block-greenshift-blocks-row alignfull gspb_row-id-gsbp-5283fe07-4da3 gspb_row--gutter-60"><div class="gspb_row__content"> <!-- wp:greenshift-blocks/row-column {"id":"gsbp-46d4bb08-c19d","gutterclass":"gspb_row\u002d\u002dgutter-60","columnSize":"6","spacing":{"margin":{"values":{},"unit":["px","px","px","px"],"locked":false},"padding":{"values":{"top":[0],"right":[0],"bottom":[0],"left":[0]},"unit":["px","px","px","px"],"locked":true}}} -->
<d
@sergiu-radu
sergiu-radu / gist:d1657b462987376ab3ee122d5075b403
Created May 30, 2023 15:36
Blocksy & GenerateBlocks Content
<!-- wp:heading -->
<h2 class="wp-block-heading">Core Heading</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Amet mattis vulputate enim nulla. Ut diam quam nulla porttitor massa id. Vulputate dignissim suspendisse in est ante in nibh. Elementum tempus egestas sed sed risus pretium quam. Risus feugiat in ante metus dictum at. Felis imperdiet proin fermentum leo vel orci. </p>
<!-- /wp:paragraph -->
<!-- wp:heading {"level":1} -->
<h1 class="wp-block-heading">Core Heading H1</h1>
<?php
add_action('wp', function () {
if (! get_theme_mod('blocksy_has_checkout_coupon', false)) {
remove_action('woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form', 10);
}
});
if (! class_exists('FluidCheckout')) {
add_action('woocommerce_checkout_before_customer_details', function () {
@sergiu-radu
sergiu-radu / gist:debd2e8ae5b3d353170360aded76d12e
Created October 19, 2021 18:19
Beta versions changelog - 1.8.6.3
// Blocksy theme - 1.8.6.3-beta17
- New: Better integration with Plus Addons for Gutenberg plugin
- Improvement: Allow shortcode in button header element
- Improvement: Typography option allow individual revert for font options
- Improvement: Optimized sticky header behavior
- Improvement: CSS improvements for sticky sidebar and header
- Improvement: Off canvas drawer validation issue
- Improvement: Better editor sync
- Improvement: Improve excessive DOM manipulations from JavaScript
- Improvement: Better compatibility with AJAX filter plugin