Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get it work, period. #201

Open
mychiefs58 opened this issue Nov 19, 2014 · 3 comments
Open

Can't get it work, period. #201

mychiefs58 opened this issue Nov 19, 2014 · 3 comments

Comments

@mychiefs58
Copy link

I'm sure I'm an idiot, missing something plain as day, but after not being able to make this work, I pretty much copied and pasted the exact contents from the demo.html that comes in the plugin package. The only changes were to put my page content into the content area.

http://www.cmslaser.com/plugin-test-page

I'm seeing tabs but the tab links are acting like basic element # tags, dropping the page to those id's. I've checked the source code and the .js files are present. It's a Wordpress site, so I don't know if that's causing part of the issue or not. I've got no idea...

@draecko
Copy link

draecko commented Nov 20, 2014

First of, jQuery is not included on your page. It gets a 404 on the jQuery you're trying to source, so make sure it's in the right place.
Secondly, you only need to include easytabs once; jquery.easytabs.min.js is the same as the other one, except the .min. is compressed.
Thirdly, I think you are supposed to include your 'panels' (the divs you're trying to switch between) within your div id=tab-container.

Errror

@mychiefs58
Copy link
Author

thanks for the help. 9 straight days of working on code between two projects had me miss .min. in the two missing files and an extra

tag.

now i have a different problem. it's all looking great upon load, but when i switch tabs, the video and image galleries don't show up. they do if i refresh the page. is there a way to make the content refresh on tab switch?

@ahendri
Copy link
Contributor

ahendri commented Nov 26, 2014

You can bind a callback function to easytabs:after and do the refreshing in that function. Please have a look at the events hooks documentation: http://os.alfajango.com/easytabs/#event-hooks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants