Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15095

    Hi,

    Enjoying the theme. Good work.

    Having some trouble with my drop caps appearing in the sidebars (easy to hide by turning off the excerpts) and the archive pages.

    i.e. if you look at blog category and you go to the page where all of the blogs are in that category, the dropcap is just missing making it look like I’ve missed the first letter of each post.

    Cheers,

    Tim

    #86191

    Hey Tim,

    It looks like the wordpress function the_excerpt actually strips out html tags (like the shortcode) so you’ll need to create a new function if you want to include them in excerpts.

    This looks like a pretty straightforward guide on adding support for it: http://aaronrussell.co.uk/legacy/improving-wordpress-the_excerpt/

    When it has you modify what tags to show in the new function you can include span as well:

    $text = strip_tags($text, '<span>');

    Alternatively, you can use the <!–more–> tag in your posts to signify where the post should be cut off and then change the archive page to spit out the content before the more tag only. In that case, you would open up includes>loop-archive.php in your theme files and look for:

    <?php

    echo avia_inc_display_featured_within_entry('archive');
    the_excerpt();
    ?>

    Change the_excerpt to the_content like this:

    <?php

    echo avia_inc_display_featured_within_entry('archive');
    the_content();
    ?>

    Reference: http://codex.wordpress.org/Function_Reference/the_excerpt#the_excerpt.28.29_vs._the_content.28.29

    Regards,

    Devin

    #86192

    Thank you Devin, that did the trick. I was a little worried because the function you’re meant to replace didn’t appear in that functions file (must be the aviva framework) but adding the new function outlined in that article, putting in the span exception, and telling it to use the new one worked.

    I also figured out that I could probably find a 3rd party plug-in to do it too. “Advanced Excerpts” looks pretty promising.

    Cheers,

    Tim

    #86193

    Hey,

    Glad Devin could help you. And by the way, it is Avia Framework. Thanks for using the theme. :)

    Regards,

    Ismael

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

The topic ‘Blog dropcaps gone on archive pages’ is closed to new replies.