Use in home page
-
I’m trying to include a video background in the home page. I have a
front-page.php
file, which is executing in home page.
So I’ve created a new pagelanding
with the shortcode and then wrote in thefront-page.php
file:... <?php $page = get_page_by_title('landing'); echo $page->post_content; ...
But I’m getting a JS error:
Uncaught TypeError: $(…).vidbg is not a function
I’ve tried with different things like:
$page = get_page_by_title('landing'); $content = apply_filters('the_content', $page->post_content); echo $content;
but always get the same error. The only way to make it work is to go to the page itself. Am I missing anything or is this a bug?
I’m guessing that the some script is not called.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Use in home page’ is closed to new replies.