• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

News Pro: adding image captions

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › News Pro: adding image captions

This topic is: resolved

Tagged: add captions, captions, image captions, newspro

  • This topic has 7 replies, 4 voices, and was last updated 7 years, 3 months ago by Brad Dalton.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • November 24, 2013 at 4:43 pm #75406
    mat
    Member

    I've realised that one of the reasons the new News Pro theme looks so clean and lovely is because it doesn't appear to show any image captions. I need to include them, however, so I can credit people. How would I go about reinstating these, even if it's only on the single post pages? Thanks!

    November 25, 2013 at 12:47 am #75441
    nutsandbolts
    Member

    I just tested this out and you're right - they don't show up. Somehow I'm not sure that was intentional since there are CSS rules for captions in the stylesheet. I would recommend opening a ticket with StudioPress support since this appears to be some kind of bug in the theme. Please post back and let us know what they say!


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    November 25, 2013 at 12:53 am #75445
    nutsandbolts
    Member

    Scratch that - I got it to work, but only if I add the caption at the time I add the image. Like this:

    Then I see this in the post editor:

    And this on the front end:

    So basically you can't add the image, then click and try to add the caption. You have to do it before it's inserted into the post editor. Still weird and not the way it should work, but at least it's a workaround for now.


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    November 25, 2013 at 4:24 pm #75580
    mat
    Member

    Thank you Andrea, that's really helpful, and it gets me closer to what I want, but...there's always more!

    Looking at it further, I was using 'featured image' for each post, and captions don't appear for those (same in the demo), and not 'insert media' (where they do, with your proviso above).

    I used featured images because it meant that the featured post widgets worked correctly, with h2 headings alongside the right size images (albeit without captions). However, I then found that the featured images weren't then appearing at all in single posts: I managed to fix that with a code snippet ( http://wpsites.net/web-design/display-featured-image-before-or-after-entry-title-on-single-posts-pages/ ) - though I'm not sure if that was the thing to do...and again, no captions.

    My ideal is to be able to use featured images and captions with the widgets so the homepage looks right, and featured images and captions on the post pages. Am I barking up the wrong tree here? (I'm certainly confused!)

    Thanks.

    November 25, 2013 at 5:35 pm #75599
    nutsandbolts
    Member

    Here's a code snippet for showing a caption on featured images. Not sure if this will help or not but I thought it might be worth a try! http://www.trishasalas.com/display-the-caption-for-a-featured-image-2/


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    November 25, 2013 at 8:28 pm #75617
    Summer
    Member

    There's also a behavior quirk with Genesis that might work to your advantage, then.

    By default, Genesis will take the first post image and use it as the featured image, so you could use a post image with a caption, which would be in your single post, but that same image would also be your featured image (albeit adjusted for the size you specified for that space).

    Given that, plus the caption snippet Andrea provided, you might be able to get what you need, using a post image instead of the actual Feature Image meta box. Just be aware that if you ever want to use a featured image that's different from the post image, you have to do both.


    WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
    Slice of SciFi | Writers, After Dark

    November 26, 2013 at 5:44 pm #75772
    mat
    Member

    Thanks both for your advice. Sadly that code snippet didn't work at all for me: captions didn't appear on any featured images, and in addition it mucked around with my homepage: sidebar widgets started appearing in the 'home top' position.

    Summer, you're right about that first post image being taken as the featured image, and captions do then appear; but it's not treated in the same way as a featured image, unfortunately. It places the heading before the image in each widget, rather than displaying content alongside the image (home top) or below (Home Middle Left). It also doesn't respect the image sizes set for the 'Show featured image' dropdown, so it's not possible to display one full width, for example.

    Grrrr! What I want *seems* so simple in theory, but also so hard in practice!?

    June 5, 2016 at 9:58 am #186993
    Brad Dalton
    Participant

    Over 2 hours work in this for people who don't mind paying here's 2 ways to add captions to genesis featured posts widget images


    Tutorials for StudioPress Themes & WooCommerce.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘News Pro: adding image captions’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble