Overlay post title on featured image on front page

Homepage Community Forums Vintage Theme Support Overlay post title on featured image on front page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #18328
    Martin
    Customer

      Hi

      On seenit.co.uk I want to overlay the post title over featured image for the topmost post. I’m currently ‘cheating’ by using the Genesis Responsive Slider plugin to do this but it seems a little overkill to use a plugin for this?

      I wondered if anyone either knew how to achieve this via CSS / code?

      #18329
      Martin
      Customer

        Or, if not via code, if anyone knew of a plugin which is actually designed for single posts rather than the slider.

        #18348
        Eric
        Customer

          Yeah to achieve that with CSS would take a bit of time to come up with. The Genesis Slider is definitely easier. I don’t know of any plugins that can achieve that.

          What if you removed the slider, and added the HTML the slider generates inside of a text widget?

          <div id="genesis-responsive-slider">
          			<div class="flexslider">
          				<ul class="slides">
          										<li style="display: list-item;">
          
          											<div class="slide-excerpt slide-74708">
          							<div class="slide-background"></div><!-- end .slide-background -->
          							<div class="slide-excerpt-border ">
          																<h2><a href="http://www.seenit.co.uk/video-star-wars-battlefront-bespin-dlc-trailer/" rel="bookmark">Video: Star Wars Battlefront – Bespin DLC trailer</a></h2>
          															</div><!-- end .slide-excerpt-border  -->
          						</div><!-- end .slide-excerpt -->
          					
          						<div class="slide-image">
          												<a href="http://www.seenit.co.uk/video-star-wars-battlefront-bespin-dlc-trailer/" rel="bookmark"><img src="http://i2.wp.com/www.seenit.co.uk/wp-content/uploads/star-wars-batllefront-cloud.jpg?resize=1200%2C600" alt="Video: Star Wars Battlefront – Bespin DLC trailer"></a>
          											</div><!-- end .slide-image -->
          
          					</li>
          								</ul><!-- end ul.slides -->
          			</div><!-- end .flexslider -->
          		</div>

          I’d try that and see if it works….it probably won’t if the slider doesn’t load the stylesheet due to it not being active in the slider. If that’s the case, you could always copy the CSS from the plugin and add it in your Theme’s style.css file or a custom file. I assume it should work if you do it that way…..which means you won’t have to use any plugins to achieve this effect.


          I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

          #18353
          Martin
          Customer

            Cheers Eric

            I think you’re right and that the slider is going to be the easiest option because at least that will auto update as and when new articles are added.

            Appreciate your thoughts.

          Viewing 4 posts - 1 through 4 (of 4 total)
          • The topic ‘Overlay post title on featured image on front page’ is closed to new replies.