• Apparently this theme was written to pull the most recent post to the home page. So now I have 2 home pages. Somewhere in this theme’s php code is the key. I know about making the homepage the static page through settings and reading.

    The theme has the following php files:

    * Popup Comments (comments-popup.php)
    * Archives (archive.php)
    * Page Template (page.php)
    * Theme Functions (functions.php)
    * Single Post (single.php)
    * Search Form (searchform.php)
    * 404 Template (404.php)
    * Sidebar (sidebar.php)
    * Archives (archives.php)
    * Main Index Template (index.php)
    * Comments (comments.php)
    * Search Results (search.php)
    * Footer (footer.php)
    * Links (links.php)
    * Header (header.php)
    * sidebar2.php (sidebar2.php)

    Styles

    * Stylesheet (style.css)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Some themes have a ‘hard-coded’ link to home in them which links back to the site root, so I’d look for that.

    It may be in the header.php file, depending on your theme. If you don’t find it there, then it’s probably in each of the main page templates.

    Thread Starter ffrisbest

    (@ffrisbest)

    Awesome! I found it! Now my header.php file looks like this…

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”http://www.w3.org/1999/xhtml”&gt;

    <head profile=”http://gmpg.org/xfn/11″&gt;
    <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=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”alternate” type=”text/xml” title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?>” />
    <link rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href=”<?php bloginfo(‘atom_url’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />

    <?php wp_get_archives(‘type=monthly&format=link’); ?>

    <?php wp_head(); ?>
    </head>
    <body>

    <div id=”blogtitle”>
    <h1>/”><?php bloginfo(‘name’); ?></h1>
    </div>
    <div id=”navigation”>

    <form action=”<?php echo $_SERVER[‘PHP_SELF’]; ?>” method=”get”>
    <fieldset>
    <input value=”<?php echo wp_specialchars($s, 1); ?>” name=”s” id=”s” />
    <input type=”submit” value=”Go!” id=”searchbutton” name=”searchbutton” />
    </fieldset>
    </form>

      <?php wp_list_pages(‘title_li=&depth=1’); ?>

    </div>

    I am on a shared hosting plan and can’t edit my header.php.
    But I can edit style.css.

    I was able to do this:

    .page-item-19 {
    display:none;
    }

    I am on a shared hosting plan and can’t edit my header.php.

    What?
    99% of the WP users are on a shared hosting plan. You edit whatever you want – on your own computer in a plain text editor like Notepad, and upload it using your FTP client. It is that simple.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘2 HOME PAGES! – greenline theme’ is closed to new replies.