Ir para conteúdo

Kaio Kdesigner

Members
  • Total de itens

    46
  • Registro em

  • Última visita

Posts postados por Kaio Kdesigner


  1. Oi pessoal, estou tentando alinhar o titulo no meu vertical da div, já vi varios tutoriais sobre "vertical-align e  display: table-cell" mas nada funciona, alguém poderia me ajudar??

     

     

    Como esta:

    https://ibb.co/6grR6zP

     

    Meu CSS:

     

    .category-noticias {width:100%;background-color:#ffffff;border: 1px solid #bd67bd;}
    .category-noticias .thumb{float: left;width:130px; height:120px; object-fit: cover; background-color:#ffffff; padding:0px;}
    .category-noticias .titulo {margin-left: 158px; line-height:15pt; font-size:13pt; text-transform:uppercase; word-wrap: break-word;}
    .category-noticias .titulo a {font-family: lato, sans-serif;color:#64578c;text-decoration:none;}

     


  2. Oi pessoal, como que eu faço para colocar o link do post direto no tumbnail??

     

    Segue o código q eu estou usando na index, alguém pode me ajudar?

     

    <?php
    /**
     * @package Magnus
     */
    ?>
    
    <article id="post-<?php the_ID(); ?>" <?php post_class('section'); ?>>
    	<a href="%s" rel="bookmark">'
    	<?php if ( has_post_thumbnail() ) :
    		$image_id = get_post_thumbnail_id();
    		$url = wp_get_attachment_image_src( $image_id, 'magnus-large' );
    	?></a>
    
    	<div class="section-image" style="background-image: url(<?php echo esc_attr( $url[0] ); ?>);">
    	
    	<?php else: ?>
    
    	<div class="section-image">
    
    	<?php endif; ?>
    
    	</div><!-- .section-image -->
    	
    	<div class="section-inner">
    		<header class="entry-header">
    			<?php the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
    			<?php if ( 'post' == get_post_type() ) : ?>
    			<?php /*
    			<div class="entry-meta">
    				<?php magnus_posted_on(); ?>
    			</div><!-- .entry-meta -->
    			*/ ?>	
    			<?php endif; ?>
    		</header><!-- .entry-header -->
    	</div><!-- .section-inner -->
    
    </article><!-- #post-## -->

     

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.