Problem with implementation just on home page
-
Greeting for Support Huge IT π
I have a problem when I want to implement it on home page. I use TechLine template from flexithemes.com, and I have default slider there, which I want to replace with Huge IT Slider.
I was trying everything that you suggested (add shortcode in index.php and pasted the obove code in the header.php) but nothing ever happens.
Please help me how to resolve
This is my header.php code
<?php global $theme; ?><!DOCTYPE html><?php function wp_initialize_the_theme() { if (!function_exists("wp_initialize_the_theme_load") || !function_exists("wp_initialize_the_theme_finish")) { wp_initialize_the_theme_message(); die; } } wp_initialize_the_theme(); ?> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> <head profile="http://gmpg.org/xfn/11"> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <title><?php $theme->meta_title(); ?></title> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <?php $theme->hook('meta'); ?> <link rel="stylesheet" href="<?php echo THEMATER_URL; ?>/css/reset.css" type="text/css" media="screen, projection" /> <link rel="stylesheet" href="<?php echo THEMATER_URL; ?>/css/defaults.css" type="text/css" media="screen, projection" /> <!--[if lt IE 8]><link rel="stylesheet" href="<?php echo THEMATER_URL; ?>/css/ie.css" type="text/css" media="screen, projection" /><![endif]--> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen, projection" /> <?php if ( is_singular() ) { wp_enqueue_script( 'comment-reply' ); } ?> <?php wp_head(); ?> <?php $theme->hook('head'); ?> </head> <body <?php body_class(); ?>> <?php $theme->hook('html_before'); ?> <div id="container"> <div id="header"> <div class="logo"> <?php if ($theme->get_option('themater_logo_source') == 'image') { ?> <a href="<?php echo home_url(); ?>"><img src="<?php $theme->option('logo'); ?>" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>" /></a> <?php } else { ?> <?php if($theme->display('site_title')) { ?> <h1 class="site_title"><a href="<?php echo home_url(); ?>"><?php $theme->option('site_title'); ?></a></h1> <?php } ?> <?php if($theme->display('site_description')) { ?> <h2 class="site_description"><?php $theme->option('site_description'); ?></h2> <?php } ?> <?php } ?> </div><!-- .logo --> <div class="header-right"> <?php if($theme->display('menu_primary')) { $theme->hook('menu_primary'); } ?> </div><!-- .header-right --> </div><!-- #header --> <?php if($theme->display('menu_secondary')) { ?> <div class="clearfix"> <?php $theme->hook('menu_secondary'); ?> </div> <?php } ?>index.php
<?php global $theme; get_header(); ?> <div id="main"> <?php $theme->hook('main_before'); ?> <div id="content"> <?php $theme->hook('content_before'); ?> <?php $is_post_wrap = 0; if (have_posts()) : while (have_posts()) : the_post(); /** * The default post formatting from the post.php template file will be used. * If you want to customize the post formatting for your homepage: * * - Create a new file: post-homepage.php * - Copy/Paste the content of post.php to post-homepage.php * - Edit and customize the post-homepage.php file for your needs. * * Learn more about the get_template_part() function: http://codex.wordpress.org/Function_Reference/get_template_part */ $is_post_wrap++; if($is_post_wrap == '1') { ?><div class="post-wrap clearfix"><?php } get_template_part('post', 'homepage'); if($is_post_wrap == '2') { $is_post_wrap = 0; ?></div><?php } endwhile; else : get_template_part('post', 'noresults'); endif; if($is_post_wrap == '1') { ?></div><?php } get_template_part('navigation'); ?> <?php $theme->hook('content_after'); ?> </div><!-- #content --> <?php get_sidebars(); ?> <?php $theme->hook('main_after'); ?> </div><!-- #main --> <?php get_footer(); ?>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Problem with implementation just on home page’ is closed to new replies.