NameSilo

Wordpress Question

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Sam what is the url?
 
0
Close
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
Close
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
Close
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
Close
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
Close
Nevermind guys. I got it, thanks for trying to help.
 
0
Close
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back