• Resolved g.puglielli

    (@gpuglielli)


    Hi,

    I would like the posts blocks on the main page to show the titles continuously even when the mouse is not over.
    How can I do it?

    Thanks

Viewing 1 replies (of 1 total)
  • Theme Author tarabusk

    (@tarabusk)

    Modifying the file content-blog.php in the taraza theme directory.
    New file should contain (1 line added):

    <?php
    /**
     * @package taraza
     */
    ?>
    		<div class="view view-taraza" id="post-<?php the_ID(); ?>">
    			<?php if ( has_post_thumbnail() ) {
    				the_post_thumbnail();
    				echo '<div class="title-no-thumb">';the_title(); echo'</div>'; // Line added
    			}
    			else {
    				echo '<img src="' . get_stylesheet_directory_uri() . '/img/default.png" />';
    				echo '<div class="title-no-thumb">';the_title(); echo'</div>';
    			} ?>
    
    				<div class="mask">
    				   <a href="<?php the_permalink() ?>">
    					<h2><?php the_title(); ?></h2>
    					<p><?php echo(get_the_excerpt()); ?></p>
    
    				   </a>
    				</div>
    		</div>

Viewing 1 replies (of 1 total)
  • The topic ‘Titles on posts blocks’ is closed to new replies.