Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter bethanykate

    (@bethanykate)

    When I turn off “Automatically add the caption to the featured image” in the options, it fixes the sidebar but removes it from the featured image as well. Is there a way to automatically add the caption to the featured image but ONLY within the posts themselves?

    Plugin Author Christiaan Conover

    (@cconover)

    Thanks for the bug report! I know exactly why that’s happening, it’s a use case I hadn’t considered when I wrote the code that automatically inserts the caption information. I will add that to the list of things to be resolved in the next release.

    Thread Starter bethanykate

    (@bethanykate)

    I was able to add it to the posts only by adding the following code into single.php:

    <div class=”cc-featured-image-caption”>
    <?php cc_featured_image_caption(); ?>
    </div>

    But I cannot get it to format correctly. I’ve added formatting for cc-featured-image-caption, cc-featured-image-caption-text, and cc-featured-image-caption-source to style.css. It was formatting correctly before I unchecked the “Automatically add caption…” box.

    Any idea how I can fix that?

    Plugin Author Christiaan Conover

    (@cconover)

    Did 0.8.1 resolve your original issue with automatic caption insertion?

    Thread Starter bethanykate

    (@bethanykate)

    No, it’s still showing up in both the post and the sidebar if I have the box checked.

    Plugin Author Christiaan Conover

    (@cconover)

    Ok. I’ll have to look into this further and determine a more definite solution.

    Thread Starter bethanykate

    (@bethanykate)

    IT’S WORKING!!

    I added the following into the single.php and it is now pulling the formatting from the CSS. I’m not sure what changed from yesterday, but it’s working!
    <div class=”cc-featured-image-caption”>
    <?php cc_featured_image_caption(); ?>
    </div><!–/cc-featured-image-caption–>

    However, this is still only when I uncheck the box to auto-append. When the box is checked the caption still shows up on the thumbnail in the sidebar.

    Plugin Author Christiaan Conover

    (@cconover)

    Excellent! Though that’s strange, because if you have the <div> option turned on in plugin options it should be wrapping your code in that <div> by default.

    Thread Starter bethanykate

    (@bethanykate)

    I do, but it didn’t work automatically.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Caption showing where it shouldn't (in sidebar)’ is closed to new replies.