• Resolved paranthropus

    (@paranthropus)


    I recently switch over to justwrite and I (along with my readers) love it.

    However, some don’t like the way the billboard can push content “below the fold”. So I was planning on adding the excerpt (or a subtitle from another plugin) into the billboard but can’t seem to figure out how.

    In other words, where would I stick the code like,
    <?php the_excerpt(); ?>
    <?php get_secondary_title($post_id, $prefix, $suffix); ?>
    Or something along those lines

    Any help would be appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author acosmin

    (@acosmin)

    you are talking about the slider? AC SEC: Slider?

    Thread Starter paranthropus

    (@paranthropus)

    No, just the “billboard” featured image at the top of each post.

    Ideally, it would look something like this; adding in the excerpt (or some other custom field) below the main title.

    I can already achieve this effect with plugins (hence how I made that screenshot) but these stick the “subtitle” everywhere the title appears. I’d like it just to appear on the posts themselves.

    Theme Author acosmin

    (@acosmin)

    You can open /post-templates/layouts/layout-cover.php and right bellow:

    the_title( '<h2 class="title">', '</h2>' );

    add:

    ?><header class="details clearfix" style="margin-bottom: 1em;">
    <span class="detail left"><em><?php the_excerpt(); ?></em></span></header><br /><?php

    You can then set the excerpt when you edit the post, as you normally do.

    Thread Starter paranthropus

    (@paranthropus)

    Thanks, that worked perfectly.

    It did add a weirdly formatted jetpack “like box” but turning off the feature in jetpack disabled that. Since I don’t really care about the like box I didn’t mind turning the whole thing off. It might just be something to consider if you’re ever dealing with this again.

    Theme Author acosmin

    (@acosmin)

    You can also try something like:

    if( '' != get_the_excerpt()) { ?><header class="details clearfix" style="margin-bottom: 1em;">
    <span class="detail left"><em><?php the_excerpt(); ?></em></span></header><br /><?php };

    In case you don’t have an excerpt set, it will not show an empty space…

    Don’t forget to leave a review 🙂 if you really like the theme.

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

The topic ‘Adding excerpt to billboard’ is closed to new replies.