Ability to add more slides to presentation page

  • Author
    Posts
  • #5643
    Alex

    It would be great to be able to add more custom slides.

    #7039
    Zed
    Cryout Creations mastermind

    Custom posts are limited to 5, and we have no plans to change this number as one can easily use posts to generate slides; post generated slides can have an unlimited number.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #9975
    Pantelis

    Question on that, cause i want to have also more “custom slides”.
    I’m ok to create post generated slides and to put featured image and leave post empty.
    Where should i change the code so i won’t have linkable/clickable slides/post (just slideshow of images as you can do on a custom selection of images)?

    and also what class/id should i configure, so i won’t have nivo-caption appearing in the slideshow (the title of each post) ? i tried on custom css to add .nivo-caption {display: none; } but it kept appearing.
    thanks in advance

    #9977
    Pantelis

    ok i think i found it and it works as it appears at least (i hope i didn’t mess anything, please verify if you’d like)
    what i did is:
    went to editor, at theme-frontpage.php
    and searched “specific”, found “case ‘Specific Posts’ :”

    and there on the line that says:
    <a href="<?php the_permalink(); ?>"><img src="<?php echo $image[0]; ?>" alt="" title="#caption<?php echo $i;?>" /></a>

    i did it:

    <img src="<?php echo $image[0]; ?>" alt="" />

    is it ok for the two things i wanted? or should i change anything else somewhere else also?
    thanks again for your feedback. all the best!

    #9978
    Zed
    Cryout Creations mastermind

    That should do it, but you should transfer the changed theme-frontpage.php file to a child theme (calling it in it).


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #13437
    Andy

    Hi,

    I have followed the instructions above, but would like some instruction on “transfer the changed theme-frontpage.php file to a child theme (calling it in it).”

    I have changed line 211 in the theme-frontpage.php to follows and it’s ok:
    ” alt=”” title=”#caption<?php echo $i;?>” />

    So, as directed, I tried to make a make a child include file themes\mantra-mb2014-child\includes\theme-frontpage.php, with following code.

    It’s not working, I guess I am calling it wrong? I looked online for resource how to make a child theme, but I can’t find any info other than the css and function pages..

    <?php
    /*
    * @package mantra
    */

    @import url(“../mantra/includes/theme-frontpage.php”); /*include parent file*/

    // Change line 211 of parent file to remove the hyperlink on presenation carousel slider

    // Loop for creating the slides
    if ( $custom_query->have_posts() ) while ( $custom_query->have_posts()) : $custom_query->the_post();

    $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ),’slider’);
    $i++; ?>
    ” alt=”” title=”#caption<?php echo $i;?>” />

    <?php endwhile; // end of the loop.
    ?>

    #13438
    Andy

    ps. sorry, the line should be as follows:

    original line 211 has caption and hyperlink:
    “>” alt=”” title=”#caption<?php echo $i;?>” />

    The caption is still present:
    ” alt=”” title=”#caption<?php echo $i;?>” />

    this is image only, no caption, no link:
    ” alt=”” />

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Ability to add more slides to presentation page’ is closed to new replies.