Title: Hyperlink countdown
Last modified: August 20, 2016

---

# Hyperlink countdown

 *  Resolved [cccwebmaster](https://wordpress.org/support/users/cccwebmaster/)
 * (@cccwebmaster)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/hyperlink-countdown/)
 * Hello,
 * The countdown is implemented in the header of our website using do_shortcode.
   Is there a way to hyperlink the clock/before/after text so visitors can read 
   more. Below is the code:
 * `backticks`<div class=”timer”><?php echo do_shortcode(‘[tminus t=”2013-03-21 
   17:00:00″ omitweeks=”true” style=”carbonlite” before=” Countdown to March 21
   ”
   after=” Deadline for Senate to Introduce Bill” jsplacement=”inline”/]’); ?></
   div>`backticks`
 * Thanks in advance!
 * [http://wordpress.org/extend/plugins/jquery-t-countdown-widget/](http://wordpress.org/extend/plugins/jquery-t-countdown-widget/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/hyperlink-countdown/#post-3528207)
 * what happens when you use:
 *     ```
       <?php echo do_shortcode('[tminus t="2013-03-21 17:00:00" omitweeks="true" style="carbonlite" before=" Countdown to March 21
       " after=" <a href='http://example.com/page/'>Deadline for Senate to Introduce Bill</a>" jsplacement="inline"/]'); ?>
       ```
   
 * Keep in mind that if you are using double quotes (“) to assign the before and
   after attributes, then you will have to use single quotes (‘) to assign the a
   tag’s href value.
 *  Thread Starter [cccwebmaster](https://wordpress.org/support/users/cccwebmaster/)
 * (@cccwebmaster)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/hyperlink-countdown/#post-3528234)
 * Thanks for your response. I got a warning in place of the clock when i added 
   a relative path to the page ==> Warning: Division by zero in ../wp-content/themes/
   fts/header.php on line 54
 * When I added the full path to the page, I got an error message instead ==> Parse
   error: syntax error, unexpected T_STRING in ../wp-content/themes/fts/header.php
   on line 54
 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/hyperlink-countdown/#post-3528401)
 * Ah! You need to escape the single quotes used to define the href like so:
 *     ```
       <?php echo do_shortcode('[tminus t="2013-03-21 17:00:00" omitweeks="true" style="carbonlite" before=" Countdown to March 21
       " after=" <a href=\'http://example.com/page/\'>Deadline for Senate to Introduce Bill</a>" jsplacement="inline"/]'); ?>
       ```
   
 * This has been tested, and it does work.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Hyperlink countdown’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jquery-t-countdown-widget_7b7b7b.
   svg)
 * [jQuery T(-) Countdown Widget](https://wordpress.org/plugins/jquery-t-countdown-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jquery-t-countdown-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jquery-t-countdown-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/jquery-t-countdown-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jquery-t-countdown-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jquery-t-countdown-widget/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Baden](https://wordpress.org/support/users/baden03/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/hyperlink-countdown/#post-3528401)
 * Status: resolved