Tagged: x
-
AuthorPosts
-
April 25, 2016 at 12:40 am #898108
eganlohmanParticipantHi 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
April 25, 2016 at 6:37 am #898481
ZeshanMemberHi 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!
April 25, 2016 at 8:55 am #898618
eganlohmanParticipantHi 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/globalAnd 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
April 25, 2016 at 7:04 pm #899483
JadeModeratorHi Egan,
Please check the file _index-featured.php in /wp-content/themes/x/framework/views/ethos
June 6, 2016 at 4:23 am #1027670
Catherine RParticipanthi Egan, did you figure this out? Any advice for someone who is looking to do the same? thanks!
June 6, 2016 at 10:07 am #1028132
LelyModeratorHi 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.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-898108 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
