Title: linking a div
Last modified: August 21, 2016

---

# linking a div

 *  Resolved [dmd54](https://wordpress.org/support/users/dmd54/)
 * (@dmd54)
 * [13 years ago](https://wordpress.org/support/topic/linking-a-div/)
 * I am trying to have the four widgets on the home page individual links. When 
   I wrap the div with an anchor however the divs lose the styling.
 * i’ve removed the anchor but this this is what i had.
 *     ```
       <a href=""><div class="grid col-300">
               <?php macrodiver_widgets(); // above widgets hook ?>
   
                   <?php if (!dynamic_sidebar('home-widget-1')) : ?>
                   <div class="widget-wrapper">
   
                       <div class="widget-title-home"><h3><?php _e('Home Widget 1', 'macrodiver'); ?></h3></div>
                       <div class="textwidget"><?php _e('This is your first home widget box. To edit please go to Appearance > Widgets and choose 6th widget from the top in area 6 called Home Widget 1. Title is also manageable from widgets as well.','macrodiver'); ?></div>
   
       			</div><!-- end of .widget-wrapper -->
       </a>
   
       			<?php endif; //end of home-widget-1 ?>
       ```
   

The topic ‘linking a div’ is closed to new replies.

## Tags

 * [anchor](https://wordpress.org/support/topic-tag/anchor/)
 * [div](https://wordpress.org/support/topic-tag/div/)
 * [link](https://wordpress.org/support/topic-tag/link/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [dmd54](https://wordpress.org/support/users/dmd54/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/linking-a-div/)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
