Need help inserting slider into WP theme
-
Hello. New to the forum.
I’ve been working with wordpress over the past month or so and have integrated what previous knowledge I had on html/css coding pretty seamlessly until now.
I recently build a slider with the hope of integrating it into my front page. I’m using a responsive theme build by cyberchimbs that can be found here (#2): https://www.techgadget.org/top-10-free-wordpress-themes/
My intent was to swap out the front page image for the slider that I built. I’ve included all the html, css and java into one html document. My problem is that I don’t know how/where to include each of the different sections of my code (jave, css, html) into my theme’s code to get the slider working properly.
I would genuinely appreciate any guidance on this topic.
Thanks wordpress forum!
My code is as follows:
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>slider</title>
<script type=”text/javascript” src=”jquery.js”></script>
<script type=”text/javascript” src=”jquery_cycle_plugin.js”></script>
<script type=”text/javascript”>
$(‘#slider’).cycle({
fx: ‘scrollHorz’,
speed: ‘slow’,next: ‘#next’,
prev: ‘#prev’
});
</script><style type=”text/css”>
#slider_wrapper {
display: block;
height: 300px;
width: 440px;
margin: auto;
}
#container {
background-color: #FF9;
display: block;
float: left;
height: 300px;
width: 440px;
overflow: auto;
}
#prev {
background-image: url(left-arrow.png);
background-repeat: no-repeat;
background-position: center center;
display: block;
float: left;
height: 300px;
width: 61px;
position: relative;
z-index: 99;
}
#next {
background-image: url(right-arrow.png);
background-repeat: no-repeat;
background-position: center center;
display: block;
float: right;
height: 300px;
width: 61px;
position: relative;
z-index: 99;
}
#slider {
display: block;
float: left;
height: 300px;
width: 440px;
overflow: hidden;
position: absolute;
}
</style>
</head><body>
<div id=”slider_wrapper”>
<div id=”container”>
<div class=”controller” id=”prev”></div>
<div id=”slider”>
<img src=”758.jpg” width=”440″ height=”300″ />
<img src=”Annuli_on_scallop_shell.jpg” width=”440″ height=”300″ />
<img src=”Scallop_dredge.jpg” width=”440″ height=”300″ />
</div>
<div class=”controller” id=”next”></div>
</div>
</div>
</body>
</html>
- The topic ‘Need help inserting slider into WP theme’ is closed to new replies.