Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Extending the number of words in the except doesn’t allow the excepts to be more than 55 words. No matter what high number I put in the following line. All excerpts seem to be cut off at 55 max. […]

    Sorry, my mistake… The length of the excerpt is indeed set to 55 words. But it’s possible to change this if you copy the following code into the functions.php file of your child theme (for 80 words in the excerpt):

    function custom_excerpt_length( $length ) {
    	return 80;
    }
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );

    and then, of course, modify the appropriate line in the content.php file of your child theme:

    <?php thebox_excerpt(80); ?>

    (More info in the Codex here.)

    Also curious how to make the short post (before the “read more”) a little longer..

    Hi,

    If you wish to include more words into the short version of all your posts, then you could simply replace the following line:

    <?php thebox_excerpt(40); ?>

    by, for instance:

    <?php thebox_excerpt(60); ?>

    in the content.php file (that’s line No.48) of your child theme; all your posts would then be automatically truncated after sixty words, instead of forty, on your main page.

    But if you wish to have complete control over the extent of the excerpt of each of your posts, then I think you should replace that same line:

    <?php thebox_excerpt(40); ?>

    by the following one:

    <?php the_content(); ?>

    in your content.php file, and then place a <!--more--> tag at the appropriate point in the source code of each of your posts (but that’s quite a bit of extra work for your existing posts). There’s more info in the Codex here.

    (Sorry, I’m unable to suggest a solution to your first request…)

    Thread Starter Chrisngc

    (@chrisngc)

    Hi Fabio,

    Thank you very much for the quick fix! Everything works perfectly (besides the Accent Color of the icon in front of the list of tags, but that’s an easy fix anyway)!

    Best wishes to you,

    Christian

    Hi dhavex,

    I’m no expert and you’ll probably get better answers than what follows, but here is what I’ve done to get a favicon on the The Box theme.

    First, you should probably do this with a child theme, of course. With an FTP client, you should put your favicon.ico file at the root of your child theme, here:

    wp-content/themes/the-box-child/favicon.ico

    Next, you should make a copy of the original header.php file (the one that comes with the The Box bundle), and add the following line between the two <head> and <meta charset="<?php bloginfo( 'charset' ); ?>"> existing lines:

    <link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico" />

    By then, you should be done (just change the file name of your favicon file according to your settings).

    HTH… Best wishes,

    Christian

Viewing 4 replies - 1 through 4 (of 4 total)