ThemeShaper Forums » Thematic

[closed]

upgrade to Thematic and layout has changed

(10 posts)
  • Started 11 years ago by posword
  • Latest reply from posword
  • This topic is resolved
  1. Yesterday I upgraded Thematic 0.9.5.1 to 0.9.6.1. However, my layout has changed (http://www.peterwade.com/assets/). Can anyone give me a hint where to start looking?

    I suspect my programmer has altered a Thematic file somehow.

    I myself find it confusing when in my child theme I go to edit and the list of available files to edit include both child theme and Thematic. Is there a way to tell the difference?

    Thanks,
    Peter

    Posted 11 years ago #
  2. I have discovered that page.php had been changed in Thematic 0.9.5.1 so was overwritten when upgrading.

    I have now copied page.php into the child theme and renamed it page-home.php, as it should only control the display of the Home static page.

    However, I cannot discover how to get change the Home page to point to page-home.php and not page.php. I see nothing in the edit mode of the pages. Can someone explain how to do this, please?

    Peter

    Posted 11 years ago #
  3. If I recall correctly, you'll need to set page-home.php as your page template (usually bottom right of the page-edit screen)

    Posted 11 years ago #
  4. Flick, that's what I recall too, but its not showing up in the Template drop-down menu.

    I've since discovered that I need to add at the top of page-home.php this code:

    <?php
    /*
    Template Name: Home Page
    */
    ?>

    However, my problem remains. The codex also recommended that if the new template did not have any effect, then switch to the Default Theme and back to your theme. I did this and now the Home Page is not showing the sidebar.

    Posted 11 years ago #
  5. @posword: Sorry - not being of much help here - it sounds as though you're going through the right steps, including switching to another theme and switching back again, although I understand this actually resets the widgets (for some reason) so looking at your site - just the default widgets are showing at the moment.

    Is the page.php you're referring to in your first post the file that your developer edited, or is it a 'fresh' copy from the packaged Thematic zip file?

    p/s: And this Page Template menu isn't showing at all or not showing the template called 'Home Page'?
    http://wphacks.com/how-to-creating-a-custom-page-template/

    Posted 11 years ago #
  6. Hi posword,

    When you switched theme's to the default and then back to either thematic or your child theme, it had the side effect of resetting the widgets in the sidebars to thematic's default widget arrangement. This is normal behavior when switching themes. You'll find your missing widgets in the "inactive Widgets" section admin>appearance>widgets.

    Did you solved your static home page template issue?

    -Gene

    Posted 11 years ago #
  7. @em hr: Thanks, I found them and have reinstated them into the Primary Aside.

    @flick and @em hr: The Home Page template is showing in the drop-down menu but is not doing anything on the page. page-home.php is simply page.php with the code for a template name at the top of the file (Home Page), and the thematic_postheader(); commented out, so I do not display the theme ID etc. Getting rid of this is the reason for page-home.php.

    I also have a problem with the positioning of the Secondary Aside since updating to Thematic 0.9.6.1. It should display in a column to the right of the_content, emulating http://www.peterwade.com/ . See the test area at http://www.peterwade.com/assets/ . I actually have no idea how to reinstate the Secondary Aside -- I see its positioned in the child style.css (which did not change when I updated Thematic).

    Posted 11 years ago #
  8. Can anyone help me position the Secondary Aside? See above. Test area at http://peterwade.com/assets and it should look like http://www.peterwade.com/

    Sidebar.php in child theme reads:

    <?php thematic_abovemainasides(); ?>
    
    <?php if (is_sidebar_active('primary-aside')) { ?>
    	<div id="primary" class="aside main-aside">
    		<ul class="xoxo">
    	<?php dynamic_sidebar('primary-aside'); ?>
    		</ul>
    	</div><!-- #primary .aside -->
    <?php } ?>
    
    <?php thematic_betweenmainasides(); ?>
    
    <?php if (is_sidebar_active('secondary-aside')) { ?>
    	<div id="secondary" class="aside main-aside">
    		<ul class="xoxo">
    <?php dynamic_sidebar('secondary-aside') ?>
    		</ul>
    	</div><!-- #secondary .aside -->
    <?php } ?>
    
    <?php thematic_belowmainasides(); ?>

    The template Home Page reads:

    <?php
    /*
    Template Name: Home Page
    */
    ?>
    
    <?php get_header() ?>
    
    	<div id="container">
    		<div id="content">
    
    <?php get_sidebar('page-top') ?>
    
    <?php the_post() ?>
    	<div id="post-<?php the_ID(); ?>" class="<?php thematic_post_class() ?>">
    
    	<!--<?php //thematic_postheader(); ?>-->
    
    <div class="entry-content">
    <?php the_content() ?>
    
    <?php wp_link_pages("\t\t\t\t\t<div class='page-link'>".__('Pages: ', 'thematic'), "</div>\n", 'number'); ?>
    
    <?php edit_post_link(__('Edit', 'thematic'),'<span class="edit-link">','</span>') ?>
    
    	</div>
    	</div><!-- .post -->
    
    <?php if ( get_post_custom_values('comments') ) thematic_comments_template() // Add a key+value of "comments" to enable comments on this page ?>
    
    <?php get_sidebar('page-bottom') ?>
    
    		</div><!-- #content -->
    	</div><!-- #container -->
    
    <?php thematic_sidebar() ?>
    <?php get_footer() ?>

    I'm also trying to remove the site ID() and so have commented out thematic_postheader() but that seems not to work.

    My designer must be on vacation as he's not replying to emails, so I'm trying to sort this out myself.

    Thanks,
    Peter

    Posted 11 years ago #
  9. Peter,

    In all honesty, I believe the issue here is that your designer has chosen to create you a child theme by customizing the template structure instead of relying on customizing the functions.php. Customizing templates is a slippery slope. Editing the functions.php is more resilient to upgrades of the parent theme.

    I believe the upgrade to .9.6.1 and the code changes therein are in conflict with the way your templates have been designed for your child theme. Given the complexity of the situation, you probably should talk to your programmer/designer. If you get in a jam over this you can email me.
    Good Luck,
    Gene

    Posted 11 years ago #
  10. @rm ht: Thanks.

    @All: I've solved the site name and description problem by commenting out a line in header.php.

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.