Skip to content

Instantly share code, notes, and snippets.

@jmabbas
jmabbas / functions.php
Created July 23, 2025 11:10
Vodi - Movie Source
function vodi_template_streaming_medias() {
global $movie;
$sources = $movie->get_sources();
if( !empty( $sources ) && is_array( $sources ) ) {
?><ul class="movie__streaming-medias"><?php
foreach ( $sources as $source ) {
$source_content = ( $source['choice'] == 'movie_url' ) ? $source['link'] : $source['embed_content'];
if( isset( $source['is_affiliate'] ) && $source['is_affiliate'] && ! empty( $source_content ) ) {
?><li><?php echo apply_filters( 'the_content', $source_content ); ?></li><?php
@jmabbas
jmabbas / style.css
Created July 23, 2025 06:14
Electro - Single product description image to center
.electro-description img {
display: flex;
margin: 0 auto;
}
@jmabbas
jmabbas / style.css
Created July 22, 2025 06:18
Electro - Header sub menu border color
.secondary-nav>.dropdown .dropdown-menu {
border-color: blue;
}
@jmabbas
jmabbas / style.css
Created July 22, 2025 04:12
Luxe - Header search width
.header-transparent .wp-block-search .wp-block-search__inside-wrapper {
min-width: 220px;
}
@jmabbas
jmabbas / functions.php
Created July 21, 2025 07:24
Mytravel - Login pop up redirect to my account page
function mytravel_wc_registration_form() {
if ( mytravel_is_woocommerce_activated() && mytravel_header_signin_enable() && ! is_user_logged_in() ) {
$is_registration_enabled = false;
if ( 'yes' === get_option( 'woocommerce_enable_myaccount_registration' ) ) {
$is_registration_enabled = true;
}
@jmabbas
jmabbas / style.css
Created July 17, 2025 05:17
Electro Enable Variation price
.single-product .woocommerce-variation p.stock {
display: block;
}
.single-product .product-type-variable .availability {
display: none;
}
@jmabbas
jmabbas / style.css
Created July 16, 2025 14:29
Electro - Single product wishlist icon
.single .yith-wcwl-add-button .add_to_wishlist svg.yith-wcwl-icon-svg { width: 18px; }
@jmabbas
jmabbas / functions.php
Created July 15, 2025 14:14
Tokoo - Shop page bottom jumbotron before footer
add_action( 'init', 'tk_child_move_shop_bottom_jumbotron' );
function tk_child_move_shop_bottom_jumbotron() {
remove_action( 'woocommerce_after_shop_loop', 'tokoo_shop_archive_bottom_jumbotron', 30 );
add_action( 'tokoo_before_footer_v1', 'tokoo_shop_archive_jumbotron', 10 );
}
@jmabbas
jmabbas / style.css
Created July 15, 2025 06:14
Silicon - Center header menu
@media (min-width: 992px) {
.navbar-expand-lg .offcanvas-body {
margin: 0 auto;
}
}
@jmabbas
jmabbas / style.css
Created July 14, 2025 12:47
Luxe - Hero v1 load full backgournd image
@media (max-width: 767px) {
.home-v1-hero .has-background {
background-size: contain !important;
background-repeat: no-repeat !important;
padding: 0;
}
.home-v1-hero .has-background .wp-block-spacer {
display: none;
}