WordPress.org

Ready to get started?Download WordPress

Forums

jQuery Notify
[resolved] where to put php code in my template? (2 posts)

  1. Mo7sin
    Member
    Posted 1 year ago #

    i tried to include your php code to my single post template

    i tried it different ways but it doesn't work

    $content = "<h3>This is the content</h3><p>And this is some more</p>"
    		jq_notify($content, "default", 2000, 500, );

    and

    <?php $content = "<h3>This is the content</h3><p>And this is some more</p>"
    		jq_notify($content, "default", 2000, 500, ); ?>

    so what am i doing wrong here?

    thanks

    http://wordpress.org/extend/plugins/jquery-notify/

  2. Bryce Corkins
    Member
    Plugin Contributor

    Posted 1 year ago #

    I wouldn't recommend modifying your template files if you're not comfortable with PHP. The second example you posted is close.. but you need to have a closing semicolon after the first line.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.