WordPress.org

Forums

Help With Two Home Pages (8 posts)

  1. mychef
    Member
    Posted 2 years ago #

    Hello I know this is nothing new I have two home pages one came with the theme one I created as a static page. I will not be using this site for blogging. I've read the old forums and none of the codes seem to pertain to my theme. I have tried editing the header i just cant seem to find the right code to remove. I greatly appreciate your help.

    [ Moderator Note: Not really modlook issue... Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum's parser. Or use pastebin.com instead. ]

    <?php
    /**
     * The Header for our theme.
     *
     * @package WordPress
     * @subpackage YIW Themes
     * @since 1.0
     */
     global $yiw_mobile;
    ?><!DOCTYPE html>
    <!--[if IE 6]>
    <html id="ie6" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if IE 7]>
    <html id="ie7" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if IE 8]>
    <html id="ie8" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if IE 9]>
    <html id="ie9" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if !(IE 6) | !(IE 7) | !(IE 8)  ]><!-->
    <html <?php language_attributes(); ?>>
    <!--<![endif]-->
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <?php if ( ! $yiw_mobile->isIpad() ) : ?>
    <meta name="viewport" content="width=device-width" />
    <?php endif ?>
    <title><?php
    	/*
    	 * Print the <title> tag based on what is being viewed.
    	 */
    	global $page, $paged, $current_user;
    
    	wp_title( '|', true, 'right' );
    
    	// Add the blog name.
    	bloginfo( 'name' );
    
            // Add description, if is home
    	if ( is_home() || is_front_page() )
    		echo ' | ' . get_bloginfo( 'description' );
    
    	// Add a page number if necessary:
    	if ( $paged >= 2 || $page >= 2 )
    		echo ' | ' . sprintf( __( 'Page %s', 'yiw' ), max( $paged, $page ) );
    
    	?></title>
    
    	<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />                              
    
    	<?php if ( yiw_get_option( 'responsive', 1 ) ) : ?>
    	<link rel="stylesheet" type="text/css" media="screen and (max-width: 960px)" href="<?php echo get_template_directory_uri(); ?>/css/lessthen980.css" />
    	<link rel="stylesheet" type="text/css" media="screen and (max-width: 600px)" href="<?php echo get_template_directory_uri(); ?>/css/lessthen600.css" />
    	<link rel="stylesheet" type="text/css" media="screen and (max-width: 480px)" href="<?php echo get_template_directory_uri(); ?>/css/lessthen480.css" />
    	<?php endif; ?>
    
        <?php
    		// styles
            wp_enqueue_style( 'prettyPhoto' );
    		wp_enqueue_style( 'Droid-google-font',  yiw_ssl_url( 'http://fonts.googleapis.com/css?family=Droid+Sans' ) );
            wp_enqueue_style( 'jquery-tipsy' );  
    
    		// scripts
            wp_enqueue_script( 'jquery-prettyPhoto' );
            wp_enqueue_script( 'jquery-tipsy' );
            wp_enqueue_script( 'jquery-tweetable' );
        	wp_enqueue_script( 'jquery-nivo' );
    	    wp_enqueue_script( 'jquery-cycle' );
            wp_enqueue_script( 'jquery-easing' ); 
    
            // slider libraries
    		if ( is_home() || is_front_page() || is_page_template('home.php') || get_page_template_slug( get_option('woocommerce_shop_page_id') ) == 'home.php' ) :
    
                $slider_type = yiw_slider_type();
    
                if ( in_array( $slider_type, array( 'cycle', 'nivo' ) ) )
    		        wp_enqueue_style( 'slider-' . $slider_type,        get_template_directory_uri()."/css/slider-". $slider_type .".css" );
    
    			// elegant
    			if ( $slider_type == 'elegant' ) :
    	    		wp_enqueue_script( 'jquery-cycle' );  
    
    		    // flash
    		    elseif ( $slider_type == 'flash' ) :
    		        wp_enqueue_script( 'swfobject' );
    
    		    // thumbnails
    		    elseif ( $slider_type == 'thumbnails' ) :
    		        wp_enqueue_script( 'jquery-aw-showcases', get_template_directory_uri()."/js/jquery.aw-showcase.js" );
    
    		    // cycle
    		    elseif ( $slider_type == 'cycle' ) :
    		        wp_enqueue_script( 'jquery-cycle' );
    		        wp_enqueue_script( 'swfobject' );
    
    		    // nivo
    		    elseif ( $slider_type == 'nivo' ) :
    		        wp_enqueue_script( 'jquery-nivo' );
    
    		    // rotating
    		    elseif ( $slider_type == 'rotating' ) :
            		wp_enqueue_style( 'jquery-rotating',   	get_template_directory_uri()."/css/jquery-rotating.css" );
    		        wp_enqueue_script( 'jquery-rotating',	get_template_directory_uri()."/js/jquery.RotateImageMenu.js", array('jquery'), '1.0', true );
    		        //wp_enqueue_script( 'jquery-transform',	get_template_directory_uri()."/js/jquery.transform-0.9.3.min.js", array('jquery') );
    		    endif;
    
    		endif;
    
            // custom
            wp_enqueue_script( 'jquery-custom',      get_template_directory_uri()."/js/jquery.custom.js", array('jquery'), '1.0', true); 
    
    		/* We add some JavaScript to pages with the comment form
    		 * to support sites with threaded comments (when in use).
    		 */
    		if ( is_singular() && get_option( 'thread_comments' ) )
    			wp_enqueue_script( 'comment-reply' );          
    
            $body_class = '';
            if ( ( yiw_get_option( 'responsive', 1 ) && ! $GLOBALS['is_IE'] ) || ( yiw_get_option( 'responsive', 1 ) && yiw_ieversion() >= 9 ) )
                $body_class = ' responsive';
        ?>         
    
        <!-- [favicon] begin -->
        <link rel="shortcut icon" type="image/x-icon" href="<?php yiw_favicon(); ?>" />
        <link rel="icon" type="image/x-icon" href="<?php yiw_favicon(); ?>" />
        <!-- [favicon] end -->  
    
        <?php wp_head() ?>
    </head>
    
    <body <?php body_class( "no_js" . $body_class ) ?>>   
    
    	<!-- START LIGHT WRAPPER -->
    	<div class="bgLight group"> 
    
    		<!-- START WRAPPER -->
    		<div class="wrapper group">    
    
    			<!-- START BG WRAPPER -->
    			<div class="bgWrapper group">          
    
    			    <!-- START HEADER -->
    			    <div id="header" class="group">  
    
    					<!-- .inner -->
    					<div class="inner group">          
    
    				        <!-- START LOGO -->
    				        <div id="logo" class="group">
    
    				            <a>" title="<?php bloginfo('name') ?>">
    				                <?php if ( yiw_get_option( 'show_image_logo' ) ) : ?>
    				                <img src="<?php yiw_logo() ?>" alt="Logo <?php bloginfo('name') ?>" />
    				                <?php else : ?>
    				                <span class="logo-title"><?php bloginfo( 'name' ) ?></span>
    				                <?php endif; ?>
    				            </a>         
    
    							<?php if ( yiw_get_option( 'show_description_logo' ) ) : ?>
    							<p class="logo-description"><?php bloginfo( 'description' ) ?></p>
                                <?php endif; ?>     
    
    				        </div>
    				        <!-- END LOGO -->        
    
    				        <!-- START LINKSBAR -->
    				        <?php get_template_part( 'linksbar' ); ?>
    				        <!-- END LINKSBAR -->  
    
    				        <div class="clear"></div>
    
    				        <!-- START NAV -->
    				        <div id="nav" class="group <?php echo yiw_get_option( 'nav_type' ) ?>">
    				            <?php
    								$nav_args = array(
    				                    'theme_location' => 'nav',
    				                    'container' => 'none',
    				                    'menu_class' => 'level-1',
    				                    'depth' => 3,
    				                    //'fallback_fb' => false,
    				                    //'walker' => new description_walker()
    				                );
    
    				                wp_nav_menu( $nav_args );
    				            ?>
    				        </div>
    				        <!-- END NAV -->
    
    						<?php if( yiw_get_option( 'show_searchform' ) ) : ?>
    						<!-- START SEARCH FORM -->
    						<?php
    							$submit_label = create_function( '', 'return ">";' );
    							$label = create_function( '', 'return "' . __( 'search', 'yiw' ) . '";' );
    							add_filter( 'yiw_searchform_submitlabel', $submit_label );
    							add_filter( 'yiw_searchform_label', $label );
    							get_template_part( 'searchform', 'shop' );
    							remove_filter( 'yiw_searchform_submitlabel', $submit_label );
    							remove_filter( 'yiw_searchform_label', $label );
    						?>
    						<!-- END SEARCH FORM -->
    						<?php endif; ?>
    
    					</div>
    					<!-- end .inner -->   
    
    			    </div>
    			    <!-- END HEADER -->    
    
    				<?php get_template_part( 'slider' ); ?> 
    
    			    <!-- START PRIMARY SECTION -->
    			    <div id="primary" class="inner group">    
    
    				    <?php get_template_part( 'slogan' ); ?>
  2. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    What do you want to do with the two home pages? Can you elaborate on the problem?

  3. mychef
    Member
    Posted 2 years ago #

    Essentially The one page came as a template with the theme but unable to edit. So I created a new one titled home as a static page. I only need the one page so I can edit as my home on a regular site non blogging.

  4. mychef
    Member
    Posted 2 years ago #

    http://www.truepawdogtreats.com is the site I'm working on.

  5. pawstoluv
    Member
    Posted 2 years ago #

    I have same problem and am new at this. The site is pawstoluvpuppies.com and I tried a lot of things nothing working. I have one that's says nothing there and one that is correct. How do I get rid of the bad one? I am using Bouquet. wordpress 3.5.

  6. kathygry
    Member
    Posted 2 years ago #

    I know this is a question that has been asked many, many times. I,too, have a homepage I cannot get rid of. I am not familiar with code and don't want to mess anything up. My site is widefittingshoesreviews.com. I am using Flexibility 3 theme. There aren't too many responses to questions on that forum, so I am asking here. I want to get rid of the "home" page and keep the "myhome" page. I set the "myhome" page as my static page and and "blog" page for my posts. I tried deleting and rearranging and nothing seems to work. If I have to do anything with code, please be as specific as possible so I don't make it worse. Thank you in advance.

  7. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    You will receive help on your own threads. This thread belongs to someone else.

  8. kathygry
    Member
    Posted 2 years ago #

    Sorry. I'll start a new thread.

Topic Closed

This topic has been closed to new replies.

About this Topic