Skip to content

Instantly share code, notes, and snippets.

@jmabbas
jmabbas / style.css
Created July 1, 2025 09:08
Pizzeria - Search page mobile two columns
@media (max-width: 600px) {
.archive.search .wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid {
grid-template-columns: 50% 50%;
grid-gap: 10px;
}
}
@jmabbas
jmabbas / style.css
Created June 30, 2025 04:44
Techmarket - Header v8 background color
@media (min-width: 1025px) {
.site-header.header-v8 .site-branding {
background-color: #000;
}
}
@jmabbas
jmabbas / style.css
Created June 30, 2025 04:41
Silicon - Mobile sticky header background color
@media (max-width:768px) {
header#masthead .navbar-sticky {
background-color: #131022;
}
}
@jmabbas
jmabbas / style.css
Created June 27, 2025 11:10
Electro - Header v12 hide search
header .masthead form.navbar-search.col {
display: none;
}
@jmabbas
jmabbas / style.css
Created June 24, 2025 06:38
Electro - Loop Wishlist style
.yith-wcwl-add-to-wishlist-button.yith-wcwl-add-to-wishlist-button--anchor {
gap: 0;
font-size: 14px;
}
@jmabbas
jmabbas / functions.php
Created June 23, 2025 16:48
WooCommerce enable product Gutenberg editor
add_filter('use_block_editor_for_post_type', 'enable_gutenberg_for_products', 10, 2);
function enable_gutenberg_for_products($use_block_editor, $post_type) {
if ($post_type === 'product') {
return true;
}
@jmabbas
jmabbas / style.css
Created June 19, 2025 04:22
Vodi - Videos jumbotron move to bottom
.post-type-archive-video .content-area {
display: flex;
flex-direction: column;
}
.videos__jumbotron--top {
order: 1;
}
@jmabbas
jmabbas / class-finder-breadcrumb.php
Created June 18, 2025 07:57
Finder - Breadcrumb category
<?php
/**
* Finder_Breadcrumb class.
*
* @package Finder\Classes
*/
defined( 'ABSPATH' ) || exit;
/**
@jmabbas
jmabbas / functions.php
Created June 16, 2025 07:26
Pizzaro - Footer about
function pizzaro_footer_about_info() {
$about_info = apply_filters(
'pizzaro_footer_about_info_args',
array(
'img_src' => '//placehold.it/435x330',
'title' => esc_html__( 'About us', 'pizzaro' ),
'description' => esc_html__( 'Proin ac semper mi. Phasellus magna elit, dapibus at egestas a, facilisis nec ligula. In vitae ex ante. Aliquam interdum maximus dui quis sodales. Cras vel mi diam. Phasellus mi ante, iaculis nec tempus ac, tincidunt sit amet eros. Fusce malesuada elit massa, ac eleifend massa ligula, semper sed faucibus vitae, fermentum sed ex.', 'pizzaro' ),
'button_text' => esc_html__( 'Read More &nbsp;&nbsp;&nbsp;&rarr;', 'pizzaro' ),
'button_link' => '#',
)
@jmabbas
jmabbas / functions.php
Created June 12, 2025 06:42
Pizzaro - Footer v2 about on footer v1
add_action( 'pizzaro_before_footer_v1', 'pizzaro_footer_about_info', 105 );