• Resolved photolord

    (@photolord)


    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 >>> https://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.

Viewing 10 replies - 1 through 10 (of 10 total)
  • 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

    Thread Starter photolord

    (@photolord)

    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.

    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.

    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

    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 ??

    where can we dl that theme for www.ads-software.com
    simply love the simplicity yet impactful!

    @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(); ?>">

    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.

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

    Thanks!

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Depo Masthead’ is closed to new replies.