Support » Plugin: WordPress Gallery Plugin - FooGallery » CSS code to center caption no longer working

  • Resolved surya16

    (@surya16)


    I have had the following CSS code in my galleries to center the caption under the images and remove the underline:

    .foogallery-simple_portfolio .bf-caption h4 {
    margin: 0;
    text-align: center;
    padding: 2px 0;
    border-bottom: none;
    font-size: 15px;
    }

    It worked fine for a long while but I am wondering whether a recent update has broken its functionality.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author bradvin

    (@bradvin)

    hi

    The structure of the gallery changed in an update last year. This custom CSS should center the caption titles and descriptions for the simple portfolio gallery template:

    
    .foogallery.fg-simple_portfolio .fg-caption-title {
        text-align: center;
    }
    
    .foogallery.fg-simple_portfolio .fg-caption-desc {
        text-align: center;
    }
    
    ggd3549

    (@ggd3549)

    Hi,

    I have read the support forum and cannot find an answer. I cannot get my captions to show. Please see https://lindleycompositedoors.co.uk/door-styles/ and open the lightbox.

    Can you please advise?

    Kind regards,

    Marco

    ggd3549

    (@ggd3549)

    Thanks

    surya16

    (@surya16)

    Thank you very much bradvin. That did the trick!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘CSS code to center caption no longer working’ is closed to new replies.