Forums

Font size of Gallery captions (7 posts)

  1. Michiel
    Member
    Posted 1 year ago #

    Is there a way to change the font size of the image captions when using the build in Gallery?

  2. blackbookdesign
    Member
    Posted 1 year ago #

    yeah sure. all css. use firebug in firefox and create the proper css for it. (i did it a few times but
    it was a while ago.)
    Cheers

  3. Michiel
    Member
    Posted 12 months ago #

    Ok, will try that out. Do you know if it is possible to only show the captions on the individual post page, so not on the post roll (index.php) page?

  4. blackbookdesign
    Member
    Posted 12 months ago #

    humm thats a good one! :P maybe by using a conditional comment where the captions are getting generated would work.
    somthing like this like this:

    <?php
     if ( is_single()  ) {
    Do show caption code ;
    } else {
    Do not show caption code ;
     }?>

    cheers

  5. Michiel
    Member
    Posted 11 months ago #

    I was thinking too but could not find any function code that would refer to the caption... at least the codex does not help on this one. In case you find something, let me know:-)

  6. blackbookdesign
    Member
    Posted 11 months ago #

    dunno if you could play lots in it but check media.php in wp-includes.
    around line 562 its the caption shortcode.

    Now you can play with it :P
    Let me know if you make it work.

    cheers

  7. Michiel
    Member
    Posted 11 months ago #

    I think I will change the approach, seems that the caption is not that ideal as e.g. lightbox takes the image title. I will now try to get the image title below the images in stead:-)

Topic Closed

This topic has been closed to new replies.

About this Topic