• Resolved clcudebec

    (@clcudebec)


    Hi, I am currently working on a custom them with a local server and was wondering if there was any way to make this function with feature images? As of right now, it only works with images that are placed into posts.

    Any help would be great and if code is needed, please feel free to ask.

    Thanks.

    P.S. GREAT plugin, btw. Super easy to navigate around.

    https://wordpress.org/plugins/wp-featherlight/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Robert Neu

    (@fatmedia)

    Hey there,

    WP Featherlight should automatically find any image that’s linking directly to an image file, regardless of whether or not it’s in a post. Can you share a link or some example code so I can help figure out why it’s not working as expected for you?

    Thanks!

    Thread Starter clcudebec

    (@clcudebec)

    Unfortunately, I am on a local server. Here is the code I have to display my articles.

    <?php
    /**
     * @package _tk
     */
    ?>
    
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    	<header>
    		<h1 class="page-title"><?php the_title(); ?></h1>
    		<?php the_excerpt(); ?>
    		<div class="by-meta">
    			By <?php the_author_posts_link(); ?>
    		</div><!-- .by-meta -->
    	</header><!-- .entry-header -->
    
    	<div class="entry-content">
    		<div class="entry-content-thumbnail">
    			<?php the_post_thumbnail(); ?>
    		</div>
    
    		<div class="date-info">
    		<?php the_time('F jS, Y'); ?>
    		</div>
    		<div class="cat-info">
    		<?php the_category(' | '); ?>
    		</div>
    
    		<?php the_content(); ?>
    		<?php
    			wp_link_pages( array(
    				'before' => '<div class="page-links">' . __( 'Pages:', '_tk' ),
    				'after'  => '</div>',
    			) );
    		?>
    	</div><!-- .entry-content -->
    
    	<footer class="entry-meta">
    		<?php
    			/* translators: used between list items, there is a space after the comma */
    			$category_list = get_the_category_list( __( ', ', '_tk' ) );
    
    			/* translators: used between list items, there is a space after the comma */
    			$tag_list = get_the_tag_list( '', __( ', ', '_tk' ) );
    
    			if ( ! _tk_categorized_blog() ) {
    
    				if ( '' != $tag_list ) {
    					$meta_text = __( 'This entry was tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', '_tk' );
    				} else {
    					$meta_text = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', '_tk' );
    				}
    
    			} else {
    
    				if ( '' != $tag_list ) {
    					$meta_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', '_tk' );
    				} else {
    					$meta_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', '_tk' );
    				}
    
    			} // end check for categories on this blog
    
    			printf(
    				$meta_text,
    				$category_list,
    				$tag_list,
    				get_permalink(),
    				the_title_attribute( 'echo=0' )
    			);
    		?>
    
    		<?php edit_post_link( __( 'Edit', '_tk' ), '<span class="edit-link">', '</span>' ); ?>
    	</footer><!-- .entry-meta -->
    </article><!-- #post-## -->

    If this doesn’t show the problem, I’ll try to go deeper into the bootstrap to check it out.

    Thank you so much!

    Thread Starter clcudebec

    (@clcudebec)

    I still need some help with this. I have been trying to do research but its based on your theme and the widget so I am just lost.

    Also, I have moved my site over to a server, here is a link to a post/article page where I know the image is big and should be able to be clicked and made bigger.
    https://not.endeavors.webfactional.com/why-do-some-laptops-catch-on-fire/

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Lightbox on Feature Image?’ is closed to new replies.