Jump to content

Archived

This topic is now archived and is closed to further replies.

Aires

FitVids Javascript plugin

Recommended Posts

Aires

I have an issue with displaying video in a slider of a plugin after contacting the developer about the problem she tells me that it is related to my themes FitVids Javascript plugin. I have search the forums and came across a bit of code to disable the fitvids but it doesn't seem to work all it does is cause my editor to not load.

 

http://mytestdesigns.pw/home-5/

 

The issue is that the video is not displaying properly. Its very tiny and I only have pagelines plugins active on this site.

 

Thanks 


ndTgvai.jpg

Visit iheartpagelines.com for the latest tutorials on PageLines related products.

 

Share this post


Link to post
Share on other sites
James B

Hi there, has the author said to do anything specific to the fitvids.js file or just disable it?

 

Is this the post you're referring to - http://forum.pagelines.com/topic/30739-can-fitvidsjs-be-disabled-from-the-theme/

 

You can disable any javascript file using a child theme and a hook. Add the following to your child functions.php inside of the child theme:

 

add_action('wp_enqueue_scripts', 'deregister_pl_fitvids', 100);
function deregister_pl_fitvids() {
wp_dequeue_script('pagelines-fitvids');
}


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
Aires

Yes thats the post I am reffering to. After adding that the editor had trouble loading.

 

And the author of layerslider exact words were 

 

The problem is related to the FitVids Javascript plugin, usually it is included in themes. It shouldn’t be related to the new version, although I’m not sure why the problem occurs now. Please contact with the author of your theme, they can help you solving this issue.


ndTgvai.jpg

Visit iheartpagelines.com for the latest tutorials on PageLines related products.

 

Share this post


Link to post
Share on other sites
Simon
well, that code would not stop the editor loading unless you pasted the code wrong, or put it in the wrong place.
By looking at the source of your page i can see that fitvids is still loading so you dont have the code in place.

Share this post


Link to post
Share on other sites
Aires

I added it back. 

 

I have a child theme for my test site so i went editor >> functions php and copy and past the code.

 

Assuming that is the right palce


ndTgvai.jpg

Visit iheartpagelines.com for the latest tutorials on PageLines related products.

 

Share this post


Link to post
Share on other sites
Aires

Because I cant see it on chrome because it wont load circle just spins and spins..but in firefox that page looks all screwed up.


ndTgvai.jpg

Visit iheartpagelines.com for the latest tutorials on PageLines related products.

 

Share this post


Link to post
Share on other sites
Simon
Well it looks like you have videos on the page that rely on it. You cant use the video shortcode without it.

What slider is it?

Share this post


Link to post
Share on other sites
Aires

Its Layerslider .... here is the thing and why I think its the slider and not DMS      http://atsgamers.com/homepage/  just update the slider and nothing changed video looks likes it is suppose to  so I am a little confused.

 

My test site only has pagelines plugins and akimset ...the site above as tons of other plugins


ndTgvai.jpg

Visit iheartpagelines.com for the latest tutorials on PageLines related products.

 

Share this post


Link to post
Share on other sites
Aires

just an update I tried the plugin with the twenty twelve theme and it works fine http://mytestdesigns.pw/home-5/   so I am still confused why it works on one dms site and not another


ndTgvai.jpg

Visit iheartpagelines.com for the latest tutorials on PageLines related products.

 

Share this post


Link to post
Share on other sites
James B

I'm looking at the site with the twentytwelve theme on and it's still showing the video small and playing over the other slide - http://screencast.com/t/eJF2XcAQkHl


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
Aires

Hi, 

Thats how the video is suppose to look I can work with that the problem is when I try to do that with certain dms sites it shows up like this  http://sabotagegaming.net/wp-content/uploads/2014/01/how_do_i_fix_this.png

 

and I cant figured out why. 


ndTgvai.jpg

Visit iheartpagelines.com for the latest tutorials on PageLines related products.

 

Share this post


Link to post
Share on other sites
Aires

I can change the width of the video through the iframe code to fit the full window when it appears like its suppose to. But like i said before this site http://atsgamers.com/homepage/ the plugin works but on my test site with nothing but DMS products it doesn't work. 


ndTgvai.jpg

Visit iheartpagelines.com for the latest tutorials on PageLines related products.

 

Share this post


Link to post
Share on other sites
Aires

Man I feel so stupid right now. I think I figured it out but I will double check after a long days work. LOL 


ndTgvai.jpg

Visit iheartpagelines.com for the latest tutorials on PageLines related products.

 

Share this post


Link to post
Share on other sites
Aires

Well after some testing it turns out that media box didnt like the layslider video and image combo it would show a image slider but screw up the video.

 

The shortcode only works in textbox and post content area. 


ndTgvai.jpg

Visit iheartpagelines.com for the latest tutorials on PageLines related products.

 

Share this post


Link to post
Share on other sites
James B

Glad you got it sorted, thank you for posting the solution.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites

×