PHP in Wordpress theme

mkpier20's Avatar

mkpier20

25 Dec, 2019 04:01 AM

Good evening where do I input the following code "echo get_new_royalslider(1);", do I put in in functions.php or hompage.php? I want to embed the slider into my homepage in the wordpress theme.

  1. Support Staff 1 Posted by Dmitry Semenov on 25 Dec, 2019 11:09 AM

    Dmitry Semenov's Avatar

    Hello,

    It strictly depends on your theme file structure, this might help https://developer.wordpress.org/themes/basics/template-hierarchy/#h...

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac