-
AuthorPosts
-
April 2, 2014 at 8:48 am #29052
Hello,
I’m using Renew Child Time to build a Portfolio section. I wonder if it is possible somehow to insert excerpt directly in the thumbnail I usually select to access the portfolio item page.
I edited content-portfolio.php a bit to remove unwanted info (see SARA E GABRIELE from screenshot), because I’d love to add text excerpt instead.
Pls, check screenshot here: http://prntscr.com/36cfneAny suggestion?
Config:
WP 3.8.1
X: 1.8.1 (plugins updated as required)
Child Theme Stack: Renew
PHP: 5.5.10Thank you guys as usual.
April 3, 2014 at 10:27 am #29523Hi Stefano,
This is possible, but it’s pretty much custom theme development, and outside the scope of what we can do in support. However, I can definitely help get you pointed in the right direction!
You’re working in the right template already, so that’s a good start (content-portfolio.php)
This template is loaded within the context of a “Loop” that means we can use the standard WordPress template functions.
Try placing this code:
<?php the_excerpt(); ?>
This will output the excerpt for you. At this point you just need to style it.
Quick note: If you’re going to be making code changes, I’d advise that you setup a child theme. You can find our collection here: http://theme.co/x/member/child-themes/ Or you can create your own with this information: http://codex.wordpress.org/Child_Themes A child theme allows you to make code changes that won’t be overwritten when an X update is released.
April 3, 2014 at 4:04 pm #29647Thank you, I’ve been trying around your code with no success 🙁
If you don’t mind, I’d like to add a new screenshot with desired effect: it could be I have to modify some other .php file but can’t trace which one.Screenshot: http://prntscr.com/36qovc
Thanks for helping this out,
S.April 4, 2014 at 10:20 am #29893Hi Stefano,
This is quite an advanced customization, and is beyond the scope of the support we can provide here. You want to edit the content-portfolio.php template file of the stack you’re working in. The excerpt function is what you need to output your text, but beyond that, you’ll need to workout the HTML and CSS to do this.
This has been requested a few times before, so it’s a feature that we’ve written down for consideration – this way it might be part of X in a future release.
April 4, 2014 at 5:29 pm #30025Great, hope to see this option sooner or later.
Thanks for reply,
S.April 6, 2014 at 6:19 am #30289Thanks for your understanding!
-
AuthorPosts