Text on slides using div table
-
Hi,
I saw some post about using excerpt but i had problem to get rid of “continue reading” so I did a test to use the editor instead.
I have a test with a couple of movie slides running on me WP sait.
A div table in HTML using editor
<div class="caption-left">Recently Viewed: 2013-07-26</div> <div class="caption-center">Gran Torino (2008)</div> <div class="caption-right"><a href="http://www.imdb.com/title/tt1205489/" target="_blank"></a></div>and CSS
.caption { background: rgba(0,0,0,0.2); display:table; position: absolute; bottom: 0; width: 98%; height: 43px; padding: 4px 0 0 2%; } .caption-left { display: table-cell; vertical-align: middle; font-style: italic; color: #FFFFFF; width: 32%; } .caption-center { display: table-cell; vertical-align:middle; text-align: center; font-size: 1.286em; color: #FFFFFF; width: 32%; } .caption-right a { background: url(images/IMDb.png) no-repeat; position: absolute; right: 2%; width: 53px; height: 43px; }Code in meteor-slideshow.php
<div class="caption"><?php the_content();?></div>and functions.php
add_post_type_support('slide', 'editor');Can i do this in better way.
1) Use the title field?
2) Use the link field? (i only want to have the IMDb link on IMDb logo not the image
3) Date from publish?I’m still a beginner in WP so any help is needed 🙂
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Text on slides using div table’ is closed to new replies.