WordPress.org

Forums

[resolved] Splash page for image, no sidebar or header (3 posts)

  1. fallback2
    Member
    Posted 2 years ago #

    I tried plugin SplashImage, did not work.

    I have the Brunelleschi theme, which provides a Template for One column, no sidebar. (wait while I look up what a backtick is...)

    <?php
    /**
     * Template Name: One column, no sidebar
     *
     * A custom page template without sidebar.
     *
     * The "Template Name:" bit above allows this to be selectable
     * from a dropdown menu on the edit page screen.
     */
    
    get_header(); ?>
    
    		<div id="main" class="one-column twelvecol last" role="main">
    
    			<?php get_template_part( 'loop', 'page' ); ?>
    
    		</div><!-- #main -->
    
    <?php get_footer(); ?>

    I would like the footer there, but no sidebar or header - just a nice big fat illustration. I thought I could just rewrite this template. I took out the header part, renamed it splash, but it didn't work, gave error.

    I am sure this is a very simple php, but not sure how to change it. I also don't know how to add css for it - just call it #splash? It might not need css anyway.

    Any help much appreciated.

  2. Red Deer Web Design
    Member
    Posted 2 years ago #

    header.php is usually just all the header information - which you need. It shouldn't have anything related to the theme... although sometimes it does include the navigation.

    You will want to create a custom template instead of hacking up your current template. Simply add this to the top of a template to create a template:

    <?php/* Template Name: Home Template */ ?>

    Then remove the sidebar part......
    ... then learn css. lol

  3. fallback2
    Member
    Posted 2 years ago #

    Thank you, bdbolin, I kept refreshing this page, but never saw your response til now...thanks, Firefox!

    I had tried to create my own template a few times, but got big error message. Just taking out the header took out something else, I guess.

    To help others:
    I thought it would be cleaner to do it by finding a direct php, but ended up hacking the whole thing and just hiding what I didn't want in the css. :(

    Like so: .page-id-122 .hentry {width:960px; padding: 18px 18px 18px 5px;}

    It took a couple of hours to 1. Find the right css id - this is a huge, complicated one- and 2. Trial and error to change it for this page only.

    This was a helpful thread: http://wordpress.org/support/topic/how-to-hide-header-image-on-one-page?replies=6

    And since the background color was custom embedded, I got this plugin to adjust that: http://wordpress.org/extend/plugins/custom-post-background/

Topic Closed

This topic has been closed to new replies.

About this Topic