Skip to content

Instantly share code, notes, and snippets.

@bl4ckcoff33
bl4ckcoff33 / gist:d8096f0c5aee33032fcf69075c65ba17
Last active September 29, 2016 07:21
[ENFOLD] Transparent Header on scroll
.header_color .header_bg {background: transparent;}
@bl4ckcoff33
bl4ckcoff33 / text-instead-of-flags.css
Created September 26, 2016 12:21
[ENFOLD] Text instead of flags
.language_el .language_flag:before {content: 'Greek';}
.language_en .language_flag:before {content: 'English';}
.avia_wpml_language_switch li .language_flag img {display: none;}
@bl4ckcoff33
bl4ckcoff33 / table-scrolling.css
Created September 26, 2016 12:20
[ENFOLD] Table Scrolling
table {overflow: auto!important; display: block!important;}
@bl4ckcoff33
bl4ckcoff33 / table-rows.css
Created September 26, 2016 12:20
[ENFOLD] Table Rows
.main_color tr:nth-child(odd), .main_color .pricing-table>li:nth-child(odd), .main_color .pricing-extra {background: red; color: #ffffff;}
.main_color tr:nth-child(even), .main_color .pricing-table>li:nth-child(even), .main_color .pricing-extra {background: black; color: #ffffff;}
@bl4ckcoff33
bl4ckcoff33 / rtl
Created September 26, 2016 12:20
[ENFOLD] RTL Support
// RTL SUPPPORT
add_action( 'wp_enqueue_scripts', 'wp_enqueue_scripts_mod', 20 );
function wp_enqueue_scripts_mod() {
$template_url = get_template_directory_uri();
wp_dequeue_style( 'avia-rtl' );
wp_deregister_style( 'avia-rtl' );
if ( is_rtl() || 'ar' == ICL_LANGUAGE_CODE ) {
wp_enqueue_style( 'avia-rtl', $template_url."/css/rtl.css", array(), '1', 'all' );
}
@bl4ckcoff33
bl4ckcoff33 / remove-wpml-flags-menu.css
Created September 26, 2016 12:19
[ENFOLD] Remove WPML Flags Menu
.avia_wpml_language_switch {display:none!important;}
.avia_wpml_language_switch li .language_flag img {display:none!important;}
@bl4ckcoff33
bl4ckcoff33 / post-slider-excerpt-length
Created September 26, 2016 12:19
[ENFOLD] Post Slider Excerpt Length
// POST SLIDER EXCERPT LENGTH
add_filter('avf_postgrid_excerpt_length','avia_change_excerpt_length',10,1);
function avia_change_excerpt_length()
{
return 100;
}
@bl4ckcoff33
bl4ckcoff33 / main-menu-links.css
Created September 26, 2016 12:18
[ENFOLD] Main Menu Links
@bl4ckcoff33
bl4ckcoff33 / flags-left.css
Created September 26, 2016 12:17
[ENFOLD] WPML Flag Switchet on the left
nav.sub_menu {width: 100%;}
ul#avia2-menu {float: right!important;}
@bl4ckcoff33
bl4ckcoff33 / disable-gm-api
Created September 26, 2016 12:16
[ENFOLD] Disable Google Maps API call
add_filter( 'avf_load_google_map_api', '__return_false' );