Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End WordPress Native Gallery and Image Caption

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #177089
    stg1815
    Participant

    I am working on a portfolio which displays images in a row. I am using WordPress and its native gallery. Now I am stuck on editing the caption. Although I have edited the css and tried to go on the media.php, nothing changes. The caption floats on the right of the image like here:
    http://www.dropbox.com/s/b11nyqkzlnnf2xb/Screenshot%202014-07-31%2014.15.58.png

    I just would like to simply put the caption under the image.

    Could anyone please help me with this? Thanks in advance.

    #177108
    Paulie_D
    Member

    We’d need to see the HTML that is generated to offer solutions.

    #177491
    ann-g
    Participant

    Hi Paulie_D
    Here is the generated HTML from firebug:

    http://tinypic.com/r/qsti5y/8

    #177492
    Paulie_D
    Member

    We can’t tell anything from that image.

    Could you make a reduced case of a single wrapper + image etc. in Codepen.io?

    Alternatively, a link to the live site?

    #177496
    ann-g
    Participant

    Sorry about that Paulie_D
    Here is the link to the live site:
    http://www.laetitiaperles.ch/

    #177513
    Paulie_D
    Member

    Each of these ‘gallery-items’ and children seem to have what I assume are automatic classes applied…but there is no styling applied for the classes.

    
    <dl class="gallery-item">
        <dt class="gallery-icon landscape">
             <img width="600" height="600" src="http://www.laetitiaperles.ch/wp-content/uploads/2014/06/000182110008-700x700.jpg" class="attachment-large" alt="three">
         </dt>
         <dd class="wp-caption-text gallery-caption">three</dd>
    </dl>
    
    #177518
    ann-g
    Participant

    Paulie_D
    I got it. Solved.
    I added this to my style.css

    dd.gallery-caption {
        margin-top: 400px;
    }

    It took me 3 weeks to find out. Thank you for helping me out.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Back End’ is closed to new topics and replies.