WordPress.org

Forums

Meteor Slides
adding text to meteor slideshow (2 posts)

  1. ranblufarb
    Member
    Posted 2 years ago #

    Hi,

    I have followed one of the support issues related to adding text.
    1. meteor-slideshow.php from /meteor-slides/includes/ to your theme’s directory
    2.copied <p><?php the_title(); ?></p> above </div><!-- .mslide -->
    3. add .meteor-slides p {
    background: rgba(0,0,0,0.2);
    bottom: 0;
    color: #000;
    left: 0;
    line-height: 20px;
    margin: 0;
    padding: 2%;
    position: absolute;
    text-align: center;
    width: 96%;
    }
    to my CSS

    the results is as expected all the titles of the slides are showing at the bottom of each slide.

    the thing is I wanted to add a lot of text not only titles
    so i continued with the following:

    1.added // Add excerpts to Meteor Slides add_post_type_support('slide', 'excerpt'); to my functions.php
    2. added <?php // Get the slide post's excerpt the_excerpt();?> to my custom slideshow template.

    once done I should have a new textbox below the link box but I have nothing!

    PS: I'm using responsive theme id with child theme

    also saw you have recomended to someone to add this:
    ?php /*
    Plugin Name: Meteor Excerpts
    Description: Adds excerpts to Meteor Slides.
    Author: Josh Leuze
    Author URI: http://www.jleuze.com/
    Version: 1.0 */
    add_action( 'init', 'meteorslides_add_excerpt' );
    function meteorslides_add_excerpt() {
    add_post_type_support( 'slide', 'excerpt' );
    } ?>

    but I dont know where should I add this and how. is this a pluging? how do I set the file to have php extention?

    http://wordpress.org/extend/plugins/meteor-slides/

  2. Josh Leuze
    Member
    Plugin Author

    Posted 2 years ago #

    Hi, yes that is a plugin for Meteor Slides, you can download the php file for Meteor Excerpts on GitHub.

    It shouldn't matter whether you do it on the theme or via a plugin, but try the plugin, in some rare cases it works better.

    Otherwise if your are still having problems, here is a really great tutorial on using Meteor Slides with Advanced Custom Fields to create a slideshow with a title and description just like you need.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic