Custom archives show hover effect on thumbnails as default
-
Hi Anders, I created a child theme for your lovely Hitchcock.
I want a custom archive based on specific categories under text on a page. I tried two different approaches. Both including copying code from archive.php. Both gives me a hover effect on the thumbnails if cursor is present on the page – on all posts. Instead of when cursor hovers a thumbnail.One was adding code in the bottom of a page template, the other was creating an loop-archive.php file like content.php and linking it in through a widget (post loop widget on a page builder page (siteorigin page builder))
The later works the best, but the hover effect is present all of the time.
What could I do, to make the archive work the same as the original archive?
My Archive-loop looks like this:
<?php /** * Loop Name: Archive */ ?> <?php if ( have_posts() ) : ?> <?php rewind_posts(); ?> <div class="posts" id="posts"> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', get_post_format() ); ?> <?php endwhile; ?> <div class="clear"></div> </div> <!-- /posts --> <div class="clear"></div> <?php hitchcock_archive_navigation(); ?> <?php endif; ?>
Best Regards Stine
The page I need help with: [log in to see the link]
- The topic ‘Custom archives show hover effect on thumbnails as default’ is closed to new replies.