0
Welcome Guest! Login
0 items Join Now

Use image in splitmenu (gantry FW) & urgent account problem

    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Use image in splitmenu (gantry FW) & urgent account problem

    Posted 12 years 5 months ago
    • well the most simple solution would be to just hide the first menu item by adding this to custom css file:

      li.item101 {display: none;

      ... but of course you can also try css-image-replacement techniques like
      css-tricks.com/css-image-replacement/
    • Ortix92's Avatar
    • Ortix92
    • Rocketeer
    • Posts: 56
    • Thanks: 0

    Re: Use image in splitmenu (gantry FW) & urgent account problem

    Posted 12 years 5 months ago
    • well these sound like viable options but i assume there isn't a semi easy way to modify the menu module with php?
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Use image in splitmenu (gantry FW) & urgent account problem

    Posted 12 years 5 months ago
    • there is nothing to do with php here ... just use css ... much easier
    • Ortix92's Avatar
    • Ortix92
    • Rocketeer
    • Posts: 56
    • Thanks: 0

    Re: Use image in splitmenu (gantry FW) & urgent account problem

    Posted 12 years 5 months ago
    • alrighty, I thought I could make it more robust with php, but screw it. They are not paying me enough for that anyway.

      However, I looked through the code of the logo feature and it SHOULD be clickable. However it is not... I want it to function as the home button, and it actually should according to the code.

      Suggestions?
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Use image in splitmenu (gantry FW) & urgent account problem

    Posted 12 years 5 months ago
    • you mean with an active state?
      The logo itself is a clickable link ...
    • Ortix92's Avatar
    • Ortix92
    • Rocketeer
    • Posts: 56
    • Thanks: 0

    Re: Use image in splitmenu (gantry FW) & urgent account problem

    Posted 12 years 5 months ago
    • Well if you go to the site
      dev.exo-l.com

      you will notice that the logo is actually not clickable.. I haven't touched the code.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Use image in splitmenu (gantry FW) & urgent account problem

    Posted 12 years 5 months ago
    • you have added some strange stuff to the css.
      add this to your css

      div.logo-block {
      z-index: 9999;
      }
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Use image in splitmenu (gantry FW) & urgent account problem

    Posted 12 years 5 months ago
    • you could also just use image replacement like this:

      ul.menutop.level1 li.item101 a.orphan.item span {
      text-indent: -999px;
      min-width: 100px;
      background: url(/images/logo.png) no-repeat 50% 8px !important;
      z-index: 9999!important;
      }

      ul.menutop.level1 li.item101 a.orphan.item {
      min-width: 130px;}
    • Ortix92's Avatar
    • Ortix92
    • Rocketeer
    • Posts: 56
    • Thanks: 0

    Re: Use image in splitmenu (gantry FW) & urgent account problem

    Posted 12 years 5 months ago
    • ok i got it working locally will push it asap.

      BTW what do you mean with "strange stuff"? :) I'm just overriding certain parts of the css to achieve the look desired. I read everywhere that modifying the core CSS is discouraged. What would you suggest? I'm trying to still learn the best practices for joomla development :oops:

Time to create page: 0.066 seconds