Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #898108
    eganlohman
    Participant

    Hi Staff,

    So when I turn on Index Featured Post the featured image is shown in full width on the category index page. That’s great, but I also want the excerpt text to show up on top of that image. Right now only the category, date and post title show up above the View Post button.

    What function do I need to edit to get my post excerpt added on top of the featured image? I’m using the ethos stack.

    Cheers,

    Egan

    #898481
    Zeshan
    Member

    Hi Egan,

    Thanks for writing in!

    Due to the unique layout of featured posts, it doesn’t show the post excerpt. It could be possible to add the excerpt and style it with custom development, but this would be outside the scope of support we can provide. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities.

    Thanks for understanding. Take care!

    #898618
    eganlohman
    Participant

    Hi Staff,

    Yep, totally understand. I expected I would have to do the development myself, but can you point me to the .php file that actually renders the featured post segment on the index page?

    Is it in:

    public_html/wp-content/themes/x/framework/views/ethos
    public_html/wp-content/themes/x/framework/views/global

    And what’s the file name? I’ve poked through most of the files in those folders but can’t seem to find it…

    And I know to copy the file to my x-child folder before editing… 🙂

    Thanks,

    Egan

    #899483
    Jade
    Moderator

    Hi Egan,

    Please check the file _index-featured.php in /wp-content/themes/x/framework/views/ethos

    #1027670
    Catherine R
    Participant

    hi Egan, did you figure this out? Any advice for someone who is looking to do the same? thanks!

    #1028132
    Lely
    Moderator

    Hi Catherine,

    Please check ethos.php on this folder wp-content/themes/x/framework/functions.
    Look for Featured Index Content function. You may copy the entire function that handles the index featured post layout on your child themes functions.php file. Feel free to update the function.
    You may call the excerpt function like this:
    <span><?php the_excerpt(); ?></span>

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-898108 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>