Skip to content

Instantly share code, notes, and snippets.

@tokopress
tokopress / functions.php
Created January 20, 2017 04:20
Eventica - Override add_image_size (Child Theme)
add_action( 'after_setup_theme', 'tokopress_childtheme_setup_image_size', 20 );
function tokopress_childtheme_setup_image_size() {
// imgae size
add_image_size( 'blog-thumbnail', 400, 200, true );
}
@tokopress
tokopress / style.css
Created December 27, 2016 11:41
Marketica - Disable Product Category Hover Effect on Mobile
@media screen and (max-width: 768px) {
.woocommerce ul.products.product-category li.product .add-to-cart-loop-wrap, .woocommerce-page ul.products.product-category li.product .add-to-cart-loop-wrap {
opacity: 1;
background: none;
}
.woocommerce ul.products.product-category li.product .add-to-cart-loop-wrap .detail_button_loop, .woocommerce-page ul.products.product-category li.product .add-to-cart-loop-wrap .detail_button_loop {
opacity: 1;
transform: none;
font-size: 16px;
background: #fff !important;
@tokopress
tokopress / style.css
Created August 17, 2016 10:47
Eventica - Move post meta to bottom of single post
.blog-single .col-md-9.col-md-push-3, .blog-single .col-md-3.col-md-pull-9 {
float: none;
width: 100%;
left: auto;
right: auto;
}
.blog-single .post-summary {
border: 0;
padding: 0;
}
@tokopress
tokopress / style.css
Created August 11, 2016 00:22
Marketica - Hide product hover effect on mobile
@media (max-width: 460px) {
.woocommerce ul.products li.product.product-hover .add-to-cart-loop-wrap, .woocommerce-page ul.products li.product.product-hover .add-to-cart-loop-wrap {
display: none;
}
}
@tokopress
tokopress / style.css
Created August 11, 2016 00:13
Marketica - show products in 2 columns on mobile
@media (max-width: 460px) {
.woocommerce[class*=columns-] ul.products li.product, .woocommerce-page[class*=columns-] ul.products li.product {
width: 50% !important;
}
}
@tokopress
tokopress / functions.php
Created August 9, 2016 12:50
Eventica - Exclude Some Event Categories on Frontend
add_action( 'get_the_terms', 'tokopress_custom_exclude_event_categories_single', 10 );
function tokopress_custom_exclude_event_categories_single( $terms ) {
$exclude = array( 261, 262 );
if ( !is_admin() && !empty( $terms ) ) {
foreach ( $terms as $key => $term ) {
if ( $term->term_id && in_array( $term->term_id, $exclude ) ) {
unset( $terms[$key] );
}
}
}
@tokopress
tokopress / style.css
Last active July 22, 2016 00:16
Eventica - Fix Responsive Issue on Community Events Plugin
@media (max-width: 700px) {
#tribe-community-events {
padding: 10px;
}
#tribe-community-events .eventForm.bubble {
padding: 0;
}
}
@media (max-width: 420px) {
@tokopress
tokopress / search.php
Created July 15, 2016 07:25
Eventica - Full Width Search Results Page
<?php get_header(); ?>
<?php if( ! of_get_option( 'tokopress_page_title_disable' ) ) : ?>
<?php get_template_part( 'block-page-title' ); ?>
<?php endif; ?>
<div id="main-content">
<div class="container">
<div class="row">
@tokopress
tokopress / style.css
Created July 15, 2016 04:34
Dokan - Hide Product Category DropDown Select on Seller Dashboard Products
.dokan-dashboard .dokan-product-listing-area select.product_cat {
display: none;
}
.dokan-dashboard .dokan-product-listing-area button[name="product_listing_filter"] {
display: none;
}
@tokopress
tokopress / style.css
Created July 12, 2016 14:51
Eventica - Change Event List Details Height
.tribe-events-list .event-list-wrapper-bottom {
height: 130px;
}