Forums

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

Home Forums CSS controlling featured img caption – wp

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #27031
    revok
    Participant

    Hello

    I have finally managed to display the caption for my featured image on single pages.

    But I cannot seem to control the way the caption displays.

    echo get_post(get_post_thumbnail_id())->post_excerpt; ?>

    Do you have any ideas?
    Is there a standard class for this?

    Example:
    http://www.fremtidensbornehuse.dk/wordpress/uncategorized/forældre-og-personale-fortæller

    Thanks
    Simon

    #76762
    revok
    Participant

    Ok

    I figured it out myself. Simple enough, I could just wrap the php in a div and control the text inside this…

    /S

    #76764
    jamygolden
    Member

    I think this should work:

     'class-name')); ?>
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.