• Resolved ferda2

    (@ferda2)


    Hi, the shortcode only works on a separate page (header template). Only [hello] is displayed on the website. I am using the Astra template. Please, give me an advice. Thank you.

    function test_shortcode() {
    return ‘Hello …’;
    }
    add_shortcode(‘hello’, ‘test_shortcode’);

    <div class=”hello”>[hello]</div>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Herman Asrori (BSF)

    (@bsfherman)

    Hi @ferda2,

    The code you shared is PHP code, not shortcode.

    Actually, what are you trying to achieve?

    I look forward to hearing from you.

    Kind regards,
    Herman ??

    Plugin Support Herman Asrori (BSF)

    (@bsfherman)

    Hi,

    It’s been a while since my last response, and we haven’t heard anything from you since then. I am marking this thread as Resolved due to inactivity.

    Feel free to reply back to this thread if you still any assistance regarding this matter.

    Kind regards,
    Herman ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.