WordPress.org

Ready to get started?Download WordPress

Forums

2 Home Pages (3 posts)

  1. iphoneguy
    Member
    Posted 1 year ago #

    Hi. I have a premium theme I bought installed and I have 2 home pages. From what I've read that is because WordPress has a home button and the theme I installed has one hardcoded. I tried looking in header.php but I can't find what I need to remove/change

    It's in the top left corner

    Site: http://www.iphone5srumours.com

    header.php:

    <?php
    /**
     * The Header for our theme.
     *
     * Displays all of the <head> section and everything up till <div id="main">
     *
     * @package WordPress
     * @subpackage Comic_mag
     * @since WP_0001
     */
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <title>
    <?php
    	/*
    	 * Print the <title> tag based on what is being viewed.
    	 */
    	global $page, $paged;
    
    	wp_title( '|', true, 'right' );
    
    	// Add the blog name.
    	bloginfo( 'name' );
    
    	// Add the blog description for the home/front page.
    	$site_description = get_bloginfo( 'description', 'display' );
    	if ( $site_description && ( is_home() || is_front_page() ) )
    		echo " | $site_description";
    
    	// Add a page number if necessary:
    	if ( $paged >= 2 || $page >= 2 )
    		echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) );
    
    	?>
    </title>
    <?php $upload_dir = wp_upload_dir();?>
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_directory' ); ?>/css/shortcode.css" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php if($icon = get_option(THEME_SLUG.'icon')):?>
    <link rel="shortcut icon" href="<?php echo $upload_dir['baseurl']; ?>/ew_images/<?php echo $icon;?>" />
    <?php endif;?>
    <?php
    	/* 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' );
    
    	/* Always have wp_head() just before the closing </head>
    	 * tag of your theme, or you will break many plugins, which
    	 * generally use this hook to add elements to <head> such
    	 * as styles, scripts, and meta tags.
    	 */
    	wp_head();
    ?>
    <!--[if IE]>
     <style type="text/css">
    @font-face {
        font-family: 'GaboDrive';
        src: url('<?php bloginfo('template_directory'); ?>/fonts/webfontkit-GaboDrive/gabo___free_elegant_font_by_dannci_1-webfont-webfont.eot')!important;
    }
    </style>
    <![endif]-->
    </head>
    <?php
    global $logo,$textlogo;
    $logo = get_option(THEME_SLUG.'logo');
    $textlogo=get_option('text_logo');
    $upload_dir = wp_upload_dir();
    ?>
    <body <?php body_class(); ?>>
    <div id="wrapper" class="hfeed">
    	<div class="container">
    	<div id="header">
    		<div id="header-content" class="container_16">
    			<div class="top-menu">
    				<div class="top-left-menu"><?php wp_nav_menu( array( 'container_class' => 'menu-left-top','theme_location' => 'top_left_menu') );?></div>
    				<div class="top-right-menu"><?php wp_nav_menu( array( 'container_class' => 'menu-right-top','theme_location' => 'top_right_menu','depth' => 1) );?></div>
    			</div>
    			<div class="clear"></div>
    			<div class="head-logo"><!--#above-sidebar-->
    					<?php if(is_home() || is_front_page()) {?>
    						<h1 class="logo">
    								<?php if($logo){?>
    								<a href="<?php echo home_url();?>"><img src="<?php echo $upload_dir['baseurl'];?>/ew_images/<?php echo $logo;?>" title="<?php echo $textlogo;?>" alt="<?php echo $textlogo;?>"/></a>
    								<?php } else {
    											if($textlogo){
    											?>
    												<a href="<?php echo home_url();?>" title="<?php echo $textlogo;?>"><?php echo $textlogo;?></a>
    											<?php
    											}
    											else{
    												?>
    												<a href="<?php echo home_url();?>"><img src="<?php bloginfo('template_directory');?>/images/logo.png" alt="<?php echo get_bloginfo('name');?>" title="<?php echo get_bloginfo('name');?>"/></a>
    												<?php
    											}
    											}
    								?>	
    
    						</h1>
    						<?php } else { ?>
    							<span class="logo">
    								<?php if($logo){?>
    								<a href="<?php echo home_url();?>"><img src="<?php echo $upload_dir['baseurl'];?>/ew_images/<?php echo $logo;?>" title="<?php echo $textlogo;?>" alt="<?php echo $textlogo;?>"/></a>
    								<?php } else {
    											if($textlogo){
    											?>
    												<a href="<?php echo home_url();?>" title="<?php echo $textlogo;?>"><?php echo $textlogo;?></a>
    											<?php
    											}
    											else{
    												?>
    												<a href=>"<?php echo home_url();?>"<img src="<?php bloginfo('template_directory');?>/images/logo.png" alt="<?php echo get_bloginfo('name');?>" title="<?php echo get_bloginfo('name');?>"/></a>
    												<?php
    											}
    											}
    								?>	
    
    							</span>
    						<?php } ?>
    			</div><!--#above-sidebar-->
    			<div class="head-search"><?php get_search_form();?></div>
    			<div class="clear"></div>
    
    		</div><!-- #header-content -->
    		<div class="nav"><?php wp_nav_menu( array( 'container_class' => 'main-menu','theme_location' => 'primary','walker'=>new WD_Walker_Nav_Menu()) );?></div>
    	</div><!-- #header -->
    	<div class="clear"></div>
    		<script type="text/javascript">
    		//techmag menu
    		jQuery('.menu li').each(function(){
    			if(jQuery(this).children('.sub-menu').length > 0) jQuery(this).addClass('parent');
    		});
    		</script>
    	<div id="main">
  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    We don't support commercial themes.
    You can contact your theme's vendors regarding this issue.

  3. iphoneguy
    Member
    Posted 1 year ago #

    I'd prefer not to wait until Monday but thanks anyway Andrew.

Topic Closed

This topic has been closed to new replies.

About this Topic