• Resolved Dutchintouch

    (@dutchintouch)


    On this page I styled the Gutenberg Shortcode Block using HTML and CSS.

    That works, but is there a way to use the WP Date and Time shortcodes inline?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Denra.com

    (@denra)

    Hi @dutchintouch,

    If you need to use the shortcode in the page/post content simply place it in where you wish. If you need styling, you may enter the HTML edit mode for the page/post content and add some code like this:

    <span style="color:red;font-size:1.2em;">[wpdts-date-time]</span>

    In case you don’t see the shortcodes rendered in your title, content, etc. you may need to apply them by adding some filtering code in your child-themes function.php like this:

    add_filter(‘wp_title’, ‘do_shortcode’, 10);
    add_filter(‘the_title’, ‘do_shortcode’, 10);
    add_filter('the_content', 'do_shortcode', 10);
    Thread Starter Dutchintouch

    (@dutchintouch)

    Works for me.

    Thanks!

    Plugin Author Denra.com

    (@denra)

    Great! Happy New Year!

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

The topic ‘How can I create and inline shortcode’ is closed to new replies.