- This topic is empty.
-
AuthorPosts
-
January 27, 2012 at 6:40 pm #95584MottieMember
I still don’t see an anytingslider.css file. Also setting the slideshow with “playRtl” set to true, does more than just switch the slideshow direction – it messes around with the page rtl (right-to-left) settings for languages that are read from right-to-left. So, you should set that to false.
January 27, 2012 at 6:55 pm #95588dj_hikingMemberhere is my css. it is in the style.css file…
#slide2 {
float:left;
z-index: 99;
margin-left: -18px;
}
#homeslider {
margin: 20px;
border: 8px solid #FFF;
position: absolute;
height: 400px;
width: 600px;
background-color: #CCC;
box-shadow: 0 0 3px #888888;
}
#slidershadow {
height: 455px;
width: 655px;
background-image: url(images/featured-curved-shadow.png);
background-repeat: no-repeat;
background-position: center bottom;
position: absolute;
}January 27, 2012 at 6:56 pm #95589dj_hikingMemberI also changed the setting to false on right to left.
January 27, 2012 at 7:51 pm #95592MottieMemberHere is the stylesheet you are still missing: https://github.com/ProLoser/AnythingSlider/blob/master/css/anythingslider.css
/*
AnythingSlider v1.7+ Default (base) theme
By Chris Coyier: https://css-tricks.com
with major improvements by Doug Neiner: http://pixelgraphics.us/
based on work by Remy Sharp: http://jqueryfordesigners.com/
*/
/*****************************
SET DEFAULT DIMENSIONS HERE
*****************************/
/* change the ID to match your slider */
#slider {
width: 700px;
height: 390px;
list-style: none;
/* Prevent FOUC (see FAQ page) and keep things readable if javascript is disabled */
overflow-y: auto;
overflow-x: hidden;
}
/*****************
SET COLORS HERE
*****************/
/**** Default state (no keyboard focus) ****/
/* slider window - top & bottom borders, default state */
div.anythingSlider .anythingWindow {
border-top: 3px solid #777;
border-bottom: 3px solid #777;
}
/* Navigation buttons, default state */
div.anythingSlider .anythingControls ul a.cur, div.anythingSlider .anythingControls ul a {
background: #777;
color: #000;
}
/* start-stop button, stopped, default state */
div.anythingSlider .start-stop {
background-color: #040;
color: #fff;
}
/* start-stop button, playing, default state */
div.anythingSlider .start-stop.playing {
background-color: #800;
}
/* start-stop button, default hovered text color (when visible) */
div.anythingSlider .start-stop:hover, div.anythingSlider .start-stop.hover {
color: #ddd;
}
/**** Active State (slider has keyboard focus) ****/
/* slider window - top & bottom borders, active state */
div.anythingSlider.activeSlider .anythingWindow {
border-color: #7C9127;
}
/* Navigation buttons, active state */
div.anythingSlider.activeSlider .anythingControls ul a.cur, div.anythingSlider.activeSlider .anythingControls ul a {
background-color: #7C9127;
}
/* start-stop button, stopped, active state */
div.anythingSlider .start-stop {
background-color: #080;
color: #fff;
}
/* start-stop button, playing, active state */
div.anythingSlider .start-stop.playing {
background-color: #d00;
}
/* start-stop button, active slider hovered text color (when visible) */
div.anythingSlider .start-stop:hover, div.anythingSlider .start-stop.hover {
color: #fff;
}
/***********************
COMMON SLIDER STYLING
***********************/
/* Overall Wrapper: 45px right & left padding for the arrows, 28px @ bottom for navigation */
div.anythingSlider {
display: block;
margin: 0 auto;
overflow: visible !important; /* needed for Opera and Safari */
position: relative;
padding: 0 45px 28px 45px;
}
/* anythingSlider viewport window */
div.anythingSlider .anythingWindow {
overflow: hidden;
position: relative;
width: 100%;
height: 100%;
}
/* anythingSlider base (original element) */
.anythingBase {
background: transparent;
list-style: none;
position: absolute;
overflow: visible !important;
top: 0;
left: 0;
margin: 0;
padding: 0;
}
/* all panels inside the slider */
.anythingBase .panel {
background: transparent;
display: block;
overflow: hidden;
float: left;
padding: 0;
margin: 0;
}
.anythingBase .panel.vertical {
float: none;
}
/* Navigation Arrows */
div.anythingSlider .arrow {
top: 50%;
position: absolute;
display: block;
}
div.anythingSlider .arrow a {
display: block;
height: 140px;
margin: -70px 0 0 0; /* half height of image */
width: 45px;
text-align: center;
outline: 0;
background: url(../images/default.png) no-repeat;
}
/* hide text, target the span so IE7 doesn't text-indent the link */
div.anythingSlider .arrow a span { display: block; visibility: hidden; }
/* back arrow */
div.anythingSlider .back { left: 0; }
div.anythingSlider .back a { background-position: left top; }
div.anythingSlider .back a:hover, div.anythingSlider .back a.hover { background-position: left -140px; }
div.anythingSlider .back.disabled { display: none; } /* disabled arrows, hide or reduce opacity: opacity: .5; filter: alpha(opacity=50); */
/* forward arrow */
div.anythingSlider .forward { right: 0; }
div.anythingSlider .forward a { background-position: right top; }
div.anythingSlider .forward a:hover, div.anythingSlider .forward a.hover { background-position: right -140px; }
div.anythingSlider .forward.disabled { display: none; } /* disabled arrows, hide or reduce opacity: opacity: .5; filter: alpha(opacity=50); */
/* Navigation Links */
div.anythingSlider .anythingControls { outline: 0; display: none; }
div.anythingSlider .anythingControls ul { margin: 0; padding: 0; float: left; }
div.anythingSlider .anythingControls ul li { display: inline; }
div.anythingSlider .anythingControls ul a {
font: 11px/18px Georgia, Serif;
display: inline-block;
text-decoration: none;
padding: 2px 8px;
height: 18px;
margin: 0 5px 0 0;
background-image: url(../images/default.png);
background-position: center -288px ;
background-repeat: repeat-x;
text-align: center;
outline: 0;
border-radius: 0 0 5px 5px;
-moz-border-radius: 0 0 5px 5px;
-webkit-border-radius: 0 0 5px 5px;
}
div.anythingSlider .anythingControls ul a:hover {
background-image: none;
}
/* Navigation size window */
div.anythingSlider .anythingControls .anythingNavWindow { overflow: hidden; float: left; }
/* slider autoplay right-to-left, reverse order of nav links to look better */
div.anythingSlider.rtl .anythingControls ul a { float: right; } /* reverse order of nav links */
div.anythingSlider.rtl .anythingControls ul { float: left; } /* move nav link group to left */
div.anythingSlider.rtl .anythingWindow {
direction: ltr;
unicode-bidi: bidi-override;
}
/* div.anythingSlider.rtl .start-stop { float: right; } */ /* move start/stop button - in case you want to switch sides */
/* Autoplay Start/Stop button */
div.anythingSlider .start-stop {
background-image: url(../images/default.png);
background-position: center -288px;
background-repeat: repeat-x;
padding: 2px 5px;
width: 40px;
text-align: center;
text-decoration: none;
float: right;
z-index: 100;
outline: 0;
border-radius: 0 0 5px 5px;
-moz-border-radius: 0 0 5px 5px;
-webkit-border-radius: 0 0 5px 5px;
}
/* hide cell shading on hover - makes the button appear to come forward */
div.anythingSlider .start-stop:hover, div.anythingSlider .start-stop.hover { background-image: none; }
/* probably not necessary, but added just in case */
div.anythingSlider, div.anythingSlider .anythingWindow, div.anythingSlider .anythingControls ul a, div.anythingSlider .arrow a, div.anythingSlider .start-stop {
transition-duration: 0;
-o-transition-duration: 0;
-moz-transition-duration: 0;
-webkit-transition-duration: 0;
}January 30, 2012 at 11:49 am #95707dj_hikingMemberI added the above css to the style.css – previously I was just adding it to the anythingslider.css, because adding it to style.css didn’t make any changes. It is now working… However, when I go into the Anything Slider plugin settings and make any changes the slider stops working. I can get it to work again by deactivation the plugin and reactivating it. but I can’t style, add/subtract nav, etc. or it breaks. I tried installing another slider (easing slider) as a test and it also did not work correctly. There appears to be some offending code somewhere on the back end that conflicts with the jquery code.
January 30, 2012 at 12:10 pm #95708dj_hikingMemberIt is working. I just need to make all the style settings in the php instead of the Anything Slider plugin settings. Thanks for all your help Mottie. Hopefully the client will just let us rebuild the site from scratch soon so we don’t have to deal with all the leftover code that obviously is the problem. Thanks again.
February 9, 2012 at 10:30 pm #96502daithiMemberHello,
I’m having a similar problem. I’m trying to use Dreamweaver CS5 to create & edit a WordPress site. I have WAMP installed on my computer. The homepage slider is stacking the photos instead of sliding them. I’ve tried 3 different WordPress themes but I get the stacking problem which ever theme I use. The strange thing is, when I preview the site in Dreamweaver using “live view” (WebKit browser) it displays properly. But with every other browser (IE, Firefox, Chrome, Opera) I get the stacking problem. Sorry I can’t give a link to the site but it’s not online at this point. I’m working with a fresh install of WordPress with no plugins. I’m pretty much a novice with all this stuff. Anyone have an idea what the problem might be?
Below is a copy of my featured.php file:
$ids = array();
$featured_cat = get_option('deepfocus_feat_cat');
$featured_num = (int) get_option('deepfocus_featured_num');
if (get_option('deepfocus_use_pages') == 'false') query_posts("showposts=$featured_num&cat=".get_cat_ID($featured_cat));
else {
global $pages_number;
if (get_option('deepfocus_feat_pages') <> '') $featured_num = count(get_option('deepfocus_feat_pages'));
else $featured_num = $pages_number;
query_posts(array
('post_type' => 'page',
'orderby' => 'menu_order',
'order' => 'ASC',
'post__in' => (array) get_option('deepfocus_feat_pages'),
'showposts' => $featured_num
));
} ?>
global $post; ?>
$width = 960;
$height = 447;
$titletext = get_the_title();
$thumbnail = get_thumbnail($width,$height,'',$titletext,$titletext,false,'Featured');
$thumb = $thumbnail["thumb"];
print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, ''); ?>
ID; endwhile; endif; wp_reset_query(); ?>
February 9, 2012 at 11:49 pm #96504daithiMemberThis is what I get in the Firefox error console:
Error: missing } after function body
Source File: http://wp_1/wp-includes/js/jquery/jquery.js?ver=1.7.1
Line: 5, Column: 28300Error: jQuery is not defined
Source File: http://wp_1/wp-content/themes/DeepFocus/epanel/shortcodes/js/et_shortcodes_frontend.js?ver=2.0
Line: 245and a bunch more “jQuery is not defined”
February 10, 2012 at 6:23 am #96513MottieMemberHI daithi!
I’ll need to see the javascript contained in the head section of your page to be 100% sure, but it sounds like you’re just missing a bracket. Make sure the opening and closing brackets match up. So when you initialize the slider, it should be wrapped and the options should have matching brackets like this:
// document ready - opening ( and {
$(function(){
$('#slider').anythingSlider({ // initialization options - opening ( and {
// bunch o' options here
}); // slider options - closing } and ) - the order is reversed here
}); // document ready - closing } and } - reversed order (curly bracket then parenthesis)
If that doesn’t solve the “jQuery is not defined” issue then you might be using another library like Prototype? If that is the case, then make sure you include jQuery no conflict mode:
But now instead of using “$” in the code above, use “jQuery” in it’s place.
September 20, 2012 at 9:43 pm #110465silverliebtParticipantMottie: I’m wondering if you could look at my similar issue (slides stacking not sliding).
Background: On our old server (media temple dv 3.5) it is working great:
http://205.186.143.51/slideshows/branding.phpOn the new server I get the stacking issue:
http://64.207.157.17/slideshows/branding.phpBoth are LAMP setups. I’m at a loss re. why anythingslider w/out any code changes works at one and not the other.
September 21, 2012 at 8:12 am #110498MottieMemberHi @silverliebt!
The anythingslider.js file is missing:
> http://64.207.157.17/js/anythingslider/js/jquery.anythingslider.js 404 (Not Found)
Everything else looks okay :)
September 21, 2012 at 3:44 pm #110529silverliebtParticipantThanks Mottie, that did the trick. Really appreciate the help.
October 2, 2012 at 9:33 am #111150ddshivaMemberHello all,
I’m using slides on my site that works in firefox. I’m having trouble running the slideshow in Chrome browser and couldn’t hide play buttons. . The site URL ishttps://docs.google.com/document/d/15U4nfriIwJfAOssDKETKukDMiHsBIvNvxsBxwoQdP1Q/edit
Any help is greatly appreciated.
October 2, 2012 at 7:17 pm #111182 -
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.