What do I need to do to make the plugin work with my own theme? Do I need to add certain things to my functions.php? I’m using the normal WordPress stylesheets for galleries, but it still looks off. I can’t seem to figure out what makes my theme incompatible. Zoom and deselect are displayed as links below the photo instead of inside of them on hover. The meta data is not aligned.
I am having the same problem… no stylesheet.
Here’s what I did to make it work:
Added content-single.php to my theme, with this code:
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-content">
<?php the_content(); ?>
</div><!-- .entry-content -->
</article><!-- #post-## -->
Added content.php to my theme, with this code:
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( !is_single() ) : ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h1><?php the_title(); ?></h1>
<?php the_post_thumbnail(); ?>
<?php the_content('',FALSE,''); ?>
<?php comments_template(); ?>
</div>
<?php // For single posts and pages, display the full content ?>
<?php else : ?>
<?php endif; ?>
</article><!-- #post-## -->
In single.php, the loop should be:
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'single' ); ?>
<?php endwhile; // end of the loop. ?>
I also added single-proof_gallery.php to my theme, also with this as a loop:
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'single' ); ?>
<?php endwhile; // end of the loop. ?>
Hope this helps!
Yeah, that helped! The .proof_gallery class was missing in the HTML code. Thanks, indira14, you rock!!!
Hi, whereabouts to I need to add that code in my theme?
Please read my post with codes carefully. I explained in which theme files those codes should be placed.