1. [...] as a link 2. ThemeHybridTemplates

  1. Patrick,

    1. Is there a way to make the [...] (more) a clickable link? It's not always evident to readers that the headline, not this, is the clickable item.

    Along the same lines, when I go to a Category page, the items are a set length and are concatenated with [...]. How do I display the entire text if I want to?

    2. Can I use Justin's ThemeHybrid templates with Malleable?

    TIA.

  2. 1. Its always best to write an actual excerpt, but I know thats tedious. So, to change the ellipses to a "Read More" link, use this in functions.php:

    add_filter('the_excerpt', 'my_excerpts');
    function my_excerpts($content) {
    	global $post;
    	$more = '<a class="more-link" href="' . get_permalink() . '" title="' . the_title_attribute('echo=0') . '">...read more</a>';
    	$content = str_replace('</p>', $more . '</p>', $content);
    	return $content;
    }

    For using the_content instead of the_excerpt you can use the following in functions.php:

    add_filter( 'the_excerpt', 'my_category_posts' );
    
    function my_category_posts( $content ) {
    	global $post;
    
    	if ( is_category() )
    		$content = apply_filters( 'the_content', get_post_field( 'post_content', $post->ID ) );
    
    	return $content;
    }

    And if you want to remove the thumbnails:

    add_filter( 'get_the_image', 'disable_category_thumb' );
    
    function disable_category_thumb( $img ) {
    	if ( is_category() )
    		$img = '';
    	return $img;
    }

    For Justin's full explanation, see this thread.

    2. Yes, the templates will work> However, the CSS doesn't account for the extra templates so none are guaranteed to look correct, though they probably will.

  3. Thanks, Patrick

    For the php code for functions.php; do I need to insert it at a specific point in the script, or just add it at the top.

    And... by doing this will I mess up anything in either Malleable (if there's an update) or the ThemeHybrid/Malleable connection.

    BTW - I have some thoughts on what would constitute a theme for education/schools. Big market and after much research have determined what is universal; but haven't seen out there.
    Would like to elaborate as soon as able if it's of interest as a theme you might wish to sell.

    THX

  4. You can put the code anywhere in the file, but for organization's sake just insert it at the bottom.

    Any Hybrid updates will continue to work. If there's ever an update to Malleable then your changes would be lost, so make note of any changes you make unless you don't care to upgrade.

    I'd love to hear your thoughts on an educational theme. Feel free to use my contact form: http://developdaly.com/contact/


Reply

You must log in to post.

Topic Info

  • 4 posts
  • Started 4 months ago by fverni
  • Latest reply from Patrick Daly

Tags

Tags:

No tags yet.