How to add the article title to a slider
-
Hi
For my blog http://www.missmodern.be I want to automatically add the article category and article title on top of the image in the slider.
So it will read, for example:
INTERIOR
5 BEAUTIFUL WOOD DESIGNSSomething like the first 2 lines on this picture: https://fbcdn-sphotos-b-a.akamaihd.net/hphotos-ak-xpa1/v/t1.0-9/10931314_10205018791823206_8091655092177847595_n.jpg?oh=391698339dbf33090f2154a5ab8be4cd&oe=55213D9B&__gda__=1429302669_2210ae8b0339534fab91d391ebde4dd9
This is the css code I’ve found for the slider:
#slideshow_cont { width: 980px; height: 410px; position: relative; margin-bottom: 30px; } .slide_box { display: none; position: absolute; top: 0; left: 0; } .slide_box_first { display: block; } .slide_box img, .slide_box iframe { width: 980px; height: 410px; } .slide_prev, .slide_next { position: absolute; top: 50%; margin-top: -20px; z-index: 50; cursor: pointer; } .slide_prev { left: 0; } .slide_next { right: 0; }Which alterations should I make to it?
Thanks in advance!
Ine
-
Hi @thefoxhabitat, it looks like you are using WordPress but you are not hosted here at WordPress.com. For self-hosted WordPress sites such as yours, I would suggest asking for help from the theme author directly or ask in the volunteer-based WordPress.org Themes and Templates forum.
For general questions on self-hosted WordPress.org installations, visit http://wordpress.org/support/.
-
I took a quick look at your site, and what you are going to have to do is to modify the theme PHP script files to add the title and category to the slider. There isn’t a way to add the title and category via CSS.
- The topic ‘How to add the article title to a slider’ is closed to new replies.