Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter alvaroprudente

    (@alvaroprudente)

    thanks… that worked fine!
    And I’ve learned something new…

    Thread Starter alvaroprudente

    (@alvaroprudente)

    great aproach…

    unfortunately it doesn’t seem to change anything…

    <script type="text/javascript">
    jQuery(document).ready(function() {
     jQuery('.menu li a').first().addClass('home');
    });
    </script>
    </body>

    result:

    <tr><td colspan="2">
        			<nav id="access" role="navigation">
    								<div class="menu"><ul><li ><a href="https://2012.ficvaldivia.cl/" title="Inicio">Inicio</a></li>

    off course jquery is integrated in the header:
    <script type="text/javascript" src="https://2012.ficvaldivia.cl/wp-content/themes/19_ficv_wordpress_theme/scripts/jquery-1.7.2.min.js"></script>

    hmmmmmm……

    and I tried
    .menu ul li a
    too

    Thread Starter alvaroprudente

    (@alvaroprudente)

    no, or indirectly via copy paste and other plugins…
    So I would need some starter help to do so…

    thx

    Thread Starter alvaroprudente

    (@alvaroprudente)

    always the first… and it has the same name, it’s the spanish translation of home…

    Thread Starter alvaroprudente

    (@alvaroprudente)

    Thx for the reply…
    Yes… and no…

    I don’t see a way to assigne to the menu entry inicio a unique bg-image as it seems to have no specific css-class.
    The rest of the menu entries has individual css classes so it’s quite easy to indivudually change the bg image. I’m strugglink with Inicio or Home, which via menu definition doesn’t get an individual css-class…

    Hope that’s clearer

    OK… I’ve got it…

    the wordpress generated nav_menu is in my case:
    (check that by looking at you page and view the sourcecode)

    <nav id="access" role="navigation">
    	<div class="menu">
              <ul>
               <li class="page_item page-item-37"><a href="https://2012.ficvaldivia.cl/?page_id=37">Festival</a>
                   <ul class='children'>...</ul>
               </li>
               <li class="page_item page-item-62"><a href="https://2012.ficvaldivia.cl/?page_id=62">Competencia</a>
                     <ul class='children'>...

    css:

    .page-item-37 {
        background-image: url('images/festival.png');
        }
    ...
    .page-item-62 {
        background-image: url('images/competencia.png');
        }

    remember: if an entry has directly a class assigned, it’s css is easily accesible by
    .classname

    Thread Starter alvaroprudente

    (@alvaroprudente)

    OK After playing around I got it…

    The new beta Installer Plugin from WPML cannibalizes the Users Menu…
    at least in my installation…
    not so good…

Viewing 7 replies - 1 through 7 (of 7 total)