• I am trying to put an <a href=""></a> from col-md-4 to where it end but not sure how to do it, im dont know about php, your help would be appreciated. Thanks

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

    <?php
                    $posts = get_posts('numberposts=3' );
                    foreach ( $posts as $post ) : start_wp();
    
                      echo " <div class='col-md-4'><div class='news-block'>";
    
                          toolbox_posted_on();
    
                              if ( has_post_thumbnail() ) {
                              the_post_thumbnail();
                              }
                     ?>
                         <div class="subtitle"><?php the_time('M'); ?> <?php the_time('d'); ?> <?php the_time('Y'); ?></div>
                         <div class="subtitle-alt">
                           <a>" title="<?php the_title(); ?>">
                             <?php the_title() ; ?>
                           </a>
                         </div>
                         <?php  the_excerpt() ;?>
    
    			     <?php
    				 echo "</div></div>";
    				 endforeach;
    				 ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey there, could you please be more specific with your question? I’m not really understanding but would like to help you.

    Thread Starter raws4581

    (@raws4581)

    Sorry, so what I am trying to do is when you mouse over my boxstyle for it to be active and not the title or text but the entire area, example like this site, scroll all the way to the bottom boxes, when you mouse over it the entire box become active, i just dont know where to wrap the or how on my php code. Thanks

    demo site https://heapanalytics.com/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Code for adding a style to my links’ is closed to new replies.