• Hi, I am using a theme called Jet by SAFI TECH. How I Have tow home buttons. Not sure if its in a php file or if its a setting issue. Under the Appearances>Customize there is an option for a static or posts home page. However I created my own Home page as I could not figure out how to edit templates “home” page since its not listed as a page in my page options. I will paste my php code in the next post.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter apearson85

    (@apearson85)

    Header.php

    <?php include_once('includes.php'); ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html>
    <head>
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title><?php if (is_home () ) { bloginfo('name'); echo " - "; bloginfo('description');
    } else { wp_title('',true); echo " - "; bloginfo('name'); }?></title>
    <meta name="robots" content="index,follow" />
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/reset.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/style.css" type="text/css" media="screen" />
    <!--[if IE]> <link href="<?php bloginfo('stylesheet_directory'); ?>/css/ie.css" rel="stylesheet" type="text/css"/><![endif]-->
    
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/javascript/jquery-1.1.3.1.min.js"></script>
    <script type="text/javascript">
    $(function(){
    	// main area + sidebar widths
    	var mainWidth = $("#contentWrapper").width();
    	var sidebarWidth = <?php echo get_option("sidebar_width") == ""? 170 : get_option("sidebar_width"); ?>;
    	var numsidebars = <?php echo numberOfSidebars(); ?>;
    
    	if(numsidebars > 0) {
    		var contentWidth = mainWidth - ( sidebarWidth * numsidebars );
    		$("#middleContent").css("width", contentWidth + "px");
    	}
    
    	$(".sidebar").css("width", sidebarWidth);
    	$("#contentWrapper").addClass('<?php echo getLayoutClassName(); ?>');
    	if(numsidebars > 0) {
    		$(".layout_sidebar1left_sidebar2right  #middleContent,.layout_sidebar1right_sidebar2left  #middleContent").css("margin", "0px "+(sidebarWidth+10)+"px");
    		$("#middleContent").css("width", ($("#middleContent").width()-23));
    		$(".layout_sidebar1left #middleContent, .layout_sidebar2left #middleContent, .layout_sidebar1right #middleContent, .layout_sidebar2right #middleContent").css("width", ($("#middleContent").width()+10));
    
    		$('.adsense_top:empty').remove();
    		$('.sidebar_ads:empty').remove(); 
    
    		var contentHeight = 'auto';
    		var s1h = $('#sidebar1').height();
    		var s2h = $('#sidebar2').height();
    		var ch  = $('.content').height();
    		if(s1h > s2h && s1h > ch) {
    			contentHeight = s1h;
    		} else if(s2h > s1h && s2h > ch) {
    			contentHeight = s2h;
    		}
    		$('.content').css('height', contentHeight);
    	}
    	$("#contentWrapper").css("height", $(".content").height());
    
    });
    </script>
    
    <?php wp_head(); ?>
    
    </head>
    <body>
    <div id="mainWrapper">
    	<div id="wrapper">
    
    		<div id="header">
    
    			<div class="logo">
    				<a href=""><img src="<?php bloginfo('stylesheet_directory'); ?>/images/logo.png" alt="Jethost" title="jethost"/></a>
    			</div>
    			<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
    			<div>
    			<input type="text" value="<?php if(get_search_query() == "") { echo 'enter keyword...'; } else {the_search_query(); } ?>" name="s" id="searchbox" onfocus="if(this.value == 'enter keyword...') { this.value='';}" onblur="if(this.value == '') {this.value='enter keyword...';}"/>
    			<input type="image" id="searchbutton" value="find" src="<?php bloginfo('stylesheet_directory'); ?>/images/buttons/search-btn.png"/>
    			</div>
    			</form>
    			<div class="blogerName">
    				<h1><a>/"><?php bloginfo('name'); ?></a></h1>
    				<div class="description"><?php bloginfo('description'); ?></div>
    			</div>
    			<div id="mainNav">
    
    <ul>
    				<?php
    
    				if (is_home()) {
    				  $addclass = ' class="current"';
    				  } else {
    				  $addclass = '';
    				  }
    				echo "<li" . $addclass . "><a title='Home'><span>Home</span></a>";
    				echo listPages();?>
    				</ul>
    			</div><!-- Closes Nav -->
    		</div> <!-- Closes Header -->


    [Please use the code buttons when posting code]

    Thread Starter apearson85

    (@apearson85)

    Let me know if there is any other php files that maybe the culprit

    I’ve deleted your last 3 posts – your code is getting corrupted by posting it here without using the code buttons and you should be using a pastebin to post large amounts of code – see:

    http://codex.wordpress.org/Forum_Welcome#Posting_Code

    That said, is this the theme you are asking about?

    http://wordpress.org/themes/jet

    It looks quite ancient and no longer supported…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘2 "Home" Button’ is closed to new replies.