Hi all, I'm trying to convert my shop buttons to css sliding door/sprites. I'm using the ccs buttons addon.
I managed it with link buttons by adding <a class="button".... to the appropriate template file. Need being to have a nested span tag inside the element. (hope I'm using all the right terminology here)
My problem is trying to get it to work with non-link buttons, like 'add to cart.' I'm getting close by hacking at my css_buttons.php file, like this... (buttonnub being where my second image will be)
I'm sure anyone with php knowledge can see the problems with that, I can see that it adds the second image in a deformed way, but unsure how to get it to work as a second styleable entity. It also throws a lot of invalid errors at me.Code:// replaced <input />s by <button></button>s //$css_button = '<input' . $class . ' type="submit" value="' .$text . '"' . $parameters . ' />'; $css_button = '<buttonnub' . $class .'>'.'<button' . $class . ' type="submit" value="' .$text . '"' . $parameters . '>' . $text . '</button>'.'</buttonnub>'; }
I think I'm barking up the right tree here as this does handle all the non-link buttons at once, but unsure if this method will be doable.
If anyone has accomplished this, or knows how I might manage it, I'd appreciate a few hints.
Thanks,
David
http://countrytothecore.net
Bookmarks