WordPress.org

Ready to get started?Download WordPress

Forums

Leaf
[resolved] How to Edit Slider (8 posts)

  1. imwithcupcake
    Member
    Posted 1 year ago #

    I had done it before but I'm just wondering the options are to edit the slider in the LEAF theme. I want to take out the text description and only have a title on the slides. Thanks!

  2. bradthomas127
    Member
    Theme Author

    Posted 1 year ago #

    Try this in the custom CSS section:

    .iview-caption.caption1 {
        display: none !important;
    }
  3. Keldar
    Member
    Posted 1 year ago #

    And if I want to reduce or edit the EXACT text in the slider?

  4. bradthomas127
    Member
    Theme Author

    Posted 1 year ago #

    Make a child theme and change the wp_trim_words nuber you can see here on line: 35 GitHub

  5. Keldar
    Member
    Posted 1 year ago #

    Yeah, already figured it out. Gonna make a child theme in January don't have time for that now :)

    Request: Make the description take text from the post by default, but have a Description field that can overwrite it (ie, higher in the hierarchy).

    That would be perfect.

    EDIT: Ops. And THANKS for the response :)

  6. itechresource
    Member
    Posted 1 year ago #

    Is there a way to remove all text including post title?

  7. lupi73
    Member
    Posted 1 year ago #

    hi,
    home.php, child theme

    <a href="<?php the_permalink(); ?>" data-iview:image="<?php echo leaf_get_post_image( null,null,true,null, 'slider' ); ?>">
    							<span class="iview-caption caption3" data-x="15" data-y="212" data-transition="expandright"><h2><?php the_title(); ?></h2></span>
    							<span class="iview-caption caption1" data-x="15" data-y="258" data-transition="expandleft"><?php echo '<p>' . wp_trim_words( get_the_excerpt(), 35, null ) . '</p>'; ?></span>
    						</a>
  8. itechresource
    Member
    Posted 1 year ago #

    Thanks noaneo!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.