Jquery Anything Slider Plugin for WordPress Magazine Themes

By Matt Dunlap on June 12th, 2010 20 comments
Clip to Evernote Tags: , , , ,

There are a lot of content sliders floating around. I recently made this one for my personal website. It’s based on the Anything slider Jquery plugin. I have made available two plugins for the content slider. The slider Jquery code is the same, but the CSS style is different.

The slider will work on all WordPress websites, but the there is no way to make sure the slider looks good in all websites. This is due to the different widths and heights of websites. Therefore, I’ll try to outline the easiest way to get the content slider and the images in the slider to look their best.

After you activate the content slider plugin, first thing you will need to do it adjust the width to fit into your content sections.

  • The stylesheet for the content slider is located in a folder called css in the plugin folder.
  • I have added “border:0px solid #cc0000″ so you can set that to 1 to show a border around the elements if you just can’t seem to get it to look right. When everything looks correct. You should set the border to 0.
  • The content slider will display in a div with a class called .anythingslider. I think you can set this to 100%, but if that doesn’t work, set it to the fixed full width of the area in pixels.
  • the slides are in a class called .wrapper. This cannot be a percent, it has to be a fixed width.
  • .anythingslider ul li has to be the same width as the .wrapper class.
  • #thumbnav and #start-stop need the “top” attribute equal the .wrapper height.

That’s about it for CSS style. but you also need to make sure that your images are big enough to fit in the image section. I use two div’s in each slider. The left div shows an image from the post and the right div shoes the post title and excerpt. You can add images to the slider without having to add them to the post. I use the fullsize image, centered in the left div. You can use the built in wordpress image editor (2.9+) to make sure the image fits properly.

to display the content slider, you need to call this

<?
$number_of_posts = 10 //optional, default is 5
anything_content_slider($number_of_posts);
?>

I’m assuming that you are using a magazine style theme with this plugin. You can also download my theme be subscribing to my newsletter. It has the Anything Slider plugin included.

Confused, watch this video to see how to add images to the content slider from a post.

The first plugin uses most of the original styling from the anythingslider.

Download the plugin here

The second plugin is the one I used on my websites. The Javascript  is the same but I have a different style. This one also uses CSS3 custom fonts which might not work in all browsers… Actually I know it doesn’t work in IE.

Download the plugin here

You cannot active both plugins at the same time. They will create conflicting errors. You can add them both to your plugin directory, but only one can be activated at a time.


My next post is going to be awesome... Subscribe to my feed so you don't miss it

Large RSS Feed Button


Previous Post Next Post

20 Responses to Jquery Anything Slider Plugin for WordPress Magazine Themes

mrfresher
Comment added: 13 June, 2010 at 10:53 am

how do I edit the code to only display images and not content?

realhomeincomes
Comment added: 13 June, 2010 at 5:58 pm

The function anything_get_li is where I display the slides, you will see 2 divs. Each are set to 50% and they float left. You can set the div that holds the image to 100% and remove the second div or set the second div to display:none.

Does that help? should I post the exact code?

mrfresher
Comment added: 13 June, 2010 at 7:26 pm

yes please still confused


[...] file in the plugin. This is not the plugin, this is just an edit to a file in the plugin. get full anything slider wordpress plugin here AKPC_IDS += [...]

Matt Dunlap
Comment added: 13 June, 2010 at 8:17 pm

New post is up, with a edit to the content-slider.php file.
http://mattdunlap.org/website-development/wordpre...

Rob Fahndrich
Comment added: 13 July, 2010 at 7:03 am

can this plugin be used with Pages and NOT blog posts?


[...] you are unfamiliar with the plugin, you can read about here, and I’ve already answered one question about how to display images only in the [...]

Matt Dunlap
Comment added: 13 July, 2010 at 2:44 pm

Warren
Comment added: 25 July, 2010 at 11:26 pm

Hi Matt,
nice work, I’ve installed the plugin and can preview a post in the admin once I’ve uploaded an image as you covered in your video, but nothing happens on the live/public side of the site, how to I display anything slider on my home page or blog page?

I’m using WordPress 3.0 with the (customized) Mystique theme.
thanks
Warren

Matt Dunlap
Comment added: 26 July, 2010 at 2:11 pm

Warren, Are you calling the function?
< ?
$number_of_posts = 10 //optional, default is 5
anything_content_slider($number_of_posts);
?>

The slider is not automatically displayed… If you need help, just email me and we can fix it

Michael Bradley
Comment added: 27 July, 2010 at 2:54 am

Cool plugin. There is a missing / before the last > in the line:

<link rel="stylesheet" type="text/css" href="/wp-content/plugins/anythingslider_wordpress/css/slider.css”>

No biggie, just a validation issue.

Also, creating – .anythingSlider ul li a {display:block; height:100%;} permits the developer to easily link the pictures for picture only display slides to link to pages.

My only problem is the order of the links does not remain consistent so renaming the tabs in an attempt to keep some fluidity is still a challenge. The site is currently in dev so I can’t push the URL here for browsing. The plugin is great generally fantastic.

Matt Dunlap
Comment added: 27 July, 2010 at 8:30 pm

That is so cool that you modified it and made it better… I’ll fix my code, and make the changes

What do you mean “order of the links does not remain consistent”?

Adam
Comment added: 5 August, 2010 at 6:53 am

Hello,
I think the look of your slider is brilliant however I just have one small question……
Would it be possible to show a video instead of an image within the slider? Is that crazy hard or do you happen to know of another content slider plugin for wordpress that might do what I’m after?
Many thanks in advance

Matt Dunlap
Comment added: 5 August, 2010 at 12:31 pm

Hi,

Yes, it can show a video… or anything else. Mainly you’re just going to put a flash player to display video. But you would probably have to hardcode it, ie. can’t pull the video from a blog post.
Of course, there are issues with putting videos in the slider since the slider will probably move before the video has completed.

HTML5 is exciting because it will allow you to make sliders like the anything slider with moving video background… I would personally look into HTML5 to get the job done. It’s the future of web design.

Vin Carrillo
Comment added: 9 August, 2010 at 3:55 pm

Installed the plugin fine but when I go to a post page all I see is the header “Ad Thumbnail Image” – supposed to be “Add” maybe?

Anyways I only get the header nothing else. No box to see an image like in your video. Using WP3.0 with Thesis 1.7.

Thanks for any help!

andy
Comment added: 13 August, 2010 at 11:41 am

How do you call the function to display the slider on a specific page?
Glad to see someone finally took a stab at making the anything slider into a wp plugin!

Matt Dunlap
Comment added: 15 August, 2010 at 5:38 pm

In order to display it on a specific page, you will need to either create a template for the page, or use the php_exec plugin. I prefer the template route.

The slider will appear wherever you have this:
anything_content_slider();

optionally, you can pass a number argument for number of posts to include in the slider. defaults to 5…

andy
Comment added: 16 August, 2010 at 6:47 am

Sorry I’m still trying to get this to work. I have php_exec plugin installed and I’m trying to get the slider to show up on a page. What code do I put on the page? Or in the template file.
Thanks!

kchayka
Comment added: 16 August, 2010 at 12:59 pm

Please fix the plugin to NOT use php short open tags <?

Some of us are on servers with short tags disabled.

thank you

Matt Dunlap
Comment added: 16 August, 2010 at 1:31 pm

I’ll add it to my list of things to do

Post a Comment

Name:   
Email:   
Website:   
Comments:   
alert icon Do you need help with your website? I can offer full system admin, website development and Internet marketing services
Domain Name Deals
.COM for $1.99
With any non domain name purchase
Free Private Registration - When you buy or transfer 5 domains at opendls.com
Domain Name Reseller Accounts
Low buy rates - Very Profitable
Matt Dunlap on Why am I getting redirect loop errors with FireFox 3.6.8?
Hi, thanks for the heads up... Have you experienced this problem with any other websites? It's reall[...]
Stacy on Why am I getting redirect loop errors with FireFox 3.6.8?
I was attempting to follow your links to these tutorials from your youtube video, and I was using th[...]
Matt Dunlap on 301 redirects will lower your Google Pagerank
You want 301 redirect on same site redirects mainly to eliminate duplicate content. For example, if [...]
Kate Mag on 301 redirects will lower your Google Pagerank
great info. Does this mean that only affecting 301 redirect to another domain. I have 301 redirect t[...]
Mike Johnson - Real Estate Agent on Why is making extra money a bad habit?
Hey man, this is some great stuff. The only thing I can't figure out is why this sort of thing isn'[...]

Top Guest Bloggers

LoneWolf
View Posts | RSS

Guest Bloggers Welcome!


Powered By: Free Premium WordPress Theme | Copyright 2007 - 2010 mattdunlap.org Sitemap