0

May I know if I can insert curtain plugin on a page. For example, if I edit page header.php. How do I want to insert a plugin on that page. The plugin that I want to use is Huge IT Image Gallery.

I tried to edit header.php and insert the code such as [huge_it_gallery id="4"] provided by the plugin, but the image gallery did not appear. Do I need to insert a <script></script> or the plugin directory on my header.php page.

I am new and still studying on the wordpress development.

2
  • 1
    do_shortcode() will trigger a shortcode. Otherwise it typically only happens in post content.
    – jgraup
    Commented Aug 17, 2016 at 6:50
  • Thanks for the details @jgraup. Do you have an example on how to use it for my case?
    – Amran
    Commented Aug 17, 2016 at 7:08

1 Answer 1

0

do_shortcode Is a function which executes shortcodes in WordPress

In your case you should use it in your header.php file as the following:

<?php echo do_shortcode('[huge_it_gallery id="4"]'); ?>
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.