thrifty34 wrote:I put it in header.aspx I don't know how much it will hurt load times? I need to find a code to make it stop after so long also.
if you want your image carousel to be displayed only on the homepage, then you can accoplish it by following several ways: here's one way of doing it...
create a new master page (name it as : homepage.master), copy all the code from root.master and paste it in the new masterpage (roothomepage.master)
now create one more master page (name it as ThreeColumnhomepage.master), copy all the code from ThreeColumn.master and paste it in the new masterpage (ThreeColumnhomepage.master)
MAKE SURE WHILE COPYING CODE FROM BOTH MASTERPAGES, YOU COPY FROM ASPX AS WELL AS .CS FILE ALSO..its like creating a duplicate copy of master pages...
Now go to MasterPages folder > your new master page ThreeColumnhomepage.master> in the code of this masterpage you will see this:
MasterPageFile="~/MasterPages/Root.Master"
modify it to this:
MasterPageFile="~/MasterPages/roothomepage.master"
now
Now go to MasterPages folder > roothomepage.master
find this code:
<div class="master-wrapper-content">
<nopCommerce:Header ID="ctrlHeader" runat="server" />
below
<nopCommerce:Header ID="ctrlHeader" runat="server" />
add this
<div class="header-links">
YOUR image carousel Code
</div>
AS YOU ADDED image carousel code in your masterpage, don't forget to remove / comment it out from header.ascx
re-build your project as you added new masterpages and code in it...and run your project
now your image carousel will be available only on homepage...