I think you can use this code <?php echo do_shortcode(‘[metaslider id=”112″]’); ?> replacing the id value with your own ID.
Hi @raozkardes,
The code that @vitralsolutions should work, but let us know if you’re still having an issue. Thanks!
There is no trouble with the code. I adapted it to work. I will share the theme’s headr.php code. Could you customize the code that will run smoothly for this theme?
——————— header.php ———————-
[ redacted ]
-
This reply was modified 8 years, 1 month ago by
Jan Dembowski. Reason: Redacted unreadable header.php
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
Don’t post large sections of code past 10 lines. It doesn’t work.
*Looks*
It’s this theme.
https://ww.wp.xz.cn/themes/graphene/
The header.php should be this one.
https://themes.trac.ww.wp.xz.cn/browser/graphene/2.4.1/header.php
Hi @raozkardes,
It looks like you have it working now in the header. If you need to add it to the header.php file, it just depends on your preference. Maybe line 57? You should just try out a few places and pick what looks best. I’ll mark this as resolved, but let us know if you have any more issues.