Trying to use shortcode directly into php file
-
I want to use the theme logo to open a video instead of leading to the homepage.
I modified a php file and succeeded in opening a self hosted video. But what I’d like to do is to use a lightbox effect.This is the code I used without the help of the plugin:
`<div class=”logo-image <?php echo $logo_decoration_class; ?>”>
<div class=”logo-img-wrapper”>
<!– ADDED LINK /–>
<a href=”https://avotreboncoeur.com/wp-content/uploads/2016/04/Star-Wars-crawl.m4v”>
<img src=”<?php echo $this -> src;?>” alt=”” />
</a>
</div>
</div>`And this is what I tried to use with the plugin:
<div class=”logo-image <?php echo $logo_decoration_class; ?>”>
<div class=”logo-img-wrapper”>
<!– ADDED LINK /–>
<img src=”<?php echo $this -> src;?>” alt=”” />
</div>
</div>It didn’t work. The black loading square appears, but after a few seconds it frezees.
This is my work-in-progress website.
Could someone suggests a solution? Possibly one that implements autoplay?
Thank you for your attention.
https://www.ads-software.com/plugins/responsive-lightbox-lite/
- The topic ‘Trying to use shortcode directly into php file’ is closed to new replies.