Home Forums Theme Support Rumblings Text on portfolio page cuts off

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #5678

    I am using your Rumblings theme to create a portfolio page. The page displays correctly except for the line of text under the title for each picture. It grabs the text from the blurb and after a certain number of characters it cuts off. I would rather have a short caption that I control under the title.

    You can see what it looks like here – under mobile trailer and fence.



    Hi there,

    You need to edit the portfolio page that you’re using (two-columns-portfolio.php) and on line 70 replace this:

    <p><?php echo substr(get_the_excerpt(), 0, 45); ?></p>

    with this:

    <?php the_excerpt(); ?>

    Now, go to the theme’s folder > framework > inc > post-types and edit the file named “portfolio.php” and on line 30 replace this:

    'supports' => array('title', 'editor', 'thumbnail')

    with this:

    'supports' => array('title', 'editor', 'thumbnail', 'excerpt')

    Now, when you create an item you’ll see a box named “Excerpt” right under your editor where you can insert your desired text.


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.