ThemeShaper Forums » Thematic

[closed]

No images in archive

(15 posts)
  • Started 11 years ago by profundis
  • Latest reply from flick
  • This topic is resolved
  1. profundis
    Member

    Hi!

    I want to see my attached images when I'm browsing my archives. I can only view my pictures on the startpage and not in my categories. Using Thematic ver 0.9. Where can I fix this problem? I've looked around in the php files but can't find anything.

    /M

    Posted 11 years ago #
  2. Hey,

    copy archive.php and tag.php into your child theme's directory, open both files in your favorite editor and replace the_excerpt with the_content .. that's it.

    I will add an option to switch between the_excerpt and the_content for the next release.

    Cheers,

    Chris

    Posted 11 years ago #
  3. SK
    Member

    Hi Chris,

    I tried the fix that you detailed above. It did not work for me. What am I missing?

    thanks,
    SK

    Posted 11 years ago #
  4. SK
    Member

    Update: The fix detailed above does work on my Monthly archives, but does not work on Category archives. What else needs to change so that full posts/images appear in the Category archives?

    Thanks!
    Sheel

    Posted 11 years ago #
  5. SK
    Member

    Aha!

    Here is the answer.. my brain is slow today:

    Copying the category.php into the child theme's directory and replacing the_excerpt with the_content

    SK

    Posted 11 years ago #
  6. Is this solution still valid in Thematic 0.9.5.1? I can't find the_excerpt anywhere in the mentioned .php files.

    Posted 10 years ago #
  7. Hi,

    no .. this is no longer needed .. use the following code in your child theme's functions.php:

    function childtheme_content($content) {
    	if (is_category()) {
    		$content= 'full';}
    	return $content;
    }
    add_filter('thematic_content', 'childtheme_content');

    Chris

    Posted 10 years ago #
  8. worked brilliantly, thank you!

    Posted 10 years ago #
  9. blogtwist
    Member

    Hi Chris,

    that new code didn't work for me somehow :-(
    Still no pictures in the categories...
    This is the my functions.php :

    <?php

    //
    // Custom Child Theme Functions
    //

    // I've included a "commented out" sample function below that'll add a home link to your menu
    // More ideas can be found on "A Guide To Customizing The Thematic Theme Framework"
    // http://themeshaper.com/thematic-for-wordpress/guide-customizing-thematic-theme-framework/

    // Adds a home link to your menu
    // http://codex.wordpress.org/Template_Tags/wp_page_menu
    //function childtheme_menu_args($args) {
    // $args = array(
    // 'show_home' => 'Home',
    // 'sort_column' => 'menu_order',
    // 'menu_class' => 'menu',
    // 'echo' => true
    // );
    // return $args;
    //}
    //add_filter('wp_page_menu_args','childtheme_menu_args');

    ?>

    thanks for your help
    greetings from berlin
    Jens

    Posted 10 years ago #
  10. Jens, You add the below to the main functions.php file if you are not using a child theme. That should fix your issue.

    function childtheme_content($content) {
    if (is_category()) {
    $content= 'full';}
    return $content;
    }
    add_filter('thematic_content', 'childtheme_content');

    Posted 10 years ago #
  11. The code above worked beautifully for categories. I don't use a childtheme, so I pasted the code in my main functions.php file. That being said, it didn't work for archives. How can I get images to come up for both?

    Any thoughts?

    Thanks!

    Posted 10 years ago #
  12. HI! I would like to show images in my category search as well, so I tryes do copy the code in the (functions.php), but it's not working, what's the 'main functions.php file' ?

    I use thematc without a child theme. Do I have to make changes elswhere than functions.php ?

    My functions.php looks now like this:

    <?php

    function childtheme_content($content) {
    if (is_category()) {
    $content= 'full';}
    return $content;
    }
    add_filter('thematic_content', 'childtheme_content');

    ?>

    function childtheme_content($content) {
    if (is_category()) {
    $content= 'full';}
    return $content;
    }
    add_filter('thematic_content', 'childtheme_content');

    //
    // Custom Child Theme Functions
    //

    // I've included a "commented out" sample function below that'll add a home link to your menu
    // More ideas can be found on "A Guide To Customizing The Thematic Theme Framework"
    // http://themeshaper.com/thematic-for-wordpress/guide-customizing-thematic-theme-framework/

    // Adds a home link to your menu
    // http://codex.wordpress.org/Template_Tags/wp_page_menu
    //function childtheme_menu_args($args) {
    // $args = array(
    // 'show_home' => 'Home',
    // 'sort_column' => 'menu_order',
    // 'menu_class' => 'menu',
    // 'echo' => true
    // );
    // return $args;
    //}
    //add_filter('wp_page_menu_args','childtheme_menu_args');

    Posted 10 years ago #
  13. @simsim: The developers recommend that Thematic is used with a child theme - the idea is that even if you upgrade Thematic, your child theme will (usually) not be affected. :) Therefore the functions.php pertains to the one in the child theme folder, rather than the /thematic folder.

    I think it's a really great concept. You just upload /thematic as usual, but don't activate it. Then create a folder under /themes/ called 'simsim' for instance, and your new functions.php, style.css and whatnots all go under /simsim.

    p/s: /thematic comes with a sample child theme folder with a sample style.css to get you started.

    Posted 10 years ago #
  14. Thank a lot for the quick respnose, I will try!

    Posted 10 years ago #
  15. @simsim: Don't forget your <? and ?> at the start and end of the child theme functions.php.

    So something like:

    <?
    Lots of code here
    ?>

    Make sure there are no blank lines after the last ?>

    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.