Jump to content

[SOLVED] how to add own text to header?


Recommended Posts

Hello again

 

All you need is this:

 

http://screencast.com/t/zjhAgQP3A

 

Hope this helps

 

Paul

thank you sir,

but new problem come then, after I add on the center, then all the information of the site in the center then, I want only "30$ free shipping" in the center of the home page top, but all other information at left as before, how to finish that? thank you!

Link to comment
Share on other sites

code is wrong

 

there is no center closing tag.

 

you have to use different code

 

in my opinion it will be much better to remove center and h1 tag (for seo purposes) 

 

then instead of them use only span with id="myspan"

 

you will be able to position this myspan with css, something like:

 

#myspan {position:absolute; left:400px; top:30px;}

Link to comment
Share on other sites

paste this to the html box module:

<span id="mySpan">this is my message<span>

(of course change this is my message to any other text you want)

 

then in global.css file add this:

#mySpan {
font-size:20px;
color:red;
position:absolute;
left:200px;
top:30px;
}

to change position of text just manipulate with values: left:200px; and top:30px; (decrease/increase value)

Link to comment
Share on other sites

Good morning

 

You can add vekia code anywhere in global.css but personally I think it is better to add the code at the bottom of the page, for instance:

 

/* this is vekia code to add free shopping */

 

Then add the code

 

This way you know where to look and why you added the code

 

Paul

Link to comment
Share on other sites

in the html box I add:   <span id="mySpan">30$ free shipping</span>

 

in the public_html

themes

default

css

global.css

 

(at the bottom of global.css)I add the following:

 

#mySpan {

font-size:20px;

color:red;

position:absolute;

left:200px;

top:30px;

}

 

but it doesn't work, the information still on the left side of top home page, not change after write something on global.css

 

 

I want "30$ free shipping"  at top of home page, red color

 

please tell me detail information how to write the code and where to write it very carefully, :mellow: thank you
Link to comment
Share on other sites

because I delete, you can't see it, now I add <span id="mySpan">30$ free shipping</span>  at html box header, but I not edit global.css  please check my site another time, and tell me what to do then, thank you :mellow:

 

by the way the 2 box are unchecked

Link to comment
Share on other sites

hello

 

go to modules > positions and move htmlblock module to the bottom of the list displayTop (not displayHeader!)

 

then in global.css add code:


#mySpan {
position:absolute;
left:400px;
top:10px;
font-size:18px;
background:#ffa07a;
padding:5px;
color:#FFF;
}

 

effect:

BEJNouH.png

 

 

of course you can change position of the block, just change values of top and left params

Link to comment
Share on other sites

.ie7 #featured-products_block_center .product_image span.new {top:110px;right:0;width:94%}

.ie8 #featured-products_block_center .product_image span.new{top:110px;right:0;width:94%}

.lt-ie6 #featured-products_block_center .product_image span.new {top:110px;right:0;width:94%}

#mySpan {

position:absolute;

left:400px;

top:10px;

font-size:18px;

background:#ffa07a;

padding:5px;

color:#FFF;

}

 

the above is the bottom of global.css is it right?

but no any reaction, nothing changed

Link to comment
Share on other sites

 because it doesn't work, then I delete it myspan at global.css

it is in the right position, you can check my website, there is 30$ free shipping at left top of home page.


do you have skype let us talk, my skype: zerryxu

 

because it is too slow from forum, thank you

Link to comment
Share on other sites

it's not in right position.

you attached it to the "top" ? or to the "header" ?it must be attached to the "top" hook and it must be last module on list under modules > positions tab

 

add:

#mySpan {
position:absolute;
left:400px;
top:10px;
font-size:18px;
background:#ffa07a;
padding:5px;
color:#FFF;
}

to the global.css and refresh your page then with ctrl+f5

there is no code so it doesn't work.

Link to comment
Share on other sites

If I choose top but not header, the message will between navigation and category place, I want it at top of home page.

and what you mean by last module on list?

by the way, I will add the code at global.css, just check it another time

thank you

Link to comment
Share on other sites

×
×
  • Create New...