For some reason, my original response got deleted, so I'll paste it from backups I have:
Hello, Hermant. Thanks for replying.
Where exactly would you suggest that I add the include statement? Nothing really happens when I add it in contentpage.jsp like in the example below.
<%@include file="/libs/foundation/global.jsp"%><% %><%@page session="false" contentType="text/html; charset=utf-8" %><% %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <cq:include script="/libs/wcm/core/components/init/init.jsp"/> <cq:include script="head.jsp"/> <cq:include script="body.jsp"/> </html>
And I can see that head.jsp already has init.jsp included so it's not surprising that nothing is added to the source. If I leave my file as in original post, this is the header
<head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta name="keywords" content=""> <meta name="description" content=""> <link rel="stylesheet" href="https://forums.adobe.com/etc/clientlibs/foundation/main.css" type="text/css"> <script type="text/javascript" src="/etc/clientlibs/granite/jquery.js"></script> <script type="text/javascript" src="/etc/clientlibs/granite/utils.js"></script> <script type="text/javascript" src="/etc/clientlibs/granite/jquery/granite.js"></script> <script type="text/javascript" src="/etc/clientlibs/foundation/jquery.js"></script> <script type="text/javascript" src="/etc/clientlibs/foundation/main.js"></script> <link href="https://forums.adobe.com/etc/designs/mywebsite.css" rel="stylesheet" type="text/css"> <!-- I believe these three lines are added by init.jsp --> <link rel="stylesheet" href="https://forums.adobe.com/libs/cq/gui/components/authoring/clientlibs/page.css" type="text/css"> <script type="text/javascript" src="/libs/granite/author/deviceemulator/clientlibs.js"></script> <script type="text/javascript" src="/libs/cq/gui/components/authoring/clientlibs/page.js"></script> <title>Products</title> </head>
With that include added at the top, the source is almost the same with three lines I pointed out shifted above HTML head (which is invalid).
<!-- same three lines, now above head --> <link rel="stylesheet" href="https://forums.adobe.com/libs/cq/gui/components/authoring/clientlibs/page.css" type="text/css"> <script type="text/javascript" src="/libs/granite/author/deviceemulator/clientlibs.js"></script> <script type="text/javascript" src="/libs/cq/gui/components/authoring/clientlibs/page.js"></script> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta name="keywords" content=""> <meta name="description" content=""> <link rel="stylesheet" href="https://forums.adobe.com/etc/clientlibs/foundation/main.css" type="text/css"> <script type="text/javascript" src="/etc/clientlibs/granite/jquery.js"></script> <script type="text/javascript" src="/etc/clientlibs/granite/utils.js"></script> <script type="text/javascript" src="/etc/clientlibs/granite/jquery/granite.js"></script> <script type="text/javascript" src="/etc/clientlibs/foundation/jquery.js"></script> <script type="text/javascript" src="/etc/clientlibs/foundation/main.js"></script> <link href="https://forums.adobe.com/etc/designs/mywebsite.css" rel="stylesheet" type="text/css"> <title>Products</title> </head>
Sidekick is still not visible. Am I adding the include statement in the right file?
And thanks Smackdonald for answering. I'll try what you said and report back if I still have issues.