Hi Ov3rfly
Sorry, should have copied the whole php file. That } is the end of the media queries bit. Here’s the whole function.php
‘
<?php
add_action( ‘after_setup_theme’, ‘et_setup_theme’ );
if ( ! function_exists( ‘et_setup_theme’ ) ){
function et_setup_theme(){
remove_action( ‘wp_head’, ‘feed_links’ );
remove_action( ‘wp_head’, ‘rsd_link’);
remove_action( ‘wp_head’, ‘wlwmanifest_link’);
remove_action( ‘wp_head’, ‘index_rel_link’);
remove_action( ‘wp_head’, ‘parent_post_rel_link’);
remove_action( ‘wp_head’, ‘start_post_rel_link’);
remove_action( ‘wp_head’, ‘adjacent_posts_rel_link’);
remove_action( ‘wp_head’, ‘wp_generator’);
remove_action(‘wp_head’, ‘print_emoji_detection_script’, 7);
remove_action(‘wp_print_styles’, ‘print_emoji_styles’);
remove_action(‘admin_print_scripts’, ‘print_emoji_detection_script’ );
remove_action(‘admin_print_styles’, ‘print_emoji_styles’ );
require_once(TEMPLATEPATH . ‘/epanel/custom_functions.php’);
require_once(TEMPLATEPATH . ‘/includes/functions/comments.php’);
require_once(TEMPLATEPATH . ‘/includes/functions/sidebars.php’);
load_theme_textdomain(‘ElegantEstate’,get_template_directory().’/lang’);
require_once(TEMPLATEPATH . ‘/epanel/options_elegantestate.php’);
require_once(TEMPLATEPATH . ‘/epanel/core_functions.php’);
require_once(TEMPLATEPATH . ‘/epanel/post_thumbnails_elegantestate.php’);
include(TEMPLATEPATH . ‘/includes/widgets.php’);
require_once(TEMPLATEPATH . ‘/includes/functions/additional_functions.php’);
}
}
// Add MEDIA QUERIES ………….
add_action(‘wp_head’,’et_portfoliopt_additional_styles’,100);
function et_portfoliopt_additional_styles(){ ?>
<style type=”text/css”>
#et_pt_portfolio_gallery { margin-left: -15px; }
.et_pt_portfolio_item { margin-left: 21px; }
.et_portfolio_small { margin-left: -40px !important; }
.et_portfolio_small .et_pt_portfolio_item { margin-left: 38px !important; }
@media only screen and (max-width:720px){
.et_portfolio_small { margin-left: 0px !important; }
.et_portfolio_small .et_pt_portfolio_item { margin-left: 5% !important; }
}
@media only screen and (max-width:359px){
.et_portfolio_small { margin-left: -4px !important;}
.et_portfolio_small .et_pt_portfolio_item { margin-left: 2px !important; }
}
.et_portfolio_large { margin-left: -8px !important; }
.et_portfolio_large .et_pt_portfolio_item { margin-left: 6px !important; }
</style>
<?php }
function my_wpcf7_ajax_loader( $url ) {
return str_replace( ‘https://’, ‘//’, $url );
}
add_filter( ‘wpcf7_ajax_loader’, ‘my_wpcf7_ajax_loader’, 10, 1 );
function register_main_menus() { register_nav_menus( array( ‘primary-menu’ => __( ‘Primary Menu’ ), ‘secondary-menu’ => __( ‘Secondary Menu’ ) ) );};
if (function_exists(‘register_nav_menus’)) add_action( ‘init’, ‘register_main_menus’ );
if ( ! function_exists( ‘et_list_pings’ ) ){ function et_list_pings($comment, $args, $depth) { $GLOBALS[‘comment’] = $comment; ?> <li id=”comment-<?php comment_ID(); ?>”><?php comment_author_link(); ?> – <?php comment_excerpt(); ?> <?php }}
add_action(‘template_redirect’,’check_listing’);
function check_listing() {
if (isset($_REQUEST[“option-listing”])) {
$category_link = get_category_link( $_REQUEST[“option-listing”] );
wp_redirect($category_link);
}
}
function SearchFilter($query) {
if ($query->is_search) {
$query->set(‘post_type’, ‘post’);
}
return $query;
}
if( !is_admin() ) add_filter(‘pre_get_posts’,’SearchFilter’);
add_filter(‘body_class’,’et_additional_body_class’);
function et_additional_body_class($classes) {
if ( !is_home()) $classes[] = ‘index’;
return $classes;
} ?>
‘