Support » Theme: Capture » Disable fullscreen slideshow in blog page

  • Hi, I am developing a site for a personal blog. I installed the Capture theme.

    This theme looks great, but I don’t need the full screen slideshow that appears when I click in the featured images in the blog page.

    How can I disable that? I just want to click in the nice big picture and go straight to the post, not to the slideshow (it actually redirects to a lightbox). Any help will be highly appreciated.

    Thank you and have a great 2015!

Viewing 3 replies - 1 through 3 (of 3 total)
  • I am using a child theme by the way, and css has been customized too.

    Hey!
    Im also interested in this topic.

    Dear Yor1980, if you have found a solution already, please post it here. It seems no one is going to answer this quetion from support.

    I changed few lines and it seems to work. (This won’t completely delete this feature, it will somehow disable it. In order to remove this feature completely you have to dig more)

    Before making any changes I recommend to make a child theme(works better than backup for me) or a backup.

    To disable slideshow from blog page you can change loop-home.php to this:

    <?php
    	// Loop through posts
    	if ( have_posts() ) :
    		while ( have_posts() ) : the_post();
    ?>
    	<?php get_template_part( 'yoast', 'breadcrumbs' ); // Yoast Breadcrumbs ?>
    
    	<section id="post-<?php the_ID(); ?>" <?php post_class( 'post cf' ); ?>>
    		<section class="post-container">
    			<?php
    				// Featured Image
    				if ( has_post_thumbnail() ) :
    			?>
    
    					<?php sds_featured_image( false ); ?>
    
    			<?php
    				endif;
    			?>
    
    			<section class="post-title-wrap cf <?php echo ( has_post_thumbnail() ) ? 'post-title-wrap-featured-image' : 'post-title-wrap-no-image'; ?>">
    				<h2 class="post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
    				<p class="post-date">
    					<?php if ( strlen( get_the_title() ) > 0 ) : ?>
    						<?php printf( __( 'Posted by %1$s On %2$s', 'capture' ) , '<a href="' . get_author_posts_url( get_the_author_meta( 'ID' ) ) . '">' . get_the_author_meta( 'display_name' ) . '</a>', get_the_time( 'F jS, Y' ) ); ?>
    					<?php else: // No title ?>
    						<a href="<?php the_permalink(); ?>">
    							<?php printf( __( 'Posted by %1$s On %2$s', 'capture' ) , get_the_author_meta( 'display_name' ), get_the_time( 'F jS, Y' ) ); ?>
    						</a>
    					<?php endif; ?>
    				</p>
    			</section>
    
    			<article class="post-content cf">
    				<?php
    					// Display excerpt if one has been specifically set by post author
    					if ( ! empty( $post->post_excerpt ) ) :
    						the_excerpt();
    				?>
    						<p><a href="<?php the_permalink(); ?>" class="more-link"><?php _e( 'Read More', 'capture' ); ?></a></p>
    				<?php
    					else :
    						the_content( __( 'Read More', 'capture' ) );
    					endif;
    				?>
    			</article>
    
    			<footer class="post-footer cf">
    				<section class="comments-link-container">
    					<?php if ( comments_open() && ! post_password_required() && ( int ) $post->comment_count ) : // Comments exist ?>
    						<a href="<?php comments_link(); ?>" class="comments-link"><span class="fa fa-comment"></span> <?php printf( _n( '1 Observation', '%1$s Observations', get_comments_number(), 'capture' ), get_comments_number() ); ?></a>
    					<?php elseif ( comments_open() ): // No Comments ?>
    						<a href="<?php comments_link(); ?>" class="comments-link"><span class="fa fa-comment"></span> <?php _e( 'Leave Your Observation', 'capture' ); ?></a>
    					<?php else: // Comments Disabled ?>
    						<span class="comments-link"><span class="fa fa-minus-circle"></span> <?php _e( 'Observations Closed', 'capture' ); ?></span>
    					<?php endif; ?>
    				</section>
    
    				<section class="post-footer-right">
    					<?php do_action( 'capture_post_footer_right', $post ); ?>
    				</section>
    			</footer>
    		</section>
    	</section>
    <?php
    		endwhile;
    	else : // No posts
    ?>
    	<section class="no-results no-posts post">
    		<section class="post-container">
    			<article class="post-content cf">
    				<h1 class="page-title"><?php _e( 'No Results', 'capture' ); ?></h1>
    
    				<?php sds_no_posts(); ?>
    			</article>
    		</section>
    	</section>
    <?php endif; ?>
    
    <?php get_template_part( 'capture', 'slideshow' ); // Capture Slideshow Markup ?>
    <?php get_template_part( '_', 'capture-slideshow' ); // Capture Slideshow Underscore Template ?>

    To disable slideshow feature from a single blog, change loop.php to this:

    <?php
    	global $multipage;
    
    	// Loop through posts
    	if ( have_posts() ) :
    		while ( have_posts() ) : the_post();
    ?>
    	<section id="post-<?php the_ID(); ?>" <?php post_class( 'post single-post capture-post cf' ); ?>>
    		<section class="post-container">
    			<?php
    				// Featured Image
    				if ( has_post_thumbnail() ) :
    			?>
    
    						<?php sds_featured_image( false, 'capture-1200x9999' ); ?>
    
    			<?php
    				endif;
    			?>
    
    			<section class="post-title-wrap cf <?php echo ( has_post_thumbnail() ) ? 'post-title-wrap-featured-image' : 'post-title-wrap-no-image'; ?>">
    				<h1 class="post-title"><?php the_title(); ?></h1>
    				<p class="post-date">
    					<?php the_time( get_option( 'date_format' ) ); ?>
    				</p>
    			</section>
    
    			<article class="post-content cf">
    				<?php the_content(); ?>
    
    				<section class="clear"></section>
    
    				<?php if ( $multipage ) : ?>
    					<section class="single-post-navigation single-post-pagination wp-link-pages">
    						<?php wp_link_pages(); ?>
    					</section>
    				<?php endif; ?>
    
    				<section class="clear"></section>
    
    				<?php edit_post_link( __( 'Edit Post', 'capture' ) ); // Allow logged in users to edit ?>
    			</article>
    
    			<footer class="post-footer single-post-footer cf">
    				<?php if ( $post->post_type !== 'attachment' ) : // Post Meta Data (tags, categories, etc...) ?>
    					<section class="post-meta">
    						<?php sds_post_meta(); ?>
    					</section>
    				<?php endif ?>
    			</footer>
    
    			<section id="post-author" class="post-author cf">
    				<section class="post-author-inner cf">
    					<header class="author-header">
    						<figure class="author-avatar">
    							<?php echo get_avatar( get_the_author_meta( 'ID' ), 128 ); ?>
    						</figure>
    					</header>
    
    					<aside class="author-details author-content">
    						<h3><?php echo get_the_author_meta( 'display_name' ); ?></h3>
    						<a href="<?php echo get_the_author_meta( 'user_url' ); ?>"><?php echo get_the_author_meta( 'user_url' ); ?></a>
    						<p><?php echo get_the_author_meta( 'description' ); ?></p>
    						<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php _e( 'View more posts from this author', 'capture' ); ?></a>
    					</aside>
    				</section>
    			</section>
    
    			<section class="single-post-navigation-container post-navigation-container cf">
    				<?php sds_single_post_navigation(); ?>
    			</section>
    
    			<section class="clear"></section>
    
    			<section class="after-posts-widgets cf <?php echo ( is_active_sidebar( 'after-posts-sidebar' ) ) ? 'after-posts-widgets-active widgets' : 'no-widgets'; ?>">
    				<?php sds_after_posts_sidebar(); ?>
    			</section>
    
    			<section class="clear"></section>
    
    			<?php comments_template(); // Comments ?>
    		</section>
    	</section>
    <?php
    		endwhile;
    	endif;
    ?>

    Hope this helps

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable fullscreen slideshow in blog page’ is closed to new replies.