Forum Replies Created

Viewing 3 replies - 76 through 78 (of 78 total)
  • Thread Starter Lara Schenck

    (@notlaura)

    I think I narrowed this down to an issue with the post class. I did some echoing and saw that the post format selector (.format-image{}, etc.) appears as it should in post_class() but is not included in thematic_post_class(). I tried removing thematic_post_class() with childtheme_override_post_class() which seemed to work – echoing thematic_post_class() no longer returns anything. Here is the code:

    // remove thematic_post_class to include post format selector in post class
    function childtheme_override_post_class() {
         remove_action('thematic_post_class','thematic_access', 9);
    }
    add_action('init', 'childtheme_override_post_class');
    
    // echo post classes for format testing
    function wpfolio_post_formats() {
    
         global $post;
         $post_id = $post->ID;
    
         $format = get_post_format( $post_id );
    
              if ( has_post_format( 'gallery' )) {
                   echo '<h3>';
                   echo $format . '<hr />';
                   echo '<strong>thematic_post_class: </strong>';
                   echo thematic_post_class();
                   echo '<hr /> <strong>post_class: </strong>';
                   echo post_class();
                   echo '</h3>';
                   echo the_content();
              } else if ( has_post_format( 'image' )) { ...
    }
    
    add_action('thematic_post', 'wpfolio_post_formats');

    Then I replaced the conditional’s content with something like this to see if the styles would work:

    if ( has_post_format( 'video' )) {
         echo '<div id="<?php the_ID(); ?>" <?php post_class() ?>';
         echo the_content();
         echo '</div>';
    } else if { ...

    Nothing happens. I’m thinking thematic_post() may not be the right hook, but it did work with the code from my first post. Any help is greatly appreciated. Thanks!

    Looked at this for a bit and it seems like a conflict with Chrome. I can edit the Theme Options successfully in Firefox or Safari and they will show up in Chrome fine, but that ‘Invalid Value’ error comes up as soon as you try to edit any of the Theme Options in Chrome.

    Tried this with a child theme and parent WPFolio 1.7.11 with WP 3.1.

    @jimtron:
    Both .pagetitle rules you posted worked for me. Are you using the latest version of WPFolio? Download it from github here.

Viewing 3 replies - 76 through 78 (of 78 total)