WordPress.org

Ready to get started?Download WordPress

Forums

HOWTO: Migrating Themes to 2.7 (37 posts)

  1. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    Theme authors:

    This page on the Codex is worth reading and checking on a regular basis. WordPress 2.7 will be released towards the end of November, so it would be worth your time to get your theme up to par now. The modifications are not difficult, and may simplify some of the more complex themes out there.

    http://codex.wordpress.org/Migrating_Plugins_and_Themes_to_2.7

  2. ameo02
    Member
    Posted 5 years ago #

    so does that mean that all old themes won't work anymore?

  3. Jeremy Clark
    Moderator
    Posted 5 years ago #

    No old themes will still work, just the new comment threading functionality won't be available.

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    Yes, and there's also other enhancements to make theme authors lives simpler. The post_class() function, for example, is very cool.

  5. RoseCitySister
    Member
    Posted 5 years ago #

    The comment threading is awesome - I just upgraded Coronado but am testing it before release.

    One thing I don't like is that the ability to change the word "Says:" in the comments.php file is gone. It's now in the wp-includes folder, in comment-template.php.

  6. kretzschmar
    Member
    Posted 5 years ago #

    You can write your own callback to completely style the comments yourself OR use the new css-class to hide the text (it's only added in the recent trunk and should be added to the first RC of WP2.7).

  7. Vladimir Prelovac
    Member
    Posted 5 years ago #

    Finished today upgrading my themes mostly without problems. I added nested comments, paging and sticky posts. The new comment paging functionality is cool but it's a shame it wasn't added on a higher level (page numbers etc).

    I also experimented with child themes. Beware that bloginfo('template_directory') will return parent theme directory, while bloginfo('stylesheet_directory') will return child theme directory.

  8. danceofvictory
    Member
    Posted 5 years ago #

    I understand I have an old theme, Elegance. How can Ii upgrade to a newer theme, with more options? Can I then move posts around to different pages, creating a more organized blog?

    Sandy

  9. Jo5329
    Member
    Posted 5 years ago #

    Otto, Thank you for posting this link.

    REF: Updating the comments .php

    I have printed out my current comment file and am trying to figure out how to upgrade it by the instructions. To be honest, I'm not getting it.

    Do you know anyone that walks it through a bit more clear?

    Thanks!

  10. nikonbob
    Member
    Posted 5 years ago #

    I want to update to 2.7 using Yahoo.com If you use their WordPress section of their manager all you get is the same old 2.6. I really don't want to take the long way of downloading to my computer and then FTP'g everything. It seems to cause problems with the wp-conf setup. Or is Yahoo just a little behind the curve?

    Thanks

    Bob

  11. ionfish
    Member
    Posted 5 years ago #

    It's possible to subclass Walker_Comment if you want different comments markup. I mentioned this on wp-hackers in November.

    Another thing people should be doing is using CSRF-hardened login and logout links, e.g. in comments templates. See the Trac ticket for details and this commit for an example implementation.

  12. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    ionfish: True, but using a callback function is simpler than subclassing the Walker, for minor changes like that. Of course, the option is there if you really want to change things radically.

  13. stalker1
    Member
    Posted 5 years ago #

    I used to have numbered comments on my theme (Kotak) but when I upgraded to WP 2.7 and altered my comments.php to adapt to the new features like paging and threaded comments, I lost my numbered comments and I can't get it back. Could somebody please help me with this problem? Thanks!

  14. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    Use "OL" instead of "UL" around your call to wp_list_comments.

  15. stalker1
    Member
    Posted 5 years ago #

    The code is already 'OL'. Is there anything else I need to add or change? The php file looks like this:

    <ol class="commentlist">
    	<?php wp_list_comments(); ?>
    	</ol>
    	<div class="navigation">
    		<div class="alignleft"><?php previous_comments_link() ?></div>
    		<div class="alignright"><?php next_comments_link() ?></div>

    Thanks for the reply.

  16. hollib
    Member
    Posted 5 years ago #

    My problem is actually different from comment issues. I upgraded to 2.7 and any themes that I add from this point on do not render properly.

    Here are two screenshots for examples - Carrington Blog (http://thesevensblog.com/carrington-cap.jpg) and Azpismis (http://thesevensblog.com/az-cap.jpg).

    I have added the folders to the directory as I have normally done, but after adding ten different themes, it was frustrating to discover that NONE of them rendered properly on my website.

    Browsers tested in: IE, Chrome, Flock, Firefox.

    Thanks,
    Holli B

    PS -- Looks like I may have an issue with my site because images are not rendering!

  17. Jason Kemp
    Member
    Posted 5 years ago #

    @ hollib I had a look at your themes

    http://www.thesevensblog.com/wp-content/themes/ lists them all

    mostly showing very old dates so it is not obvious which the new themes are

    http://www.thesevensblog.com/wp-content/themes/azpismis/ is where your current theme is azpismis/ shows as 16-Dec-2008 11:23

    There are no other themes showing with 2008 dates so you may have loaded them in the wrong folder or perhaps you deleted them? So itdoesn't show the other 9 themes you mention.

    I'd say have a double check of your version 2.7 upgrade & make sure you have
    followed the instructions there.

    A quick look at http://www.thesevensblog.com/wp-includes/ shows lots of old dates on the files.

    You needed to delete your old wp-includes and wp-admin directories & upload the newe folder / new files.

    Looks like you haven't done this for /wp-includes/ and probably the wp-admin folder either.

    My guess is that you have only added new files and not deleted those two folders according to the standard upgrade instructions which means you are not running WP 2.7 with all the latest files.

    Consequently some of the files location calls may have changed and the templates won't load correctly because they are "looking" in the wrong place.

  18. mishas
    Member
    Posted 5 years ago #

    I have some problems with admin panel after migration to wp 2.7. In Manage Themes section, show Current Theme >none, Available >> none. but on public side my theme work ok.

    I solved this problem >> upload on server one more theme, after that action, in section Available old and new uploaded theme were there. I chose my default theme, and problem was solved.

  19. hollib
    Member
    Posted 5 years ago #

    @dialogcrm I had actually reinstalled, so all of the themes that you saw were the default ones that came with the WP install.

    I am on Dreamhost, so the install is done automatically. All files that were added were installed when I clicked the install button. Whatever files were included with the DH install were the ones that were installed.

    Are you stating that I should uninstall completely and do my own install (bypassing the DH install) because as I said, they install the old files.

    ETA:

    Uninstalled all files through DreamHost and did a manual install. Now, NO images are visible in the admin panel. Think I'm uninstalling and installing MT.

  20. Jason Kemp
    Member
    Posted 5 years ago #

    @ hollib - after looking now - it appears you do have a theme up and running. So the reinstall worked?

  21. tmaster
    Member
    Posted 5 years ago #

    I can not get my comment #s to count like they used to the reset on each page.

  22. safaris
    Member
    Posted 5 years ago #

    Thanks, Its like we have to update the comments.php other theme files are ok. I did that and my migration was successful. Thanks for the advice here.

  23. blgrey
    Member
    Posted 5 years ago #

    i have installed 2.7 and am using the ModernPaper 1.0 theme...my left sidebar has been completely wiped out...all recent posts, categories and archives (by month) are gone and only the two "pages" i have created show up in the left sidebar?

    in the l_sidebar.php file i see all the code referencing the 'recent', 'categories' and 'archives' but nothing shows up in FireFox in that column on the live blog?

  24. blgrey
    Member
    Posted 5 years ago #

    quick addendum to my post above...when i try to change themes, the other themes (e.g. wp classic) don't seem to pick up the "Recents", "Categories" or "Archives" either...is this a 2.7 bug?

  25. dismar
    Member
    Posted 5 years ago #

    Hey,

    It may sound stupid, but I'm using wordpress at the very first time and I need some help.

    I want to use wordpress for my website and I'm hosting it in Hostgator.
    I uploaded all the 2.7 files to my host. And I downloaded one theme.

    Can anyone tell me how to migrate the theme into wp step by step?

    Many thanks

  26. ThE.BeSS
    Member
    Posted 5 years ago #

    Why you dont make themes for all wordpress versions , like vbulletin or datalife engine there you dont have to migrate themes for all versions

  27. ticketyboobeach
    Member
    Posted 5 years ago #

    Hi guys
    I'm a complete novice trying to get chosen themes in the wordpress gallery downloaded into my wordpress host area so I can use them in my website - I understand they need to go into the wp-themes/content folder - where do I find that? Or does anyone know how to do this simply?!!! HELP! Thanks :)

  28. tjhinn
    Member
    Posted 5 years ago #

    Hi all,

    Is there a way for me to see if my current theme will translate well to WP 2.7? I want it such that if it doesnt translate well, I can simply switch back to the previous working version of WP?

    Cheers and thanks so much!

    -Nik

  29. Jidad
    Member
    Posted 5 years ago #

    Hi..all.

    I am new comer with wordpress. Could you help me, doing about wordpress?

  30. Gallant
    Member
    Posted 5 years ago #

    Now that 2.7 is out, are all of the plug-ins that you can download from WordPress compatible or are there some on there still for the people who haven't updated?

    I know you can get plug-ins from all over the internet, but I'm referring to just the ones on the WordPress site. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic