Removing header, footer and sidebars for a "splash" page
Hi Flynn,
Is there a way to remove the header, footer, and sidebars, for just one static page, which would be the "splash" page of the site? The idea is to have one click through "welcome" graphic, dead center on the opening page of the site, and that is the only thing on the page. Thanks! |
Insert this at A. Theme Options -> HTM/CSS Inserts -> CSS Insert
HTML Code:
#splash-outer { HTML Code:
<div id="splash-outer"><div id="splash-inner"> At A. Theme Options -> Sidebars -> LEFT sidebar: Don't display on Pages: / RIGHT sidebar: Don't display on Pages: put the ID of the new page At Site Admin -> Settings -> Reading -> Front page displays chose the new page as the front page In index.php, find PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
worked beautifully. rocking it old school!
thanks so much. |
doh! just realized i am still getting the background color of the post body in the top of the screen...it's a dark blue against the black...
http://www.thebeatings.com/beatings_TEST/ any thoughts...? |
Extend the code from above that you put into header.php
from: PHP Code:
to: PHP Code:
You can add other splash-page-specific styles, too: PHP Code:
|
excellent! thank you flynn!
|
How do you make this work in the 3.3.3 ? The index.php is completely different now. Thank you !
|
In 3.3.3's index.php
PHP Code:
is PHP Code:
PHP Code:
is PHP Code:
|
First of all thanks a lot for your constant help, I've just made a donation, it is not big as I am a student, but I really wanted to show you how grateful I am.
So, I've tried to do the change you first wrote on post #2 : - Changing this : HTML Code:
<?php bfa_post_headline(); // Post Headline: To edit the output, see functions/bfa_post_parts.php ?> HTML Code:
<?php if ( !is_front_page() ) { ?> HTML Code:
<?php if ( is_front_page() ) { ?> HTML Code:
<?php echo $bfa_ata['html_inserts_css']; ?> But an error obviously occured, because I get an error message : Parse error: syntax error, unexpected T_STRING in /var/www/com2009/streetart/wordpress/wp-content/themes/atahualpa333/header.php on line 773 Line 773 is <?php if ( is_front_page() ) { ?> Oh I forgot to say that I've already changed the index.php, to erase the title of the page, as you explained here : http://forum.bytesforall.com/showthread.php?t=1334 I hope you can understand me... Thank you by advance ! |
In index.php you should change
PHP Code:
PHP Code:
and in header.php add PHP Code:
PHP Code:
|
Thank you so much, it is perfect now ! There are some dot on the top, but it doesn't matter, the image almost covers them. Thank you !!!
|
Okay, I might be losing it but I have about 3-4 versions of Index.php files and none of them have the line of code that I assume I should be looking for. Did I miss something (of course) somewhere? I am running theme version 3.2, as I have not upgraded to 3.3 yet.
:) Thanks in advance for a lifesaver you can throw my way. Tiffany (aka Masselyn) |
The instructions of post #2 should work for Atahualpa version 3.2, did you look at post #2?
|
Hi :
I did start at the beginning (I've already made the CSS changes, etc), but none of my index.php files have the lines of code that were referenced. I was lost as to where I would place the adjusted code that you mention. Should I just place it at the end of the file, if I don't have the whole <post headline>, etc. lines of code? Thanks!! |
This is how the code in question looks in index.php of Atahualpa 3.2
PHP Code:
|
Thanks. I did finally get it working, but unfortunately the splash page image is not showing up centered. If I place standard text in the div, it all works and centers wonderfully. As soon as I place the splash image in its place...everything is thrown off. I am playing around with it some more, but does something glare out at you that I am doing wrong?
I'm also trying to get rid of the white bar at that top. I changed the coding in the header.php, but that won't go away. Again, I am tweaking some more things to see if I can fix that. THANKS! www.party-licious.com |
Remove the white background of the middle colum with a CSS Insert
td#middle { background: none !important; } and adjust the numbers from the code above to match the actual width and height of your image, which is 932x681: #splash-inner { margin-left: -466px; /* half of width = 932/2 */ position: absolute; top: -340px; /* - half of height = 681/2 */ left: 50%; width: 932px; height: 681px; visibility: visible } |
Lifesaver! You're the best, and I feel like a ninny for not catching that. Thanks so much!!!
|
Okay, I just noticed something else. Adding the CSS code for the middle removes it for all pages. Is there anything I can do to prevent this, as I do want the white for all pages but the Splash one that I created? Thanks!
Moola coming your way, cause I really want to say THANK YOU. |
Add that to header.php then, along with the other CSS, instead of using a CSS Insert
header.php: <?php if ( is_front_page() ) { ?> td#header, td#footer { display: none; } td#middle { background: none !important; } <?php } ?> |
:confused:
I am new to WordPress and I'm really excited about using this theme to build my site. I read through everything on your directions, but I am having trouble following them. I have version 3.4 and can't figure out how to make most of the file edits. Could post how to make a splash page with nothing else on it for the latest version? Thanks in advance |
I'd love to second the Seawitch's thought. I am trying to do the same thing I did above, in this thread, on the new version but the index.php file does not look the same. Thanks.
|
I added the lines of code to the end of the index.php, which did not appear to have blown anything up. Whew! I went to add the lines of code to the header.php but I am not finding the exact wording it should go below. When I placed it in an area I "thought" it should be, but I am getting nothing. It can be viewed here at www.masselyn.com/rr . The line of code at the top, which should be hidden, is showing. I assume I placed it in the wrong location, but the header.php file looks different in the newest version.
Help! I would appreciate any help that can be offered. Thanks so much! |
I'm on the same track here, wanting to make a splashpage, but the indexfile of Atahualpa 342 doesn't look at all to the ones discribed above.
This is what my index file lokks like, <?php /* get all options: */ include (TEMPLATEPATH . '/functions/bfa_get_options.php'); get_header(); ?> <?php /* If there are any posts: */ if (have_posts()) : $bfa_ata['postcount'] == 0; /* Postcount needed for option "XX first posts full posts, rest excerpts" */ ?> <?php /* This outputs the next/previous post or page navigation. This can be edited at Atahualpa Theme Options -> Style & edit the Center column */ bfa_center_content($bfa_ata['content_above_loop']); ?> <?php /* The LOOP starts here. Do this for all posts: */ while (have_posts()) : the_post(); $bfa_ata['postcount']++; ?> <?php /* Add Odd or Even post class so post containers can get alternating CSS style (optional) */ $odd_or_even = (($bfa_ata['postcount'] % 2) ? 'odd-post' : 'even-post' ); ?> <?php /* This is the actual Wordpress LOOP. The output can be edited at Atahualpa Theme Options -> Style & edit the Center column */ bfa_center_content($bfa_ata['content_inside_loop']); ?> <?php /* END of the LOOP */ endwhile; ?> <?php /* This outputs the next/previous post or page navigation and the comment template. This can be edited at Atahualpa Theme Options -> Style & edit the Center column */ bfa_center_content($bfa_ata['content_below_loop']); ?> <?php /* END of: If there are any posts */ else : /* If there are no posts: */ ?> <?php /* This outputs the "Not Found" content, if neither posts, pages nor attachments are available for the requested page. This can be edited at Atahualpa Theme Options -> Style & edit the Center column */ bfa_center_content($bfa_ata['content_not_found']); ?> <?php endif; /* END of: If there are no posts */ ?> <?php bfa_center_content($bfa_ata['center_content_bottom']); ?> <?php get_footer(); ?> The word 'headline' for axample, is nowhere to be found. So my question is; can the above mentioned code be implemented in the atahualpa index.php? Tnx, Sakshin. |
I'm looking for similar instructions as above (ver 344). Wanting a splash page with its own layout.
|
All times are GMT -6. The time now is 06:09 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.