[SOLVED] Removing sidebar & title on static page?
Hi,
I'm losing my hair overhere! On my blog/website http://www.momeni.se I have static page, but I do not want the title and sidebar to appear. On all the othere pages, I just changed the Virtual Template to "Image" and the sidebar was gone, but I can't do it on my landing page (the static page). Please help me - I'm going crazy :confused: |
you will need to be a little more detailed as to what you did
what template(s) did you change? what is the change you made? have you read about the Wordpress Template Hierarchy? (there is a link on the 'About Main Templates page) |
Hi,
In the image.php (maintemplat-image) I deleted the code that had to do with the Title and Date PHP Code:
All the above named pages have the edited version of the virtual template "image" - and it works perfect. But my landing page (i.e. static page, named "Start") has the same virtual template as the other pages (image) - but still it shows title of the page and the sidebar. What I want is a blank static page, so that I can have a full sized slider. Is that possible? |
do you understand the Wordpress Template hierarchy? You should read the codex about it. there is a link to in in the theme options, it might give you a clue to why this is happening.
After you read it if you have some questions let me know and I'll try to guide you to the answer. |
I read it, and think I get the idea of wp template hierarchy.
I created a custom main template based on the index.php, and called it blanc.php where I deleted the part about sidebar. PHP Code:
When I go to my page, the landing page still shows the sidebars, which is strange, because then I removed the same code from index.php, it removed all sidbars, both on the landing page, and on my blogpost page. I really don't know how to remove the title and sidebars from just the landing page. |
This is how my blanc.php looks - but it still doesn't work :confused:
PHP Code:
|
You need to call the template page-xxxxx.php or you could use front-page.php. Understanding the WordPress template hierarchy is crucial
|
Oh, thank you! I just created a template called it front-page.php - and woops it work perfectly! Thank you so much for you help and advice. :)
I'm gonna read the template hierarchy once a again and try too understand it. I'm guessing that it's going too be useful in the future :) |
All times are GMT -6. The time now is 02:51 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.