Tagged: , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1329734

    Hi There,

    One feature I found is pretty useful in our email marketing platform is the ability to display the current date in the email’s content.

    This is nice for a sale or promotion period where we want to increase urgency but are okay with people converting over a span of a few days.

    I was wondering if there is a simple way to do this in WordPress or via a feature of the Enfold Theme?

    For example, what we currently have date-wise is the following:

    This limited-time offer ends soon. Join on or before Thursday, November 18th to claim your joining bonus – a $198 value, yours free, when you join today!

    What I was hoping to possibly do somehow:

    This limited-time offer ends soon. Join on or before Display Current Date with Shortcode or other methodth to claim your joining bonus – a $198 value, yours free, when you join today!

    Thank you in advance!

    #1329735

    Hey,

    Thanks for contacting us!

    Please add following code to bottom of functions.php file of your child theme – https://kriesi.at/documentation/enfold/child-theme/

    function date_shortcode() {
    	$date = date('l, F jS');
    	return $date;
    }
    add_shortcode( 'date_sc', 'date_shortcode' );

    and then use [date_sc] shortcode to display the current date :)

    Best regards,
    Yigit

    #1329742

    Great, thanks, Yigit!

    #1329777

    Hi,
    Glad Yigit was able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Possible To Display Current Date in Text Block?’ is closed to new replies.