Skip to content

Instantly share code, notes, and snippets.

@sergiu-radu
sergiu-radu / CSS
Created July 22, 2021 12:57
Woo Product Payment Icons
.woo-payment-icons-container {
margin-top: 35px;
padding: 1em 1.5em 1.5em 1.5em;
}
.woo-payment-icons {
display: flex;
flex-wrap: wrap;
margin: 0 -5px;
}
@sergiu-radu
sergiu-radu / gist:08f90a133a5607a5832633379d6e7a09
Created July 16, 2021 10:19
Blocksy beta change logs (16.07.2021)
--------------------
1. Blocksy theme
--------------------
- New: Social and share icons add nofollow/dofollow option
- New: WooCommerce gallery arrows color options
- New: WooCommerce sticky gallery option
- New: Turn on/off add to cart in WooCommerce archives
- New: Sticky last widget only
- Improvement: Defer JS files and load when appropriate (back to top, comments, share box)
- Improvement: Offload 40% of non-critical CSS (~40kb)
<?php
$options = [
blocksy_rand_md5() => [
'label' => __( 'Gallery Options', 'blocksy' ),
'type' => 'ct-panel',
'inner-options' => [
blocksy_rand_md5() => [
'title' => __( 'General', 'blocksy' ),
#header .ct-container-fluid {
width: 100% !important;
}
#header .ct-container-fluid .widget_text {
margin: 0 !important;
width: 100% !important;
}
@sergiu-radu
sergiu-radu / gist:46f19e265d9a64d3cc7bc798b718df7b
Created June 8, 2021 21:43
Beta versions changelog (1.8.3.3 & 1.8.6.2)
// Blocksy theme
- New: Archive cards featured image hover effect
- New: Conditionally load theme CSS files
- New: Header row - boxed container structure
- Improvement: Better support for filtering plugins
- Improvement: WooCommerce notice wrapper position when used in Elementor
- Improvement: Form drop down background color becomes unchangeable if type 2 is selected
- Improvement: Add `nofollow` attribute to social links
- Improvement: Some more accessibility improvements
- Improvement: Menu dropdown pointer events
@sergiu-radu
sergiu-radu / gist:af94283ecd2ef2e161ae6a96b204912b
Created May 11, 2021 11:20
Elementor boxed section temporary fix
.elementor-section:not(.ct-section-stretched) {
max-width: var(--block-max-width, var(--container-max-width));
margin-left: auto;
margin-right: auto;
}
.qubely-row > .qubely-column {
min-height: inherit;
}
.qubely-row > .qubely-column > .qubely-column-inner {
min-height: inherit;
}
@sergiu-radu
sergiu-radu / gist:e5404948d6b018d9ec3766c5fb680611
Created March 25, 2021 09:40
Search shortcode (with live results)
// 1. Add this code in your functions.php file
add_shortcode('wpbsearch', 'get_search_form');
// 2. Call the shortcode wherever you want like this:
[wpbsearch]
select,
textarea,
input[type='url'],
input[type='tel'],
input[type='text'],
input[type='date'],
input[type='email'],
input[type='number'],
input[type='search'],
input[type='password'],
@sergiu-radu
sergiu-radu / gist:07e5bebd9aab57c7b33d544680bd7135
Created April 9, 2021 17:23
Blocksy beta change log (09.04.2021)
--------------------
1. Blocksy theme
--------------------
- New: Implement dynamic JavaScript chunks
- New: Open account modal when clicking on Login to leave a reply
- New: Responsive options for boxed/wide layout
- New: WooCommerce support for WooCommerce Additional Variation Images
- New: Global button border option
- New: Scroll to top new icons
- New: Add scroll smooth behavior