default.aspx head block

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 anni tempo fa
Hello,

I want to embed a javascript in home page (default.aspx) in its header block but there is no such a block. Where can I find the header block for home page or other pages?

Thanks!
13 anni tempo fa
Hi,

If your looking to create a dynamic header menu then look here:

https://www.nopcommerce.com/boards/t/5033/category-header-menu-is-available.aspx

Regards
13 anni tempo fa
garrie007 wrote:
Hi,

If your looking to create a dynamic header menu then look here:

https://www.nopcommerce.com/boards/t/5033/category-header-menu-is-available.aspx

Regards



Thanks but I am not sure if we are on the same track. I need to embed a javascript in header no menus. Head block of html code I meant.

In default.aspx there is no a structure as


<html>

<head>I need to embed something here... </head>

<body>
</body>

</html>



the page was talking about free hosting server and some other things which I didn't get it.

Any idea?

Thanks!
13 anni tempo fa
Hi,

What are you actually trying to do?

Regards
13 anni tempo fa
I have a tag from NORTON to embed in header of home page.

http://safeweb.norton.com/
13 anni tempo fa
Hi,

If it's a simple href tag or asp:imagebutton then you can put it in the header.ascx (modules folder)

regards
13 anni tempo fa
I tried it but when I look at home page source code it is placed in body. this must be in head tag area not body.

Thanks anyway
13 anni tempo fa
Hi,

This is what my ThreeColumn.master looks like in source view, in bold is my image button.


<asp:Content ID="Content1" ContentPlaceHolderID="cph1" runat="server">
    <div class="master-wrapper-leftside-3">
        <asp:ContentPlaceHolder ID="cph2" runat="server">
            <nopCommerce:CategoryNavigation ID="ctrlCategoryNavigation" runat="server" />
            <div class="clear">
            </div>
                      
     <asp:ImageButtonID="ImageButton1"runat="server"ImageUrl="~/App_Themes/darkOrange/images/signup.png"
                Width="180px" PostBackUrl="~/Register.aspx" AlternateText="Sign up for 25% off your first order" />
            <div class="clear">
            </div>
            <br />
            


<nopCommerce:RecentlyViewedProducts ID="ctrlRecentlyViewedProducts" runat="server" />
            <div class="clear">
            </div>
            <nopCommerce:PopularTags ID="ctrlPopularTags" runat="server" />
            <div class="clear">
            </div>
   </asp:ContentPlaceHolder>




Regards
13 anni tempo fa
Hi,

And this what i have done in my header.ascx files (module) as you can see in bold i have a div class called "freedelivery" and this is in the header between my logo and searchbox.

<div class="header-selectors-wrapper">
        <div class="header-taxDisplayTypeSelector">
            <nopCommerce:TaxDisplayTypeSelector runat="server" ID="ctrlTaxDisplayTypeSelector">
            </nopCommerce:TaxDisplayTypeSelector>
        </div>
        <div class="header-currencyselector">
            <nopCommerce:CurrencySelector runat="server" ID="ctrlCurrencySelector"></nopCommerce:CurrencySelector>
        </div>

        <div class="freedelivery">
        <img src="../App_Themes/darkOrange/images/freedelivery.png" alt="Free Delivery On Everything" />
        </div>
    

           <div class="searchbox">

        <nopCommerce:SearchBox ID="ctrlSearchBox" runat="server" />
    </div>
    
    </div>


In my cascading style sheet (styles.css) i have created the div class here:

.header .freedelivery
{
    background: url('images/freedelivery.png') no-repeat;
    float:left;
    

}


Regards
13 anni tempo fa
Hello,


There are 2 concepts. one is head and one is header. former applies to <head></head> block of your html file and latter is applicable to the top section of body of your html which you might use it for logo, advertising or menu or ...

I have a feeling that you have done is the 2nd one. basically when you place/embed something in <head> it will NOT be visible or displayed on front-end.

Thanks!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.