alpaca Posted January 25, 2010 Share Posted January 25, 2010 Hi there chaps,Can anyone tell me how to add some text to the top right of my header of every page. See screenshot.The text in red is what I want to add. Any help is always appreciated Link to comment Share on other sites More sharing options...
rocky Posted January 26, 2010 Share Posted January 26, 2010 Modify modules/blockuserinfo/blockuserinfo.tpl and add the following at line 3 (after the div): {l s='OrderLine' mod='blockuserinfo'}: 0800 32672773 You can then add the following to css/global.css in your theme's directory to make the text bigger, bolder and red: #header_user p#orderline { color: red; font-size: 1.2em; font-weight: bold; } Link to comment Share on other sites More sharing options...
alpaca Posted January 26, 2010 Author Share Posted January 26, 2010 Thanks Rocky - you're a lifesaver Link to comment Share on other sites More sharing options...
alpaca Posted January 26, 2010 Author Share Posted January 26, 2010 Ok, I done the changes, but it's not taking any colors changes or setting the text to bold? Is there something you may have missed in the above code you posted? Link to comment Share on other sites More sharing options...
rocky Posted January 26, 2010 Share Posted January 26, 2010 I just tested the code on my site and it is working fine. I added the CSS after the /* block top user information */ line of global.css. Link to comment Share on other sites More sharing options...
alpaca Posted January 26, 2010 Author Share Posted January 26, 2010 Hi Rocky, please excuse my amature coding intergration. I was been a complete plonker and uploaded the wrond css...lol. Works perfectly - many thanks again. Link to comment Share on other sites More sharing options...
alpaca Posted January 26, 2010 Author Share Posted January 26, 2010 I am having an absolute mare trying to align this. Can anyone help see screenshot: /* MEDCHANGED - Orderline*/ #header_user #orderline { color: #5a6227; font-size:14px; font-weight: bold; } #header_user #shopping_cart, #header_user #your_account { font-size: 0.9em; } #header_user #shopping_cart a, #header_user #your_account a { background-repeat: no-repeat; background-position: top left; padding: 2px 0 4px 10px; height: 5px; text-decoration: none; } #header_user #shopping_cart a { background-image: url(../img/icon/cart.gif); } #header_user #shopping_cart span.ajax_cart_quantity { padding-right:0.5em; } #header_user #your_account a { background-image: url(../img/icon/my-account.gif); } Link to comment Share on other sites More sharing options...
alpaca Posted January 26, 2010 Author Share Posted January 26, 2010 any ideas guys or hopefully Rocky? Link to comment Share on other sites More sharing options...
alpaca Posted February 4, 2010 Author Share Posted February 4, 2010 Still looking for a reply - can anyone help out help. Link to comment Share on other sites More sharing options...
rocky Posted February 4, 2010 Share Posted February 4, 2010 I think you'll have to use absolute positioning instead of floating to move it up. Use something like this in global.css: #header { position: relative; } #header_user { position: absolute; top: 0; right: 0; } Add the "position: relative" to the existing "#header" rather than creating a new one if possible. Increase the top value until you are happy with its position. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now