gl3on Posted October 27, 2010 Share Posted October 27, 2010 Hi!I have been trying to modify the "Accessible News Slider" js that comes with the Minimalist theme.I want to have the categories expanded all the time, but I cant figure out what to remove in the code.There is one link with expand mode, and one closed mode. I would like to have it expanded by default when entering the front page.Hope this piece of code is enough. The script: return false; }); $next.css( "display", "block" ) .parent().after( [ " ", settings.headline," ( expand )" ].join( "" ) ); jQuery( ".view_all > a, .skip_to_news > a", $this ).click(function() { var skip_to_news = ( jQuery( this ).html() == "Skip to News" ); if ( jQuery( this ).html() == "expand" || skip_to_news ) { ul.css( "width", "auto" ).css( "left", "0" ); $next.css( "display", "none" ); $back.css( "display", "none" ); if ( !skip_to_news ) { jQuery( this ).html( "close" ); } } else { if ( !skip_to_news ) { jQuery( this ).html( "expand" ); } ul.css( "width", ( li.length * liWidth ) ); $next.css( "display", "block" ); } return false; $next.css( "display", "none" ); $back.css( "display", "none" ); }); } }; Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now