P30Amin
February 29th, 2016, 17:01
سلام
میخام یک اسلایدر در قسمت هدر سایتم بزارم و یک بنر دادم درست کردن منتها سایزش اوکی نمیشه
بنر با این سایز گذاشتم :
112*978
ولی کوچیک شد طولش
با این سایز:
112*1124
گذاشتم تغییری نکرد
همچنین با این سایز هم قرار دادم ولی بازم اوکی نشد
197*1307
===========================
http://s7.picofile.com/file/8241189626/little_big_size.jpg
===========================
این کدی که اسلایدر میده:
<?php
echo do_shortcode("[metaslider id=1603]");
?>
--------------------------------------------
آدرس سایت (http://comefile.com/)
این کد های هدر سایت که کد بالا رو درش قرار دادیم:
<!DOCTYPE html>
<html <?php language_attributes(); ?> prefix="og: http://ogp.me/ns#">
<head><?php wp_head(); ?>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
</head>
<?php global $is_IE ?>
<body id="top" <?php body_class(); ?>>
<?php if( tie_get_option('banner_bg_url') && tie_get_option('banner_bg') ): ?>
<a href="<?php echo tie_get_option('banner_bg_url') ?>" target="_blank" class="background-cover"></a>
<?php else: ?>
<div class="background-cover"></div>
<?php endif; ?>
<?php $full_width =''; if( tie_get_option( 'full_logo' )) $full_width = ' full-logo';
$center_logo =''; if( tie_get_option( 'center_logo' )) $center_logo = ' center-logo';
?>
<header id="theme-header" class="theme-header<?php echo $full_width.$center_logo ?>">
<?php if(!tie_get_option( 'top_menu' )): ?>
<div class="top-nav">
<?php if(tie_get_option( 'top_date' )):
if( tie_get_option('todaydate_format') ) $date_format = tie_get_option('todaydate_format');
else $date_format = 'l , j F Y';
?>
<span class="today-date"><?php echo date_i18n( $date_format , current_time( 'timestamp' ) ); ?></span><?php endif; ?>
<?php wp_nav_menu( array( 'container_class' => 'top-menu', 'theme_location' => 'top-menu', 'fallback_cb' => 'tie_nav_fallback' ) ); ?>
<?php if(tie_get_option( 'top_right' ) == 'search'): ?>
<div class="search-block">
<form method="get" id="searchform-header" action="<?php echo home_url(); ?>/">
<button class="search-button" type="submit" value="<?php if( !$is_IE ) _e( 'Search' , 'tie' ) ?>"></button>
<input type="text" id="s" name="s" value="<?php _e( 'Search...' , 'tie' ) ?>" onfocus="if (this.value == '<?php _e( 'Search...' , 'tie' ) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Search...' , 'tie' ) ?>';}" />
</form>
</div><!-- .search-block /-->
<?php elseif( tie_get_option('top_right') == 'social' ):
tie_get_social( 'yes' , 16 , 'tooldown' ); ?>
<?php endif; ?>
<?php tie_language_selector_flags(); ?>
</div><!-- .top-menu /-->
<?php endif; ?>
<a href="http://comefile.com/"><img alt="کام فایل" width="308px" height="69" src="http://comefile.com/wp-content/uploads/2015/11/buysell.png"></img></a>
</div>
<?php $stick = ''; ?>
<?php if( tie_get_option( 'stick_nav' ) ) $stick = ' class="fixed-enabled"' ?>
<?php if(!tie_get_option( 'main_nav' )): ?>
<?php
//UberMenu Support
$navID = 'main-nav';
if ( class_exists( 'UberMenu' ) ){
$uberMenus = get_option( 'wp-mega-menu-nav-locations' );
if( !empty($uberMenus) && is_array($uberMenus) && in_array("primary", $uberMenus)) $navID = 'main-nav-uber';
}?>
<nav id="<?php echo $navID; ?>"<?php echo $stick; ?>>
<div class="container">
<?php $orig_post = $post; wp_nav_menu( array( 'container_class' => 'main-menu', 'theme_location' => 'primary' ,'fallback_cb' => 'tie_nav_fallback', 'walker' => new tie_mega_menu_walker() ) ); $post = $orig_post; ?>
<?php if(tie_get_option( 'random_article' )): ?>
<a href="<?php echo home_url(); ?>/?tierand=1" class="random-article tieicon-shuffle ttip" title="<?php _e( 'Random Article' , 'tie' ) ?>"></a>
<?php endif ?>
</div>
</nav><!-- .main-nav /-->
<?php endif; ?><?php
echo do_shortcode("[metaslider id=1603]");
?>
</header><!-- #header /-->
<?php get_template_part( 'includes/breaking-news' ); // Get Breaking News template ?>
<?php
$sidebar = '';
if( tie_get_option( 'sidebar_pos' ) == 'left' ) $sidebar = ' sidebar-left';
if( is_singular() || ( function_exists( 'is_woocommerce' ) && is_woocommerce() ) ){
$current_ID = $post->ID;
if( function_exists( 'is_woocommerce' ) && is_woocommerce() ) $current_ID = woocommerce_get_page_id('shop');
$get_meta = get_post_custom( $current_ID );
if( !empty($get_meta["tie_sidebar_pos"][0]) ){
$sidebar_pos = $get_meta["tie_sidebar_pos"][0];
if( $sidebar_pos == 'left' ) $sidebar = ' sidebar-left';
elseif( $sidebar_pos == 'full' ) $sidebar = ' full-width';
elseif( $sidebar_pos == 'right' ) $sidebar = ' sidebar-right';
}
}
if( function_exists('is_bbpress') && is_bbpress() && tie_get_option( 'bbpress_full' )) $sidebar = ' full-width';
?>
<div id="main-content" class="container<?php echo $sidebar ; ?>">
میخام یک اسلایدر در قسمت هدر سایتم بزارم و یک بنر دادم درست کردن منتها سایزش اوکی نمیشه
بنر با این سایز گذاشتم :
112*978
ولی کوچیک شد طولش
با این سایز:
112*1124
گذاشتم تغییری نکرد
همچنین با این سایز هم قرار دادم ولی بازم اوکی نشد
197*1307
===========================
http://s7.picofile.com/file/8241189626/little_big_size.jpg
===========================
این کدی که اسلایدر میده:
<?php
echo do_shortcode("[metaslider id=1603]");
?>
--------------------------------------------
آدرس سایت (http://comefile.com/)
این کد های هدر سایت که کد بالا رو درش قرار دادیم:
<!DOCTYPE html>
<html <?php language_attributes(); ?> prefix="og: http://ogp.me/ns#">
<head><?php wp_head(); ?>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
</head>
<?php global $is_IE ?>
<body id="top" <?php body_class(); ?>>
<?php if( tie_get_option('banner_bg_url') && tie_get_option('banner_bg') ): ?>
<a href="<?php echo tie_get_option('banner_bg_url') ?>" target="_blank" class="background-cover"></a>
<?php else: ?>
<div class="background-cover"></div>
<?php endif; ?>
<?php $full_width =''; if( tie_get_option( 'full_logo' )) $full_width = ' full-logo';
$center_logo =''; if( tie_get_option( 'center_logo' )) $center_logo = ' center-logo';
?>
<header id="theme-header" class="theme-header<?php echo $full_width.$center_logo ?>">
<?php if(!tie_get_option( 'top_menu' )): ?>
<div class="top-nav">
<?php if(tie_get_option( 'top_date' )):
if( tie_get_option('todaydate_format') ) $date_format = tie_get_option('todaydate_format');
else $date_format = 'l , j F Y';
?>
<span class="today-date"><?php echo date_i18n( $date_format , current_time( 'timestamp' ) ); ?></span><?php endif; ?>
<?php wp_nav_menu( array( 'container_class' => 'top-menu', 'theme_location' => 'top-menu', 'fallback_cb' => 'tie_nav_fallback' ) ); ?>
<?php if(tie_get_option( 'top_right' ) == 'search'): ?>
<div class="search-block">
<form method="get" id="searchform-header" action="<?php echo home_url(); ?>/">
<button class="search-button" type="submit" value="<?php if( !$is_IE ) _e( 'Search' , 'tie' ) ?>"></button>
<input type="text" id="s" name="s" value="<?php _e( 'Search...' , 'tie' ) ?>" onfocus="if (this.value == '<?php _e( 'Search...' , 'tie' ) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Search...' , 'tie' ) ?>';}" />
</form>
</div><!-- .search-block /-->
<?php elseif( tie_get_option('top_right') == 'social' ):
tie_get_social( 'yes' , 16 , 'tooldown' ); ?>
<?php endif; ?>
<?php tie_language_selector_flags(); ?>
</div><!-- .top-menu /-->
<?php endif; ?>
<a href="http://comefile.com/"><img alt="کام فایل" width="308px" height="69" src="http://comefile.com/wp-content/uploads/2015/11/buysell.png"></img></a>
</div>
<?php $stick = ''; ?>
<?php if( tie_get_option( 'stick_nav' ) ) $stick = ' class="fixed-enabled"' ?>
<?php if(!tie_get_option( 'main_nav' )): ?>
<?php
//UberMenu Support
$navID = 'main-nav';
if ( class_exists( 'UberMenu' ) ){
$uberMenus = get_option( 'wp-mega-menu-nav-locations' );
if( !empty($uberMenus) && is_array($uberMenus) && in_array("primary", $uberMenus)) $navID = 'main-nav-uber';
}?>
<nav id="<?php echo $navID; ?>"<?php echo $stick; ?>>
<div class="container">
<?php $orig_post = $post; wp_nav_menu( array( 'container_class' => 'main-menu', 'theme_location' => 'primary' ,'fallback_cb' => 'tie_nav_fallback', 'walker' => new tie_mega_menu_walker() ) ); $post = $orig_post; ?>
<?php if(tie_get_option( 'random_article' )): ?>
<a href="<?php echo home_url(); ?>/?tierand=1" class="random-article tieicon-shuffle ttip" title="<?php _e( 'Random Article' , 'tie' ) ?>"></a>
<?php endif ?>
</div>
</nav><!-- .main-nav /-->
<?php endif; ?><?php
echo do_shortcode("[metaslider id=1603]");
?>
</header><!-- #header /-->
<?php get_template_part( 'includes/breaking-news' ); // Get Breaking News template ?>
<?php
$sidebar = '';
if( tie_get_option( 'sidebar_pos' ) == 'left' ) $sidebar = ' sidebar-left';
if( is_singular() || ( function_exists( 'is_woocommerce' ) && is_woocommerce() ) ){
$current_ID = $post->ID;
if( function_exists( 'is_woocommerce' ) && is_woocommerce() ) $current_ID = woocommerce_get_page_id('shop');
$get_meta = get_post_custom( $current_ID );
if( !empty($get_meta["tie_sidebar_pos"][0]) ){
$sidebar_pos = $get_meta["tie_sidebar_pos"][0];
if( $sidebar_pos == 'left' ) $sidebar = ' sidebar-left';
elseif( $sidebar_pos == 'full' ) $sidebar = ' full-width';
elseif( $sidebar_pos == 'right' ) $sidebar = ' sidebar-right';
}
}
if( function_exists('is_bbpress') && is_bbpress() && tie_get_option( 'bbpress_full' )) $sidebar = ' full-width';
?>
<div id="main-content" class="container<?php echo $sidebar ; ?>">