Unstoppable Domains

Wordpress Question

Spaceship Spaceship
Watch

thekooliest

Established Member
Impact
3
Ok,
I am setting up a WordPress site.
And I have a static home page, and a blog.
The blog has a sidebar set up, but I don't want it on the home page.
I know how to remove a sidebar, but my question is how to edit just a certain page. For example, if I could just edit what the home page's code was, and leave the blog the same that would be great.
Please ask if you don't understand x)
-Sam
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Sam what is the url?
 
0
•••
For now it is geckoinformation.info/wordpress

I'm still editing as we speak, so I apologize if it appears broken at some point.
 
0
•••
Is your main site seperate from the blog? Or is it somehow bridged and connected to each other? I'm kind of confused of your situation you gave.
 
0
•••
My home page is setup with WordPress as a static page, set as the main home page.
I want to be able to edit the home page separately from the blog. For example, the blog is a two-column, I want the home page to be one column.
Hope that is clearer.
-Sam
 
0
•••
There might be some plugin out there that could help, but I'd just use a conditional tag directly in your theme code.

Assuming you use <?php get_sidebar(); ?> to call the sidebar, try this code:

PHP:
<?php if (!is_front_page()) { get_sidebar(); } ?>

This code basically says that the sidebar will be displayed on every page except the homepage.
 
0
•••
Nevermind guys. I got it, thanks for trying to help.
 
0
•••
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back