[Resolved] Space between post title and featured-image caption

This topic contains 8 replies, has 2 voices, and was last updated by  Andrew Misplon 3 months, 2 weeks ago.

  • Author
    Posts
  • #8687

    Birgit
    Participant

    Dear Support,

    I really like your Polestar theme and have managed to add and tweak all the features that I needed, but I am stuck with two problems that you may be able to help with.

    One problem is captions for featured images. I am aware that they are not currently possible using the theme options, but I have managed to display them using a plugin (FSM Custom Featured Image Caption) and also, as an alternative, by fiddling with the content.php file. However, as space between the caption and the post title is already tight, there is a huge problem with longer captions, as they overlay/underlay the post title. Is there a way to give the post title more padding towards the top, so that the caption stays readable?

    Unfortunately, my site is not yet live (local installation), so I can only send you a screenshot, if necessary.

    I will create a new topic for the second issue.

    Your help is much appreciated.

    Kind regards,

    Birgit

    #8695

    Andrew Misplon
    Keymaster

    Hi Birgit

    Thanks for your support 🙂

    For little design tweaks like this, it’s easiest if we can inspect the page. The changes we’ll send for a problem like this will be done live in the web developer tool. If we do it from a screenshot, in most cases, we’d need to recreate the setup and then open the developer tool and then write the CSS rule required. So, if you can wait until the site is live and then send us the link, that would be a big time saver. Let me know your thoughts 🙂

    Have you been using a child theme for any code customisations?

    #8702

    Birgit
    Participant

    Hi Andrew,

    thanks for getting back to me quickly.

    I will try to get the site online as soon as possible, so that you can have a look at the captions. I will send you the link when I am ready.

    Kind regards,

    Birgit

    P.S.: I dutifully created a child theme this very morning …

    #8703

    Andrew Misplon
    Keymaster

    Awesome, chat further then.

    Keep in mind that activating a child theme will change the theme slug so your menu assignments will reset, you just have to reassign your menus to their locations.

    Polestar uses a minified CSS file so it’s really easy to add both the min version and the un-min version from a child theme. Check to see that your child enqueue just has the following: https://github.com/purothemes/polestar-child/blob/master/functions.php.

    #8724

    Birgit
    Participant

    Hi Andrew,

    the site is now live. The problem mentioned with the captions appears, for example, in the following posts:

    http://www.birgitconstant.de/sprachenvielfalt/
    http://www.birgitconstant.de/domesday/

    Kind regards,

    Birgit

    #8726

    Andrew Misplon
    Keymaster

    Thanks. The featured image container is sized on the fly using JavaScript. The caption is being placed inside that container that is sized precisely to the size of the image. Nothing else is expected to be in the container except for the image which is why this is happening.

    Try adding to Additional CSS in the Customizer or a Custom CSS plugin:

    #primary .entry-thumbnail {
        margin-bottom: 75px;
    }

    Edit the value as required.

    #8727

    Andrew Misplon
    Keymaster

    In your child theme style.css file, this line should be removed:

    @import url("../polestar/style.css");

    Right now you’re loading both the parent minified and non-minified stylesheet.

    #8729

    Birgit
    Participant

    Hi Andrew,

    adding the CSS did the trick. Super! Thank you.

    I have removed the line in the css. Not quite sure where that came from.

    Thanks again!

    Birgit

    #8730

    Andrew Misplon
    Keymaster

    Glad that helped 🙂

    (The import line in the child style.css file is the original method of building a child theme.)

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

You must be logged in to reply to this topic.

Scroll to top