Captions in Agency Slide Show
URL to the page in question:
http://new.segalfamilyfoundation.org
-
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
Hello Jesper,
Just about anything can be done if you need to. With a few edits you can add in captions. Here’s how:
- Go to the Appearance section in your WordPress dashboard and choose Edit.
- From the list of files on your right, choose slideshow.php and find this spot (line 32):
</li>
- Right above that, add this:
<h2 class="slide-caption"><?php the_title(); ?></h2>
and save your changes.
- 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
Worked great. Thanks Bill!
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>
That’s a great idea Jesper.
If you need anything else, just let me know.
Thanks,
Bill
- The topic ‘Captions in Agency Slide Show’ is closed to new replies.