Captions in Agency Slide Show

Support Area Forums Agency Captions in Agency Slide Show

Viewing 5 posts - 1 through 5 (of 5 total)
URL to the page in question: http://new.segalfamilyfoundation.org
  • Author
    Posts
  • #24055
    Jesper Frant
    Participant

    Hey,

    I read in an earlier forum that captions are not included in Agency because there’s two much going on up top, but it’s odd to have an external link without a caption explaining where people are being directed. Is there a way I can manually add caption functionality to my version of Agency?

    I edited the photo to add text, but my clients aren’t happy with that solution.

    Thanks,
    Jesper

    #24061
    Bill Robbins
    Moderator

    Hello Jesper,

    Just about anything can be done if you need to. With a few edits you can add in captions. Here’s how:

    1. Go to the Appearance section in your WordPress dashboard and choose Edit.
    2. From the list of files on your right, choose slideshow.php and find this spot (line 32):
      
      </li>
      
    3. Right above that, add this:
      
      <h2 class="slide-caption"><?php the_title(); ?></h2>
      

      and save your changes.

    4. Next go to the Theme Options page and select the Advanced tab. Scroll down to the Custom CSS box and add this:
      
      ul.slides li {
      	position: relative;
      }
      
      h2.slide-caption {
      	position: absolute;
      	bottom: 0px;
      	left: 0px;
      	padding: 15px;
      	margin: 0;
      	color: #fff;
      	background-color: rgba(0,0,0,0.5);
      }
      

      and save your changes.

    That should give you captions for your home page slider now. If you have questions or trouble, let me know.

    Thanks,
    Bill

    #24064
    Jesper Frant
    Participant

    Worked great. Thanks Bill!

    #24065
    Jesper Frant
    Participant

    I modified the caption code to include a hyperlink. Thanks again for your help.

    <a href="<?php echo get_post_meta($post->ID, "slideurl", TRUE); ?>"><h2 class="slide-caption"><?php the_title(); ?></h2></a>

    #24066
    Bill Robbins
    Moderator

    That’s a great idea Jesper.

    If you need anything else, just let me know.

    Thanks,
    Bill

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Captions in Agency Slide Show’ is closed to new replies.