• vladmor47

    (@vladmor47)


    In which block can you add PHP code on a page or post. I tried code blocks and html code. Does not work.

    Sincerely, Vladimir.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Kavya Gokul

    (@properlypurple)

    Hi @vladmor47 ! There’s no block available by default which would take PHP code. You can use a plugin like Lazy blocks or Code Embed to embed code like this.

    If your code doesn’t need to be put in a page or post, you can use one of these plugins to insert custom code.

    Thread Starter vladmor47

    (@vladmor47)

    Thanks for the recommendations.
    I wanted to put a hit counter on the page and do without plugins

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add PHP code to a block on a page’ is closed to new replies.