This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Replies

3
  1. Andrew Misplon Staff 10 years, 3 months ago

    Hi :)

    Sure. Are you using a child theme? If so you can make a copy of image.php and move into the child theme folder. Then, you can insert:

    <?php $description = $post->post_content; ?>
    <div class="attachment-description">
    <?php echo $description; ?>
    </div>

    Ref: http://www.wpbeginner.com/wp-tutorials/image-meta-data-101-title-caption-alt-text-and-description/.

    You can insert the above on line 54 after:

    </div><!-- .entry-attachment -->
  2. phil_traveler 10 years, 3 months ago

    It work! Thanks a lot. Is it possible to customize font size of description?

  3. Andrew Misplon Staff 10 years, 3 months ago

    Super :) Try:

    /* Image attachment page description */
    .attachment-description {
    font-size: 14px;
    padding-top: 10px;
    padding-bottom: 10px;
    }

    Etc. Insert the above at Appearance > Custom CSS and edit as required. If there are any issues with this, please, send a link to a image attachment page so I can inspect it live.

    Thanks :)

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread