Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

[SOLVED] Removing sidebar & title on static page?


  #1  
Old Oct 4, 2012, 11:15 AM
EhsanMomeni
 
8 posts · Oct 2012
Exclamation [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
  #2  
Old Oct 4, 2012, 02:10 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Oct 4, 2012, 02:35 PM
EhsanMomeni
 
8 posts · Oct 2012
Hi,

In the image.php (maintemplat-image) I deleted the code that had to do with the Title and Date

PHP Code:
<h1><?php the_title(); ?></h1>
            
         <p>
        <?php the_time'j M Y' ); ?> | 
        <a href="<?php bfa_parent_permalink(); ?>"><?php bfa_parent_title(); ?></a> | 
        <?php bfa_image_size(); ?>
</p>
so on all my other pages "Bilder", "Media", "Movie", "Om Mig", "Gästbok" and "The Shop", the page title and date is gone, as well as the sidebar - just as I want it to be.

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?
  #4  
Old Oct 4, 2012, 06:42 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Oct 4, 2012, 11:38 PM
EhsanMomeni
 
8 posts · Oct 2012
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:
<div id="widgetarea-one" class="col4">
        <?php dynamic_sidebar'Widget Area ONE' ); ?>
    </div>
Then I went to the page I created as my landing page (home) and selected the virtual template "blanc".

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.

Last edited by EhsanMomeni; Oct 5, 2012 at 05:20 AM.
  #6  
Old Oct 5, 2012, 05:35 AM
EhsanMomeni
 
8 posts · Oct 2012
This is how my blanc.php looks - but it still doesn't work

PHP Code:
<?php get_header(); ?>

<div id="main" class="row">
    
    <div id="content" class="col12">
        
        <div id="post-3630" class="post-3630 page type-page status-publish hentry cf">
            
            <?php edit_post_link__'Edit''montezuma' ) ); ?>

        </div>
                    
    </div>
        
</div>

<?php get_footer(); ?>

Bookmarks

Tags
sidebar, static page, title

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Static Page Title brodammer Post-Kicker, -Byline & -Footer 1 Sep 10, 2010 08:34 AM
static front page, page title on header, remove content but keep sidebar questions Magic Atahualpa 3 Wordpress theme 0 Jan 25, 2010 12:12 AM
[SOLVED] Removing Page title mpih Post-Kicker, -Byline & -Footer 1 Nov 26, 2009 09:57 AM
Removing page title from static front page in 3.41 or 3.42? whomadewho New Versions, & Updating 2 Jul 13, 2009 10:54 PM


All times are GMT -6. The time now is 09:35 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.