WordPress.org

Forums

Expound
Featured post won't link (4 posts)

  1. laureninspace
    Member
    Posted 1 year ago #

    I'm running Expound; have been for years. Lately, the featured blog post preview shown at the top of the page doesn't link to the single post. Neither the title nor the "continue reading" button link to the story. Only the image does.

    http://teenobserver.com/

    Here is the relevant code on featured-content.php:

    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    
    		<?php if ( has_post_thumbnail() ) : ?>
    		<div class="entry-thumbnail">
    			<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( 'expound-featured' ); ?></a>
    		</div>
    		<?php endif; ?>
    
    		<header class="entry-header">
    			<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'expound' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
    		</header><!-- .entry-header -->
    
    		<div class="entry-summary">
    			<?php the_excerpt(); ?>
    			<p><a class="button-primary" href="<?php the_permalink(); ?>"><?php _e( 'Continue reading →', 'expound' ); ?></a></p>
    		</div><!-- .entry-summary -->
    
    		<div class="clear"></div>
    
    	</article>

    Any idea how I can fix this?

  2. sacredpath
    Moderator
    Posted 1 year ago #

    Hi, the height on .site-title in your custom CSS (500px) is causing that div to overlay the featured post and obscure the links. Change the height to 154px (the same as the height of your image) and then things will return to normal.

  3. laureninspace
    Member
    Posted 1 year ago #

    @sacredpath, you're amazing! What's a tool I could use to detect and resolve CSS problems like that in the future? I would never have guessed that myself.

  4. sacredpath
    Moderator
    Posted 1 year ago #

    @laureninspace, i just use the web inspector tool built into the browser and start looking around. When I highlighted the title I saw the div extend down below the featured image so I then looked at the CSS and found that issue.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic