Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2016
    Location
    Savannah, Georgia
    Posts
    9
    Plugin Contributions
    0

    Idea or Suggestion Adding slideshow javascript crashes my mobile menu

    I cannot seem to add anything to the header section without crashing my mobile menu causing it to display like a site map instead of correctly.
    I am simply trying to add the following to the html_header.php file in /includes/templates/responsive_classic/
    HTML Code:
      } else if ( $_SESSION['layoutType'] == 'full' ) {
        echo '';
      } else {
        echo $responsive_default;
      }
    }
    ?>
    <link href="cc-slideshow-be4ffe51/css/slideshow.css" rel="stylesheet">
    <script>document.createElement( "picture" );</script>
    <script src="cc-slideshow-be4ffe51/js/picturefill.js" class="picturefill" async="async"></script>
    <link rel="stylesheet" href="cc-slideshow-be4ffe51/css/main.css">
    <script src="cc-slideshow-be4ffe51/js/jquery-1.8.2.min.js"></script>
    <script src="cc-slideshow-be4ffe51/js/revolver.min.js"></script>
    <script src="cc-slideshow-be4ffe51/js/slideshow.js"></script>
      <script type="text/javascript">document.documentElement.className = 'no-fouc';</script>
      <link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" />
    <?php // ZCAdditions.com, ZCA Responsive Template Default (EOF-addition 2 of 2) ?>
    <?php
      $zco_notifier->notify('NOTIFY_HTML_HEAD_END', $current_page_base);
    ?>
    </head>
    
    <?php // NOTE: Blank line following is intended: ?>

    Anyone know why or maybe tell me where I should add it instead. I need it in the header to use my special banners.

    Thanks

  2. #2
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    109
    Plugin Contributions
    0

    Default Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

    Do you have the .js files in your template folder or another location?

  3. #3
    Join Date
    Apr 2016
    Location
    Savannah, Georgia
    Posts
    9
    Plugin Contributions
    0

    Default Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

    They are in another location but it is specified.

    Code:
    cc-slideshow-be4ffe51/js/jquery-1.8.2.min.js
    Are you hinting that I need to put them in another directory instead?

  4. #4
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    109
    Plugin Contributions
    0

    Default Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

    You can try putting the full url in and see if that works.
    Preferrably .js will go under your templates directory. You may want to have a look at https://www.zen-cart.com/wiki/index....s_-_Javascript

    Its just a wild guess without actually seeing your actual site (need the URL for that).
    Last edited by ravynw34; 5 May 2016 at 01:58 PM.

 

 

Similar Threads

  1. v151 Javascript slideshow help
    By bpoilspill in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 7 Mar 2013, 03:00 AM
  2. Javascript slideshow issue
    By timhersh in forum General Questions
    Replies: 6
    Last Post: 2 Nov 2012, 09:26 PM
  3. Javascript slideshow works in Firefox but not IE!!
    By arniesbarmyarmy in forum General Questions
    Replies: 7
    Last Post: 17 Nov 2009, 05:37 AM
  4. insert a javascript for a slideshow in header
    By supersnow in forum Templates, Stylesheets, Page Layout
    Replies: 22
    Last Post: 7 May 2009, 12:02 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR