[resolved] use jquery slideshow without using media gallery? (1 post)

  1. jodielocklear
    Posted 3 years ago #


    I'm new to wp and attempting my first custom HTML/CSS to wp custom theme conversion.

    I have a slideshow plugin (Really Simple Slideshow by Really Simple) that I only want to use on the home page in the content section and I don't want it to pull images from the media gallery or be updatable. I want it to be hardcoded on the homepage. (The images are currently a list in the html)

    I've styled it using CSS and it works and looks great on the HTML version of the site, but when I copy the html code for the show into my home.php file it shows up as a broken image? I've added the js files to the function.php file and several other suggestions I've found from googling, but can't figure out what I'm doing wrong?

    Any help is greatly appreciated!! Thanks

    The html:

    <div class="rs-slideshow">
    				<div class="slide-container">
    					<img src="/images/introMain1.png" alt="Our DJs will ROCK your EVENT!" title="">
    				<ol class="slides">
    						<a href="/images/introMain1.png"
    						<a href="/images/introMain2.png"
    						<a href="/images/introMain3.png"
    						<a href="/images/introMain4.png"
    			</div> <!-- End rs-slideshow -->

    PHP in funcion.php:

    if ( !function_exists(core_mods) ) {
    		function core_mods() {
    			if ( !is_admin() ) {
    				wp_register_script('jquery', ("//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"), false);
    				wp_register_script('myscript', get_bloginfo('template_directory') , "/js/bootstrap.js");
    				wp_register_script('myscript', get_bloginfo('template_directory') , "/js/jquery.rs.slideshow.js");

    The script: (I've tried putting it in the header and home file, and neither works)

    <script src="<?php bloginfo('template_url'); ?>/js/jquery.rs.slideshow.js"></script>
    	<script src="<?php bloginfo('template_url'); ?>/js/bootstrap.js"></script>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum's parser.]

    [No bumping, thank you.]

Topic Closed

This topic has been closed to new replies.

About this Topic