Viewing 7 replies - 1 through 7 (of 7 total)
  • I am not able to see the caption – what CSS are you applying right now?

    btw:
    it is not recommended to edit the default theme Twenty Thirteen directly; please create a child theme, or a custom CSS plugin for formatting adaptions.

    Hi Karin ??

    Have you tried adding this to your CSS yet?

    .wp-caption-text {
    	text-align: center;
    }

    I’m currently building a theme from the ground up and it works for me?

    Also, make sure you have a caption written/attached to your image when attaching images.

    — Whoops! Sorry Alchmyth! Didn’t see you before I posted.

    @emg
    no problem – as far as I understand, the question is also about the vertical alignment …

    Thread Starter KarinMA

    (@karinma)

    Hi!

    Thanks for answering! You are right I need to create a custum.css or a childtheme. Does custum.css always override style.css in the theme?

    The reason for why the caption is not seen is because I have put opacity on it. What I like to do is to put the caption in the middle of the photo/image. When hovering over the image I like the caption to appear.

    Here is the html: p class=”wp-caption-text”>Whale_pattern_shade</p>

    and the css so far :

    wp-caption .wp-caption-text, .entry-caption, .gallery-caption {
    color: #220E10;
    font-size: 18px;
    font-weight: 300;
    left: 50%;
    line-height: 2;
    margin: -50px auto 0 -100px;
    opacity: 0.1;
    padding: 10px;
    position: absolute;
    text-align: center;
    top: 58%;
    transition: opacity 0.5s ease-in 0s;
    width: 200px;
    }

    As you can see I tried to some possibilites without success. My goal is to create something like this: https://www.elinsvensson.com/

    If you see any solutions I would be very thankful.

    /Karin

    Has this been solved? I have the same problem, only that i use the Construct Theme.
    Please help!

    Thread Starter KarinMA

    (@karinma)

    This is not solved for me yet… still looking for a solution…

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Place caption in the center of all attached photos’ is closed to new replies.