We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6491
    • 70 Posts
    Hi All,

    I am having an issue where the Chunk for my <head> section is loading twice in the generated page. I have used the same chunk on other sites running Rev 2.2.16-pl, the new site is running Rev 2.5.0-pl. Do you have any ideas?

    Here's the page ... http://emiwip.net/index.php?id=3

    Thanks.

    This question has been answered by webandflow. See the first response.

      • 42562
      • 1,145 Posts
      Show the raw MODX source code in the MODX template - where you are calling the chunk
        TinymceWrapper: Complete back/frontend content solution.
        Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
        5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
        • 6491
        • 70 Posts
        Quote from: donshakespeare at May 11, 2016, 03:17 PM
        Show the raw MODX source code in the MODX template - where you are calling the chunk

        [[$HomeHead?]]
        <body>
        [[$pageBody?]]
        </body>
        </html>
          • 4172
          • 5,888 Posts
          and what is in HomeHead?
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 6491
            • 70 Posts
            Quote from: Bruno17 at May 11, 2016, 05:36 PM
            and what is in HomeHead?
            This is HomeHead
            [[$meta_tags?]]
            <!-- Font Awesome stylsheet for icons -->
            <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
            
            <link rel="stylesheet" href="assets/css/cplate-font/stylesheet.css" type="text/css" charset="utf-8" />
            
            <link href="assets/css/fonts.css" rel="stylesheet" type="text/css">
            
            <link href="assets/css/jquery.maximage.css" rel="stylesheet" type="text/css" />
            
            
            <meta name="viewport" content="width=device-width, initial-scale=1">
            <title>[[*longtitle]]</title>
            <link href='https://fonts.googleapis.com/css?family=La+Belle+Aurore' rel='stylesheet' type='text/css'>
            <link href="assets/css/boilerplate.css" rel="stylesheet" type="text/css">
            <link href="assets/css/styles-main.css" rel="stylesheet" type="text/css">
            <link href="assets/css/nav.auto.css" rel="stylesheet" type="text/css">
            <link href="assets/css/weather.css" rel="stylesheet" type="text/css">
            
            <link href="assets/css/pagebottom.css" rel="stylesheet" type="text/css">
            
            <!--[if lt IE 9]>
            <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
            <![endif]-->
                <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
            		<script type="text/javascript" src="assets/js/jquery-ui-1.8.16.custom.min.js"></script>	
                <script src="assets/js/jquery.tools.min.js"></script>
            
                <script src="assets/js/libs/modernizr-1.7.min.js"></script>
                
                <script src="assets/js/gallery-overlay.js"></script>
            	<script type="text/javascript" src="assets/js/jquery.prettyPhoto.js"></script><!-- Date Picker -->   
                <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
                <link href="assets/css/reservationsBox.css" rel="stylesheet" type="text/css">
                <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
            <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
             <script>
            $(function() {
            $( "#datepicker" ).datepicker();
            });
             </script>
            <!-- End Date Picker -->
            <!-- Content Slider (Tesimonials) -->
            <script src="assets/js/jquery.bxslider.min.js"></script>
            <!-- bxSlider CSS file -->
            <link href="assets/css/jquery.bxslider.css" rel="stylesheet" />
            <link href="assets/css/testimonials.css" rel="stylesheet" type="text/css">
            <!-- End content Slider -->
            <link href="assets/css/specialsBox.css" rel="stylesheet" type="text/css">
            <link rel="stylesheet" href="http://anchorsouthmanagement.com/colorbox/colorbox.css" />
            <script src="http://anchorsouthmanagement.com/colorbox/jquery.colorbox.js"></script>
            
            <!-- <script>
                jQuery(document).ready(function(){
                    if (document.cookie.indexOf('visited=true') == -1) {
                        var fifteenDays = 1000*60*60*24*15;
                        var expires = new Date((new Date()).valueOf() + fifteenDays);
                        document.cookie = "visited=true;expires=" + expires.toUTCString();
                        $.colorbox({iframe:true,innerWidth:853,innerHeight:480,href:'http://www.youtube.com/embed/xbuJIHLdTZ8?rel=0&wmode=transparent&autoplay=1'});
                    }
            $(".youtube").colorbox({iframe:true, innerWidth:853, innerHeight:480});
                });
            </script> -->
            
            <script> <!-- this is for the Colorbox youtube class commented out above-->
                jQuery(document).ready(function(){
                    $(".youtube").colorbox({iframe:true, innerWidth:853, innerHeight:480});
                });
            </script>
            
            <!-- begin BounceBox in head -->
                    <script type="text/javascript" src="http://www.anchorsouthmanagement.com/bouncebox-plugin/jquery.easing.1.3.js"></script>
                    <script type="text/javascript" src="http://www.anchorsouthmanagement.com/bouncebox-plugin/jquery.bouncebox.1.0.js"></script>
            		<script type="text/javascript" src="http://www.anchorsouthmanagement.com/bouncebox-plugin/script.js"></script>
            
            <script type="text/javascript">
                $(document).ready(function () {
                                  var bounceIt = function () {
                                      $('#bbox').bounceBoxShow();
                                  }
                                  window.setTimeout(bounceIt , 2000); 
                        });
            </script>
            
            <link href="http://www.anchorsouthmanagement.com/assets/css/bbox.css" rel="stylesheet" type="text/css" />
            <!-- end BounceBox -->
            
            <!-- ---------------- Responsive CSS Overrides --------------------------- -->
            <link href="http://anchorsouthmanagement.com/assets/css/responsive-overrides-3.css" rel="stylesheet" type="text/css">
            
            [[$Google Analytics?]]
            </head>
            • discuss.answer
              • 32070
              • 87 Posts
              So, the next question is what is in meta_tags and GoogleAnalytics?
                Des
                webandflowdesign.com
                • 6491
                • 70 Posts
                Quote from: webandflow at May 11, 2016, 08:51 PM
                So, the next question is what is in meta_tags and GoogleAnalytics?
                That was it. I have got to quit working so late. I must have pasted the [homeHead] code into the [metatags]. Thanks for your help guys.
                  • 32070
                  • 87 Posts
                  Quote from: DanLoffler at May 11, 2016, 10:01 PM
                  That was it. I have got to quit working so late. I must have pasted the [homeHead] code into the [metatags]. Thanks for your help guys.

                  Awesome! Glad you figured it out. We've all made mistakes - especially late at night!!
                    Des
                    webandflowdesign.com