1. Home
  2. ReHub Theme
  3. Useful code snippets

Useful code snippets

How to hide Compare icon in search results in header

.re-search-result-compare{display:none}

you can place this in theme options – general options – custom css

How to disable “Sort by” filter panel in Repick theme

If you don’t like it, you can hide

.filter_home_pick{display:none}

You can place this in theme options – general options – custom css. You can also create custom page and custom filter panel with page builder

How to hide Price history on Products

Sometimes you may need to hide price history section in products, use next

#section-woo-ce-pricehistory, #tab-title-woo-ce-pricehistory{display:none} 

You can place this in theme options – general options – custom css.

How to show Buttons in Columned Grid for Woocommerce

Button is visible in columned grid only on hover action. You can enable it without hovering with next code

.woo_column_item{ border1px solid #eee; background:#fff}

.woo_column_item .woo_column_btn {display: block;position: static;border: none;padding: 15px 0 0 0;box-shadow: none;animation: initial !important;}

You can place this in theme options – general options – custom css.

How to change color of Notice counter

By default, color is red, you can change on other colors

.re-compare-notice, .rh-icon-notice{background:green}

you can place this in theme options – general options – custom css

How to disable date in Post grid

Most of post modules show date of post publishing. You can disable it in theme option – global enable/disable. But some modules show date in special mode (… days ago). You can disable this date with next code

.date_for_grid{display:none}

you can place this in theme options – general options – custom css

How to disable User ratings on User Profiles

#rh-bp-profile-stats .rh-star-ajax{display:none}

you can place this in theme options – general options – custom css

How to hide Search on Mobiles

By default, mobile version of site will have search icon. You can disable it

.icon-search-onclick{display:none}

you can place this in theme options – general options – custom css

How to change Price tag color in Product grid

.woocommerce .products .product .price{color:green !Important}

you can place this in theme options – general options – custom css

How to change discount label color in Product Grid

.grid_onsale, .overlay_post_formats.sale_format{background-color:red}

you can place this in theme options – general options – custom css

How to disable Mobile floating panel with Buy Now Button and Price

#float-panel-woo-area{display:none !important}

you can place this in theme options – general options – custom css

How to disable Title limit in Deal/Coupon Grid module

.offer_grid h3{height:auto !important}

you can place this in theme options – general options – custom css

If you want to increase limit instead of deleting it, use code

.offer_grid h3{height:54px !important}

Articles