Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Ricardo Granda
Ricardo Granda
6,288 Points

Jquery Slider working wrong

Hi Guys, Nice to meet all of you, I'm a newbie in this awesome world of web developing and programming and I got a problem with some Jquery Slider I'm doing myself in wordpress. The slider in the inner pages and post starts to work correctly but after a while, I don't know why, there are problems during transition. There are also a couple of issues I don't entirely understand: when working in local host I called to my scripts by using <script type="text/javascript" src=".../xfile.js"></script> and it called it as a source, but when I uploaded the theme in the browser, it embeds the code in the fron-end page and in add a style to it: display: none, so the code look like this <script type= "text/javascript" style="display:none"> my script </script> Do any of you have an idea why all of this happens? I know maybe this is some basic statements, but as I mentioned before, I am a newbie and I'm discovering developing step by step. check the website I am talking about : http://www.roxanacasas.com/fotografia By the way, I need to implement some changes, for example, the site url does not show the slider background (maximage), so if you have any clue on it. Thanks!!! Many thanks to all! Regards.

3 Answers

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Hi Ricardo,

I didn't see what you were referring to with the problems during transitions. It seems to be transitioning okay for me?

As for the local/live server issue. I didn't completely understand your explanation of the problem. Would you mind outlining one more time exactly what's happening, including how you are linking to all of your slider files.

Adding jQuery sliders to WordPress is something we're covering in our new How to Build a WordPress Theme series, but the actual videos covering the topic won't be out for a little bit so they probably won't help in the short term :(

Casey Ydenberg
Casey Ydenberg
15,622 Points

It looks great to me ... could it be cross-browser implementation? Maybe try adding normalize.css to your stylesheets?

Ricardo Granda
Ricardo Granda
6,288 Points

Hey Casey you were right! Now it's working pretty good! Many thanks to both of them. I hope the Wordpress Tutorial videos will be available ASAP. Many thanks!

Richard,