Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1197862
    blueprint
    Participant

    Hi support team,

    I’ve tried to follow the instructions of 2 other threads on this subject, but it did not work.
    I would like add an image caption under my featured images in single posts to credit the author of image.

    It should look like this (see screenshot).

    * Maybe it will be necessary to move the post text a little bit further down. If you could also provide a code for that?

    Thank you!

    #1197866
    blueprint
    Participant
    This reply has been marked as private.
    #1198180
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in!

    To resolve this issue adding the caption in your feature image in single blog post, please check out this topic: https://community.theme.co/forums/topic/image-caption-below-featured-image/#post-1090494

    You should have something like this: http://prntscr.com/cof0z0

    Hope this helps.

    #1198348
    blueprint
    Participant

    Thank you, but as I already said I followed the insturctions there already and it did not work. I don’t know why.
    Partly because I did not know what was meant by that:

    “You will have to manually add the caption for the image and we could add a custom CSS to style it.

    You can do it by something like this:

    <p class=”img”>

    <span class=”img-caption”>I am a caption</span>
    </p> “

    Who is “we” in “we could add a custom CSS to style it” mean, ad where would it be added? And does “manually add the caption for the image” mean adding it in the WP Mediacenter?

    Do I use the code for customizer given by the support:

    p.img .img-caption {
        display: block;
        text-align: center;
        color: #ccc;
        font-style: italic;
    }
    
    p.img img {
        width: 100%;
    }

    or the one suggested by the member:

    .img-caption {
    	color: #ffffff !important;
    	background-color: transparent !important;
    	padding: 0 0 0 20px;
    	margin: 0 0 0 20px;
    	border-bottom: dotted;
    	}

    or both? I can’t tell because I don’t see anything changing in the customizer…

    I would be greatful for detailed instruction from the first step.
    Thank you!

    #1198352
    blueprint
    Participant

    I tried it again and now it worked. There was a Syntax Error I did not see.

    Thank you!!

    #1198363
    blueprint
    Participant

    I tried to put a link in the image caption, but the result was that all the post text content was affected.
    I added Selected by freepik in the caption text in the WP Mediacenter.

    Can you tell me how to add links in the caption the right way.

    Thanx!!

    #1198384
    Christopher
    Moderator

    Hi there,

    HTML tags are not allowed in caption field. Regretfully this isn’t a feature offered by X. It could be possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities. Thanks for understanding. Take care!

    #1198612
    blueprint
    Participant

    I understand. Thank you.

    #1198948
    Rue Nel
    Moderator

    You’re welcome!
    If you need anything else we can help you with, don’t hesitate to open another thread.

  • <script> jQuery(function($){ $("#no-reply-1197862 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>