Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #29052

    Stefano M
    Participant

    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/36cfne

    Any suggestion?

    Config:
    WP 3.8.1
    X: 1.8.1 (plugins updated as required)
    Child Theme Stack: Renew
    PHP: 5.5.10

    Thank you guys as usual.

    #29523

    Alexander
    Keymaster

    Hi 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.

    #29647

    Stefano M
    Participant

    Thank 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.

    #29893

    Alexander
    Keymaster

    Hi 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.

    #30025

    Stefano M
    Participant

    Great, hope to see this option sooner or later.
    Thanks for reply,
    S.

    #30289

    Rubin
    Keymaster

    Thanks for your understanding!