• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

BUG php snippets not working in sidebars/header bars

scootz

New member
Messages
1
Likes
0
Points
1
#1
I trying to insert a php snippet into either the sidebars or header area. The code is super simple and is the content that goes into the snippet. I use [hello test="here"] as an example. Nothing done on the attribute. I just want it to print hello.

Code:
    <?php
        echo "hello";
The snippet doesn't get executed? Is this by design that php snippets don't get executed in sidebar/headers? Have any ideas?

*EDIT* I changed the widget from a custom html to just plain text and it is working as needed. This is partially solved.
 
Last edited:

Temyk

Support team
Staff member
Messages
186
Likes
12
Points
18
#2
Hi,

Do you add snippet shortcodes to the widget? If so, the widgets shortcodes work.

If the problem is not solved yet, send screenshots of snippet settings and the place where you insert it