WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Depo Masthead (11 posts)

  1. photolord
    Member
    Posted 5 years ago #

    I love the new design of the Depo Masthead at WordPress.com Truly amazing design by Derek Powazek. I tried using the theme on a self hosted blog of mine but doesn't show properly. It only shows the header and nothing else. I know that

    Mtdewvirus said, "The theme is using some functions that aren't available in WP 2.6.2 yet, but will be available in WP 2.7."

    on wordpress.com over here >>> http://en.forums.wordpress.com/topic/depo-masthead-theme-launch?replies=20

    I would love to use the theme on my current 2.6.2 version blogs. Any help would be awesome. What would I add, modify, or hide in the code?

    Thanks

    Best regards,

    Matt G.

  2. Salvatore
    Member
    Posted 5 years ago #

    Can't use neither. It says:

    Fatal error: Call to undefined function post_class() in XXX/wp-content/themes/Depo Masthead/home.php on line 33

  3. photolord
    Member
    Posted 5 years ago #

    Ok, Devorah Firestone gave me the fix. I am so thankful for the help. As stated, Depo Masthead is made for WordPress 2.7, so if you have a version before this, the theme will not work. You will need to change code in 4 files within the Depo Masthead theme. The files that need to be modified are as follows:

    Page Template (page.php)

    Single Post (single.php)

    home.php (home.php)

    Main Index Template (index.php)

    In these files you will find this code:

    <div <?php post_class() ?> id="post-<?php the_ID(); ?>">

    You need to change it to this code:

    <div <?php if (function_exists('post_class') ){
      	post_class(); }
    else {
    echo 'class="post"'; } ?> id="post-<?php the_ID(); ?>">

    The 4 files will need to have proper permissions to change the code within your WordPress admin design section. After making necessary changes to the files, make sure to change the permissions back.

    I am running WP 2.6.2 and it works on my website photolord fine with no problems. If you encounter more problems with what I mentioned here, I probably will not know how to fix them only because I'm not good with code at all. If it wasn't for the help from Devorah, I would still not be able to use the awesome theme from Derek.

    I hope this helps. If it has, let everyone know at this page.

  4. Dgold
    Member
    Posted 5 years ago #

    Nice job using the IF...THEN statement. That technique always works to protect your theme from breaking if you uninstall / deactivate a particular plugin.

    I recommend using that kind of IF FUNCTION EXISTS code every-time you put a new plugin in your theme.

  5. eshift
    Member
    Posted 5 years ago #

    Ok now I am getting this line when I try to view comments.

    Fatal error: Call to undefined function: comment_class() in /home/*****/public_html/wp-content/themes/masthead/comments.php on line 61

  6. bigray
    Member
    Posted 5 years ago #

    i have the same problem with comments.

    great theme, though. i would love to use it. does anyone know of a workaround for this?

    Thanks :-)

  7. alwaysLovely
    Member
    Posted 5 years ago #

    where can we dl that theme for wordpress.org
    simply love the simplicity yet impactful!

  8. alwaysLovely
    Member
    Posted 5 years ago #

    @bigray/eshift

    I modify the code of comment.php

    <div <?php comment_class() ?> id="post-<?php comment_ID(); ?>">

    Change to

    <div <?php if (function_exists('comment_class') ){
      	comment_class(); }
    else {
    echo 'class="comment"'; } ?> id="post-<?php comment_ID(); ?>">
  9. alwaysLovely
    Member
    Posted 5 years ago #

    Btw the way is there any way to modify the index page to display just 1 post?

    I wanted my static page to display one of the pages but the comment icon shifts to the 2nd column.

  10. weijie90
    Member
    Posted 5 years ago #

    What's the licensing for this theme? May I modify it for my purposes?

    Thanks!

  11. thegiancarlo
    Member
    Posted 5 years ago #

    anyone know how to make it display 6 blogs instead of the default 3?

Topic Closed

This topic has been closed to new replies.

About this Topic