Jump to content

Adding custom links to header and make them multilingual


Recommended Posts

unfortunately {l s='STRING HERE'} function doesn't allow to use HTML language. it mean that you can do it only with {if} conditions or with module to use custom content (like contentbox / html box pro)

 

open themes/YOUR_THEME/header.tpl file and in header section add if conditions (if language == 1 if language == 3 etc.) with code to display images and links

Link to comment
Share on other sites

Sure - below...

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Css3 Gallery</title> <style type="text/css"> .css3gallery img{ -webkit-transform:scale(0.8); /*Webkit: Scale down image to 0.8x original size*/ -moz-transform:scale(0.8); /*Mozilla scale version*/ -o-transform:scale(0.8); /*Opera scale version*/ -webkit-transition-duration: 0.5s; /*Webkit: Animation duration*/ -moz-transition-duration: 0.5s; /*Mozilla duration version*/ -o-transition-duration: 0.5s; /*Opera duration version*/ opacity: 0.7; /*initial opacity of images*/ margin: 0 10px 5px 0; /*margin between images*/ } .css3gallery img:hover{ -webkit-transform:scale(1.1); /*Webkit: Scale up image to 1.2x original size*/ -moz-transform:scale(1.1); /*Mozilla scale version*/ -o-transform:scale(1.1); /*Opera scale version*/ box-shadow:0px 0px 30px gray; /*CSS3 shadow: 30px blurred shadow all around image*/ -webkit-box-shadow:0px 0px 30px gray; /*Safari shadow version*/ -moz-box-shadow:0px 0px 30px gray; /*Mozilla shadow version*/ opacity: 1; } </style> </head> <body> <div class="css3gallery"><br /> <br /> <br /><a href="http://www.quackit.com/html/codes/html_link_code.cfm"> <img src="http://rokenrol.si/img/manlogos/5.jpg" alt="css3 gallery" title="css3 gallery" /> </a> <img src="http://rokenrol.si/img/manlogos/5.jpg" alt="css3 gallery" title="css3 gallery" /> <img src="http://rokenrol.si/img/manlogos/5.jpg" alt="css3 gallery" title="css3 gallery" /><br /> <br /> </div>

Edited by badfreek (see edit history)
Link to comment
Share on other sites

  • 7 months later...

Hello

 

I found this thread and am happy to ask another thing that hopefully fits in here :)

 

Ehm,

what I want to do is: In my header.tpl is this code

....

       <div id="logo_wrapper">
                 <div id="header_logo">
                    <a  href="{$base_dir}" title="Gemeinsam - Einsam..">
                   
                    <img class="logo" src="img/_logo/logo.png" alt="{$shop_name|escape:'htmlall':'UTF-8'}" />
                     </a>
                </div>
             </div>


		{$HOOK_TOP}
	</div>

Via HTMLbox/ContentBox I like to add content left or right of the logo.png in the header.

 

I installed contentbox and hooked it into the header but it is misplaced. It hovers somewhere in the left top of the page.

Maybe I can move it and place it via css but is there no way to to add a new "zone" where I can add the contentbox.

 

 

PS:

Do I need to enter the whole html stuff (head and body html) as badfreak did? To what purpose?

I thought that html may be enough and the css via global.css for example.

  • Like 1
Link to comment
Share on other sites

Ok, I had to hook htmlbox into the TopOfPages region and so I could position it right (ony right) next to the logo wrapper.

 

Would be help ful to have an image with all presta hooks or how these boxes are called.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...