treehouse : what would you like to learn today?
Web Design Web Development iOS Development

cybershot

send me your email
  • js in WordPress

    if you are not using wp_enqueue_script to include your scripts then you are doing it wrong. Just make a backup copy of the functions.php file that way if you screw it up, you can always fix it. Not using the wp_enqueue_script can mess up other plugi…
    Comment by cybershot June 2012 permalink
  • Gallery display problems in IE

    well, I would start by removing the images from the table. There is no reason to have one in your site. I would then replace that purlple background as it makes your site hard to read. The contrast between it and the text is terrible. In fact, you m…
    Comment by cybershot June 2012 permalink
  • js in WordPress

    if you are including js files into wordpress, you should be using wp_enqueue_script in your functions.php file. You could even take it a step further and use conditionals for your page http://codex.wordpress.org/Function_Reference/wp_enqueue_script…
    Comment by cybershot June 2012 permalink
  • PHP is pulling my post in twice

    Your welcome
    Comment by cybershot June 2012 permalink
  • javascript help - difficulty level = high

    I tried your fix and it works. Thank you very much. Can you explain why it works?
    Comment by cybershot June 2012 permalink
  • PHP is pulling my post in twice

    try using the wp_reset_query(); after the endwhile http://codex.wordpress.org/Function_Reference/wp_reset_query
    Comment by cybershot June 2012 permalink
  • Slider

    have your friend post on the authors page in themeforest and ask the author for that information. Most sliders have the options to be automated. That one probably does as well. It should be in the documentation.
    Comment by cybershot June 2012 permalink
  • help with logic

    @Michael_bonds It's the sortable gallery. When you choose a category that an image isn't set to display in, the gallery hides the image. I didn't know until today that nth-child would still see that image @Joshuanhibbert Your fix w…
    Comment by cybershot June 2012 permalink
  • help with logic

    http://www.themebuddies.com/templates/Sider/gallery.html This is a template that I am working on. If you check the games category, you can see how it is messed up by my current styles /* the styles for the images in the gallery */ #main-content …
    Comment by cybershot June 2012 permalink
  • help with logic

    I got display block, float left
    Comment by cybershot June 2012 permalink
  • help with logic

    @joshuanhibbert I thought the same as you. Simple math. But when I do that math, I get a different number than what actually works. That is why I was looking for the actual equation. I posted the question on a math forum also.
    Comment by cybershot June 2012 permalink
  • help with logic

    yes, it does line up good. the question is - How do you determine what left-margin to put on the images? I figured it out by nudging the images 1px at a time until the layout didn't break. I would have thought you could figure it out by doing t…
    Comment by cybershot June 2012 permalink
  • help with borders

    Yes, thank you. That is the fix I was looking for.
    Comment by cybershot June 2012 permalink
  • help with borders

    I guess that would work but then what happens if this turns into a wordpress theme. It would be hard to add that class to the last tab every time. I had hoped there would be a way so that if another tab was added, you wouldn't have to add a cla…
    Comment by cybershot June 2012 permalink
  • prevent page jump with tabs and toggle

    I got it working. Turns out that the e.preventDefault(); needs to be inside the .click. So this does not work $(document).ready(function(e) { e.preventDefault(); var $toggle = $('.toggle-button a'), $togglePane = $('.toggle-p…
    Comment by cybershot May 2012 permalink
  • help with positioning

    it's not that I insist on doing it the other way, it's just that I wanted to try another way. See if I could nail it down. In the end, I did end up floating it.
    Comment by cybershot May 2012 permalink
  • jquery toggle

    Thanks for the support. I got it all working. toggleClass was a good idea
    Comment by cybershot May 2012 permalink
  • jquery toggle

    do you know how to remove the class you added in your code? I tried this var $toggle = $('.toggle-button a'), $togglePane = $('.toggle-pane'); $toggle.addClass('toggle-inactive'); $toggle.on('click', fu…
    Comment by cybershot May 2012 permalink
  • jquery toggle

    I haven't used it much for javascript. I guess I should learn
    Comment by cybershot May 2012 permalink
  • jquery toggle

    I got it to work. I moved the code from an external file into the actual file in the head and now it works. I don't know why it won't run from the custom .js file in the js folder but it will from the head.
    Comment by cybershot May 2012 permalink
  • jquery toggle

    I don't get it. I tried your code and even removed all other script tags from the page. I even viewed the source code of the js fiddle page and grabbed the jquery script it's using. Still don't get the toggle to work.
    Comment by cybershot May 2012 permalink
  • help with some jquery

    My multiple ul's made more sense in an earlier version of my code. Now I see that it does make more sense to get rid of them and have just the one. Thanks for the code. That is what I was trying to accomplish
    Comment by cybershot May 2012 permalink
  • help with some jquery

    that didn't work
    Comment by cybershot May 2012 permalink
  • scrolling thumbnails

    no. there is no code posted above. without the code, there is nothing we can help you with. Is it run by javascript, jquery, php? is it just html you need help with? You see, without those answers, there is no way to help you.
    Comment by cybershot May 2012 permalink
  • jQuery problem with Nivo Slider

    send me an email with the information I need to connect to your site. username, password, ftp password and url's I will fix up your files
    Comment by cybershot May 2012 permalink
  • jQuery problem with Nivo Slider

    You also have in your slider it says effect: 'fold' try changing that to mode: 'horizontal' or mode 'fold' or effect: 'horizontal'
    Comment by cybershot May 2012 permalink
  • jQuery problem with Nivo Slider

    yes, it should be either .slider or #sliderPego
    Comment by cybershot May 2012 permalink
  • jQuery problem with Nivo Slider

    try jQuery(document).ready(function() instead of jQuery(window).load(function()
    Comment by cybershot May 2012 permalink
  • jQuery problem with Nivo Slider

    did you buy this theme from someone?
    Comment by cybershot May 2012 permalink
  • jQuery problem with Nivo Slider

    You also have a crap load of css in the header. That should not be there. You should link it to a css file
    Comment by cybershot May 2012 permalink