Thread Rating:
  • 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Support for multilanguage sites, Internationalization (I18N)
Hello.

I fail to understand one thing with my website and the navigation plugin.
Its a opensource theme i have downloaded and i try to edit the navigation look that is build upon 2 pictures.
( i suppose because it needs to expand. )

The navigation plugin can load one of the picture but it fails to load the second picture.
I will try to explain with code. ( i dont have a online website right now )

So my CSS is as follow.

Code:
/* topmenu */
div#topmenu{
   position:absolute;
   top:46px;
   right:0px;
   height:27px;
}

div#topmenu ul{
   padding:0px;
   margin:0px;
   list-style:none;
   float:left;
   font-family:'Trebuchet MS', Arial, Helvetica, sans-serif;
}

div#topmenu li{
   float:left;
   display:block;
   margin:0 0 0 6px;
}

div#topmenu li a{
   float:left;
   display:block;
   position:relative;
   background:transparent url(../images/menu-r.png) 100% 0 no-repeat;
   height:27px;
   padding:0 5px 0 0;
   overflow:hidden;
   color:#202020;
   text-decoration:none;
   text-transform:uppercase;
   font-size:13px;
   font-weight:bold;
   line-height:27px;
}

div#topmenu li a span{
   display:block;
   background:url(../images/menu-l.png) 0 0 no-repeat;
   padding:0 10px 0 15px;
}

div#topmenu li a.current, div#topmenu li a:hover{
   background:url(../images/menu-r.png) 100% -28px no-repeat;
   text-decoration:none;
}

div#topmenu li a.current span, div#topmenu li a:hover span{
   background:url(../images/menu-l.png) 0 -28px no-repeat;
}

As you can see in the CSS i have under div#topmenu li a{ a picture and this one is loaded.
But there is also a picture under div#topmenu li a span{ this one is not loaded, see picture i attached, the span picture are supposed to span over the text.    
Here is my template for the menu.


PHP Code:
   <!-- topmenu -->
 
   <div id="topmenu">
 
     <ul>
    <!--<
a href=""><span>Services</span></a>--> // This one works because the <span> is included
        
<?php get_i18n_navigation(return_page_slug()); ?>
      </ul>
    </div>
    <!-- / topmenu --> 

What i fail to understand is where do i add <span> to the i18n_navigation


Many thanx for your help and im sorry to ask basic questions, im under a learning process.

/Dimi
Reply


Messages In This Thread
rewrite language problem - by tomkop - 2013-03-27, 06:34:44
Enhancement suggestion - by hameau - 2013-05-12, 04:17:12
Enhancement request - by hameau - 2013-06-14, 20:02:07
RE: Enhancement request - by mvlcek - 2013-06-14, 22:04:12
RE: Enhancement request - by hameau - 2013-06-14, 23:01:36
Duplicate language cookies bug - by enzy - 2013-08-20, 07:03:26
RE: Duplicate language cookies bug - by ohayo - 2013-08-20, 18:12:25
Plugin is not shown - by tosho - 2013-09-15, 12:10:37
1000 pages limit in i18n_navigation - by titus - 2014-10-13, 21:58:36
Bug found - by lbarsov - 2014-10-17, 03:41:53
Menu with picture - by Dimi - 2015-04-28, 16:05:45
Rendering Menu in Component - by Alexander_ - 2016-05-04, 23:06:51
Meta desc for different languages - by Alexander_ - 2017-02-14, 20:29:32
Hierarchical Menus - by celextel - 2019-07-26, 16:41:47
Ri18n_navigation - by celextel - 2021-02-19, 16:07:48



Users browsing this thread: 4 Guest(s)