• Resolved ketanco

    (@ketanco)


    The captions I write below images display as ordinary text below the image as if it is part of the post text. It does not look like caption.

    For example,
    https://constructmagazine.com/2019/structural-engineering/mohrs-circle/

    Here, below the image where it says “Typical Mohr’s Circle”, is supposed to look like caption as I wrote it as a caption when I uploaded the image while preparing the post. But as you see it is displayed as if it is regular post text. How can I fix this so that it looks like a caption, such as displaying in different font and right under the image and centered below the image and not part of the other text? At least can you show me what file what line?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Try to write below CSS code-

    figcaption {
        text-align: center;
        font-style: italic;
        font-weight: 600;
    }

    It will help you to align your image caption text to center, italic and bold.

    Thread Starter ketanco

    (@ketanco)

    Thanks a lot and where do I find this code? What file, what line?

    You can write this CSS code to any CSS file that will load to your website.

    Also, you can write the above CSS code in style.css file whose path is as mentioned below –

    wp-content/themes/advanced-newspaper/style.css

    Thread Starter ketanco

    (@ketanco)

    thanks a lot it works

    Happy to help you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Captions not displaying properly’ is closed to new replies.