Retarded Wordpress question

Status
Not open for further replies.

turbolapp

New member
Aug 10, 2007
8,502
187
0
I'm not sure if this may just be the theme or what but this is the second time I've encountered this particular problem. You know how some themes start off with a couple of pages? usually "home" and "about" Well when I go into "manage pages" to adjust edit these pages, only the "about" is there...where the hell is the "home" page? It's driving me crazy.




 


Look in the WP-Content/themes/<themename>/ folder. There should be an index.php file you can edit, usually has the side links hard coded, sometimes not, but usually. There may be other files, just look in Index.php as a starting point.

Also, remember that there are no stupid questions, only stupid people. - Quote from my 9th grade english teacher.

EDIT: Header.php would likely be where the link is, but starting from Index.php (or default or whatever the starting point is.) usually saves a lot of time in the long run.
 
Thanks bb.

Since coding is no where near my strong point...Here's my index.php file...anyone care to tell me what I'm looking for and how to edit it?

<?php get_header(); ?>
<!-- start latest post -->
<div id="latest-post" class="wide-post">
<?php if (have_posts()): the_post(); ?>

<h1 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
<div class="entry">
<?php the_excerpt(); ?>

<p> </p>
<p class="links">

<?php $arc_year = get_the_time('Y'); $arc_month = get_the_time('m'); $arc_day = get_the_time('d'); ?>
<a href="<?php echo get_day_link("$arc_year", "$arc_month", "$arc_day"); ?>" class="date"><?php the_time('F jS, Y'); ?></a>

    

<span class="author"><?php the_author_posts_link(); ?></span>

    

<?php comments_popup_link('No Comments', '1 Comment', '% Comments', 'comments'); ?>
( <span class="feeds"><?php comments_rss_link('RSS'); ?></span> )

</p>
</div>

<?php else : ?>

<h1 class="title">Not Found</h1>
<div class="entry">
<p>Sorry, but you are looking for something that isn't here.</p>
</div>

<?php endif; ?>

<div class="bottom"></div>
</div>
<!-- end latest post -->
<!-- start recent posts & comments -->
<div class="two-columns">
<ul id="recents">
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('RecentPostsCommentsBox')): ?>
<li>Please put the 'Recent Posts' and 'Recent Comments' widgets here.</li>
<?php endif; ?>
</ul>
</div>
<!-- end recent posts & comments -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
 
It's in your header.php file, post the contents of that, or PM me and we'll work through it together.
 
In most cases, it is here: Design -> Theme Editor -> Main Index Template (index.php)

get_header gets the header, get_sidebar gets the sidebar, get_footer gets the footer, and so on.

If you want to change the appearance, add the new styles to your style.css and include that in index.php.

Have fun.
 
...so should I post style.css or header.php here?

EDIT: I'll go with header :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="XHTML namespace" <?php language_attributes(); ?>>
<head profile="XFN 1.1 profile">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<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'); ?>" />
<?php wp_head(); ?>
</head>
<body>
<!-- start header -->
<div id="header">
<div id="logo">
<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
<p><?php bloginfo('description'); ?></p>
</div>
<div id="search">
<form method="get" action="<?php bloginfo('url'); ?>/">
<fieldset>
<input type="text" name="s" id="s" size="15" value="<?php the_search_query(); ?>" />
<input id="x" type="submit" value="Search" />
</fieldset>
</form>
</div>
</div>
<div id="menu">
<ul>
<li class="page_item<?php if (is_home()) echo ' current_page_item'; ?>"><a href="<?php echo get_option('home'); ?>/">Home</a></li>
<?php wp_list_pages('title_li=' ); ?>
</ul>
</div>
<!-- end header -->
<hr />
<!-- start page -->
<div id="page">
 
In most cases, it is here: Design -> Theme Editor -> Main Index Template (index.php)

get_header gets the header, get_sidebar gets the sidebar, get_footer gets the footer, and so on.

If you want to change the appearance, add the new styles to your style.css and include that in index.php.

Have fun.



If she doesn't know how to edit a PHP file, she likely doesn't know how to set permissions to edit the themes
 
Here's where the HOME link is built.

<div id="logo">
<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
<p><?php bloginfo('description'); ?></p>
</div>


What exactly do you want to do? Remove it? Change the link?
 
I would like to just remove it. And if I want a home page I'll just go back to page manager and make a new one.

So just delete that part of the code and I should be fine?
 
I would like to just remove it. And if I want a home page I'll just go back to page manager and make a new one.

So just delete that part of the code and I should be fine?

Home is just a link to your home/index page, it's not an actual post. So it just links to www. yoursite.com.

If you want to remove the first post, then go to Manage - Posts and delete the Hello World post.

If you don't want a link to your home page (I think you would) then you can delete that in the code as mentioned above.
 
Home is just a link to your home/index page, it's not an actual post. So it just links to www. yoursite.com.

If you want to remove the first post, then go to Manage - Posts and delete the Hello World post.

If you don't want a link to your home page (I think you would) then you can delete that in the code as mentioned above.


Yes, but there is no way to edit that link (see the pics in my first post ) which is why I just want to delete it and make my own home link...
 
Ok BB, I tried removing the code you refered to and that didn't work... it actually removed the logo and left the home. See below image:

 
delete this:
Code:
<li class="page_item<?php if (is_home()) echo ' current_page_item'; ?>"><a href="<?php echo get_option('home'); ?>/">Home</a></li>

This code:
Code:
   <?php wp_list_pages('title_li=' ); ?>

lists any pages you create
 
Here's where the HOME link is built.

<div id="logo">
<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
<p><?php bloginfo('description'); ?></p>
</div>


What exactly do you want to do? Remove it? Change the link?

That bit is for the logo (linking to home). It's this bit you need to edit in header.php:

Code:
  <ul>
 <li class="page_item<?php if (is_home()) echo ' current_page_item'; ?>"><a href="<?php echo get_option('home'); ?>/">Home</a></li>
  <?php wp_list_pages('title_li=' ); ?>
 </ul>
To just show the pages, try:
<ul>
<?php wp_list_pages('title_li=' ); ?>
</ul>
 
Status
Not open for further replies.