• Hello I have this PHP code:

    <?php get_template_part( ‘code’,’bigger’ ); ?>

    I would like to use with King Composer, and with the element ‘raw code’

    How can achieve this?

    Thanks in advance

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi lpalmeida,

    Did you try that code to Raw Code element?

    You can put the PHP code in there.

    Hope that convenient for your plan.

    Best regards,

    Anthony

    Thread Starter lpalmeida

    (@lpalmeida)

    Hello again,

    Thanks for your quick response. But is not working, maybe i have some restrictions writing PHP on the admin panel… i will check if there is… but normally the Element Raw Code work with PHP, right?

    Thanks

    Thread Starter lpalmeida

    (@lpalmeida)

    UPDATE: Solution

    The only way to make it working it was with a plugin “Insert PHP” and using Text Block Element (KingComposer)

    • This reply was modified 6 years, 6 months ago by lpalmeida.

    Hi lpalmeida,

    Yes, I confirmed that. The Raw code works with HTML/CSS and Javascript only.

    Best regards,

    Anthony

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP inside raw code element’ is closed to new replies.