This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Themify WPTouch Compatibility | |
Description: This plugin makes Builder in Themify framework compatible with the WPTouch plugin. | |
*/ | |
function themify_wptouch_compat() { | |
$theme_root = wp_get_theme()->get_template_directory(); | |
if( ! is_admin() | |
&& wptouch_is_mobile_theme_showing() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
table { | |
width: 100%; | |
max-width: 100%; | |
margin-bottom: 20px; | |
} | |
table > thead > tr > th, | |
table > tbody > tr > th, | |
table > tfoot > tr > th, | |
table > thead > tr > td, | |
table > tbody > tr > td, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.shortcode.loops-wrapper.grid5 .post { | |
opacity: 1 !important; | |
width: auto; | |
float: none; | |
margin: 0; | |
} | |
@media (min-width: 831px) { | |
.shortcode.loops-wrapper.grid5 .post { | |
width: 17.4%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Gallery_Images_Links { | |
public function __construct() { | |
add_filter( 'attachment_link', array( $this, 'attachment_link' ), 10, 2 ); | |
add_filter( 'attachment_fields_to_edit', array( $this, 'attachment_fields_to_edit' ), 20, 2 ); | |
add_filter( 'attachment_fields_to_save', array( $this, 'attachment_fields_to_save' ), 10, 2 ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function custom_unlink_portfolio_images() { | |
global $post, $themify; | |
if( $post->post_type == 'portfolio' ) { | |
if( is_singular( 'portfolio' ) || ( ! empty( $_SERVER[ 'HTTP_X_REQUESTED_WITH' ] ) && strtolower( $_SERVER[ 'HTTP_X_REQUESTED_WITH' ]) == 'xmlhttprequest' ) ) { | |
$themify->unlink_image = 'yes'; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function themify_infinite_scroll_init() { | |
add_theme_support( 'infinite-scroll', array( | |
'container' => 'loops-wrapper', | |
'render' => 'themify_infinite_scroll_render' | |
) ); | |
} | |
add_action( 'after_setup_theme', 'themify_infinite_scroll_init' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.pagewidth { | |
width: 94%; | |
} | |
@media (min-width: 771px) { | |
#content { | |
width: 75%; | |
} | |
#sidebar { | |
width: 22%; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#nav-bar { | |
top: 0; | |
bottom: auto; | |
position: fixed; | |
} | |
.admin-bar #nav-bar { | |
top: 32px; | |
} | |
.home #main-nav ul { | |
bottom: auto; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#header hgroup { | |
-webkit-transform: inherit !important; | |
-moz-transform: inherit !important; | |
position: relative; | |
z-index: 99999; | |
} | |
.fixed-header-on #site-logo { | |
position: fixed; | |
top: 0; | |
left: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function append_language_class( $classes ) { | |
$classes[] = ICL_LANGUAGE_CODE; | |
return $classes; | |
} | |
add_filter( 'body_class', 'append_language_class' ); |