• Resolved And

    (@nemoya)


    Hello! I had to create a custom post type with a specific layout, so it doesn’t use the standard post rendering from the theme.
    However, I would like these posts to have the same appearance animation as the regular posts that use the theme settings:

    data-reveal=”yes:1″
    data-reveal=”yes:2″
    data-reveal=”yes:1″
    data-reveal=”yes:2″

    Could you please tell me how to enable this animation for my custom post template?
    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @nemoya

    Do you have a live link to this post’s archive page? I’d like to clear something up first.

    Thanks.

    Thread Starter And

    (@nemoya)

    Not yet — I’m currently building the website on a local server.
    The HTML markup looks like this.
    Thanks.

    <?php get_header(); ?>

    <div class="ct-container" <?php echo blocksy_get_v_spacing(); ?>>
    <header class="archive-header">
    <?php echo do_shortcode('[blocksy_breadcrumbs]'); ?>
    <h1 class="page-title"><?php post_type_archive_title(); ?></h1>
    </header>

    <section class="book-items">
    <?php if (have_posts()) : ?>
    <div class="book-grid">
    <?php while (have_posts()) : the_post(); ?>
    <article id="post-<?php the_ID(); ?>">
    <?php if (has_post_thumbnail()) : ?>
    <div class="thumbnail">
    <a href="<?php the_permalink(); ?>">
    <?php the_post_thumbnail(); ?>
    </a>
    </div>
    <?php endif; ?>
    <h2>
    <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
    </h2>
    </article>
    <?php endwhile; ?>
    </div>
    <?php else : ?>
    <p><?php _e('oops', ''); ?></p>
    <?php endif; ?>
    </section>

    </div>

    <?php get_footer(); ?>

    Hello @nemoya

    Hm, so I understand that this is a custom PHP template? Or something else?

    It would really be beneficial if I could see the site. Otherwise, I’m running blind here and could lead to a lot of redundant back and forth between us.

    Thanks.

    Thread Starter And

    (@nemoya)

    Yes, this is a custom post archive template. The site is still running on a local server. Could you possibly give at least a rough idea if it’s possible to apply this animation to the archive template, where the posts are displayed not through theme rendering, but the way I showed in the code above?

    Hello @nemoya

    The “reveal effect” option is usually found in the Customiser -> Post Type Name -> Cards Reveal Effect. Here is an example where you would find it for standard blog posts: https://creativethemes.com/blocksy/docs/post-types/blog-posts/

    However, I cannot guarantee that the effect will work with a custom PHP template. And unfortunately, we will not be able to make changes to make it work for such scenarios, as we wouldn’t be able to take into consideration any changes someone might make to such templates.

    Have a look in the Customiser to see if the option works for you.

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Post Animation’ is closed to new replies.