Title: Implementing Active Tab
Last modified: August 22, 2016

---

# Implementing Active Tab

 *  [aminabbasian](https://wordpress.org/support/users/aminabbasian/)
 * (@aminabbasian)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/implementing-active-tab/)
 * Hi,
 * I have a highly custom page template which I am working on and I am using ERT
   within this page. Due to the requirements of the site I am unable to use the 
   ERT shortcode in list form so I have had to edit/hack the page template so that
   the design is what my client needs.
 * This however has meant that I am unable to have a “active” class and style the
   item accordingly.
 * This is example-page.php
 *     ```
       <div class="style_1"><a data-toggle="tab" href="#ert_pane1-1"></a></div>
   
       <div class="content" >
   
       <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
       <div class="post" id="post-<?php the_ID(); ?>">
       <div class="entry">
   
       <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
   
       </div>
   
       <div class="style_2"><a data-toggle="tab" href="#ert_pane1-2"></a></div>
       ```
   
 * How can I code this so that I can have an “active” class on the links?
 * thanks
 * [https://wordpress.org/plugins/easy-responsive-tabs/](https://wordpress.org/plugins/easy-responsive-tabs/)

The topic ‘Implementing Active Tab’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/easy-responsive-tabs_f3e7d6.svg)
 * [Easy Responsive Tabs](https://wordpress.org/plugins/easy-responsive-tabs/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-responsive-tabs/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-responsive-tabs/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-responsive-tabs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-responsive-tabs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-responsive-tabs/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [aminabbasian](https://wordpress.org/support/users/aminabbasian/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/implementing-active-tab/)
 * Status: not resolved