Skip to content

Instantly share code, notes, and snippets.

@jmabbas
jmabbas / style.css
Created November 14, 2025 11:45
Luxe - Single product tabs enable
.single-product .wp-block-woocommerce-product-details .wc-tabs {
display: block !important;
}
.single-product .wp-block-woocommerce-product-details .woocommerce-tabs div[style="display: none;"] {
display: none !important;
}
@jmabbas
jmabbas / functions.php
Created November 13, 2025 15:05
Vodi - Tv Show custom tab
function masvideos_template_single_tv_show_tabs() {
global $tv_show, $post;
$tabs = array();
// Description tab - shows tv show content.
if ( $post->post_content ) {
$tabs['description'] = array(
'title' => esc_html__( 'Description', 'masvideos' ),
'callback' => 'masvideos_template_single_tv_show_description',
@jmabbas
jmabbas / style.css
Created November 11, 2025 08:48
Jobhunt - Job type color
.tax-job_listing_type .jobhunt-wpjm-widget-layered-nav-list__item.freelance a:before {
color: red;
}
.tax-job_listing_type .jobhunt-wpjm-widget-layered-nav-list__item.freelance a:hover {
color: red;
}
.tax-job_listing_type .jobhunt-wpjm-widget-layered-nav-list__item.full-time a:before {
color: green;
@jmabbas
jmabbas / functions.php
Created November 11, 2025 06:53
Vodi - Single movie custom
function vodi_toggle_single_movie_hooks() {
$style = vodi_get_single_movie_style();
if ( $style !== 'v4' && $style !== 'v3' ) {
add_action( 'masvideos_before_single_movie_summary', 'vodi_template_single_movie_player_container_wrap_open', 1 );
add_action( 'masvideos_after_single_movie_summary', 'vodi_template_single_movie_player_container_wrap_close', 10 );
}
if( $style === 'v7' ) {
remove_filter( 'masvideos_related_movies_default_args', 'vodi_related_movies_default_args' );
@jmabbas
jmabbas / functions.php
Created November 7, 2025 07:01
Jobhunt - Jobs hooks
add_action( 'jobhunt_before_job_listing', 'jobhunt_template_job_listing_link_open', 10 );
add_action( 'jobhunt_before_job_listing_title', 'jobhunt_template_job_listing_company_logo', 20 );
add_action( 'jobhunt_before_job_listing_title', 'jobhunt_template_job_listing_detail_open', 30 );
add_action( 'jobhunt_before_job_listing_title', 'jobhunt_template_job_listing_detail_inner_open', 40 );
add_action( 'jobhunt_job_listing_title', 'jobhunt_template_job_listing_title', 50 );
add_action( 'jobhunt_job_listing_title', 'jobhunt_template_job_listing_company_details', 60 );
add_action( 'jobhunt_job_listing_title', 'jobhunt_template_job_listing_location', 70 );
add_action( 'jobhunt_after_job_listing_title', 'jobhunt_template_job_listing_detail_inner_close', 80 );
add_action( 'jobhunt_after_job_listing_title', 'jobhunt_template_job_listing_loop_job_meta', 90 );
add_action( 'jobhunt_after_job_listing', 'jobhunt_template_job_listing_detail_close', 100 );
@jmabbas
jmabbas / functions.php
Last active November 7, 2025 07:00
Jobhunt - Page title
function jobhunt_site_content_page_title() {
$site_content_page_title = '';
$site_content_page_subtitle = '';
if ( is_home() || ( is_single() && 'post' == get_post_type() ) ) {
$site_content_page_title = apply_filters( 'jobhunt_site_content_blog_page_title', esc_html__( 'Blog', 'jobhunt' ) );
$site_content_page_subtitle = apply_filters( 'jobhunt_site_content_blog_page_subtitle', esc_html__( 'Keep up to date with the latest news', 'jobhunt' ) );
} elseif ( is_front_page() ) {
$site_content_page_title = get_the_title();
} elseif( is_archive() ) {
@jmabbas
jmabbas / functions.php
Created November 6, 2025 17:09
Geeks - Single course review enabled all users
function geeks_tutor_default_course_tabs( $tabs = array() ) {
global $post;
$course_id = get_the_ID();
$is_enrolled = tutor_utils()->is_enrolled( $course_id );
$course_post_type = tutor()->course_post_type;
// Curriculum Tab.
$topics = tutor_utils()->get_topics();
@jmabbas
jmabbas / style.css
Last active November 6, 2025 17:20
Geeks - Custom CSS tablet
@media (min-width:1000px) and (max-wdith:767px) {
.tutor-dashboard .row.mt-0.mt-md-4 > div {
width: 100% !important;
}
.tutor-dashboard .row.mt-0.mt-md-4 {
flex-direction: column;
}
a.text-inherit.tutor-lesson-sidebar-hide-bar +h2.course-title a {
@jmabbas
jmabbas / style.css
Created November 5, 2025 06:50
Electro - Home v12 category list order
.categories-list-card> div >div:nth-child(1) {
order: 1;
}
.categories-list-card> div >div:nth-child(2) {
order: 2;
}
.categories-list-card> div >div:nth-child(3) {
order: 3;
}
.categories-list-card> div >div:nth-child(4) {
@jmabbas
jmabbas / style.css
Created November 3, 2025 14:22
Luxe - Checkout custom
@media(max-width:767px) {
.wc-block-components-sidebar.wc-block-checkout__sidebar,
.wp-block-woocommerce-checkout .wc-block-checkout__main {
width: 80%;
margin: 0 auto;
}
}
.wc-block-checkout__actions .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button .wc-block-components-checkout-place-order-button__text {