WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] dynamic content gallery works only in homepage (1 post)

  1. wp-beginner
    Member
    Posted 1 year ago #

    i'm using dynamic content gallery plugin for wordpress (http://wordpress.org/extend/plugins/dynamic-content-gallery-plugin/) but i found out that it works only in homepage, other pages display the titles and images in the page as this plugin doesn't exist. i'm using this function to recall it in index , page and single files

    dynamic_content_gallery();

    when i viewed the source for these files i found that the homepage only has this code in the head while other pages don't have this code at all

    <link type="text/css" rel="stylesheet" href="http://localhost/news/wp-content/plugins/dynamic-content-gallery-plugin/js-mootools/css/jd.gallery.css" />
    <script type="text/javascript" src="http://localhost/news/wp-content/plugins/dynamic- content-gallery-plugin/js-mootools/scripts/mootools-1.2.4-core-jm.js"></script>
    <script type="text/javascript" src="http://localhost/news/wp-content/plugins/dynamic-content-gallery-plugin/js-mootools/scripts/mootools-1.2.4.4-more.js"></script>
    <script type="text/javascript" src="http://localhost/news/wp-content/plugins/dynamic-content-gallery-plugin/js-mootools/scripts/jd.gallery_1_2_4_4.js"></script>
    <script type="text/javascript" src="http://localhost/news/wp-content/plugins/dynamic-content-gallery-plugin/js-mootools/scripts/jd.gallery.transitions_1_2_4_4.js"></script>
    <script type="text/javascript">
    function startGallery() {
    var myGallery = new gallery($("myGallery"), {
    showArrows: true,
    showCarousel: true,
    showInfopane: true,
    timed: true,
    delay: 9000,
    defaultTransition: "fade",
    slideInfoZoneOpacity: 0.7,
    slideInfoZoneSlide: true,
    textShowCarousel: "Featured Articles"
    });
    }
    window.addEvent("domready",startGallery);
    </script>

Topic Closed

This topic has been closed to new replies.

About this Topic