Tagged: 

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #456310

    Hi and thanks for your wonderful theme again! We are working on making our site unique and were wondering if it was possible to have icons in the main menu above the words? Would there be any css we would need to add?

    Thanks,
    Gear Out Here

    #456352

    Hey gearouthere!

    See Josue’s post here, https://kriesi.at/support/topic/sort-buttons/#post-397212.

    You could use some CSS like this.

    #menu-item-5672 > a::before {
      content: "\e824";
      font-family: entypo-fontello;
    }

    Regards,
    Elliott

    • This reply was modified 9 years, 5 months ago by Elliott.
    #474036

    Hi Elliott, thank you! An additional question to this: what if we were trying to make icons only appear on mouse over on the menu word and instead of the word. So there would be just words in the main menu, but once you mouse over it, it turns into an icon. Would that be possible?

    Thank you,
    Gear Out Here

    #474296

    Hey!

    Please apply the changes and then let us know.

    Best regards,
    Yigit

    #474601

    Hi Yigit, thank you! I think you forgot to type the changes themselves…

    #474945

    Hey!

    Please use the code as following

    #menu-item-3436 > a::before {
      content: "\e824";
      font-family: entypo-fontello;
    opacity: 0;
    }
    #menu-item-3436:hover > a::before { opacity: 1; }
    #menu-item-3436:hover > a >.avia-menu-text { opacity: 0; }

    Please make sure that > sign is not converted to – http://i.imgur.com/IDXRZQ3.png in Quick CSS field

    Cheers!
    Yigit

    #475283

    Hi Yigit, thanks! it seems to work! one question here, is it possible for me to use custom icons (maybe my own png images) instead of the theme icons? how would I do that?

    Thanks so much!

    Gear Out Here

    #475930

    Hey!

    You can change the code to following one

    #menu-item-3436:hover > a {
      background-image: url(https://kriesi.at/wp-content/themes/kriesi/images/logo.png); background-size: contain; background-repeat: no-repeat; background-position: 50% 50%; 
    }
    #menu-item-3436:hover > a >.avia-menu-text { opacity: 0; }

    Regards,
    Yigit

    #476735

    Hi Yigit, thank you! So I used only this code:

    #menu-item-5672:hover > a {background-image: url(https://aquaquestonline.com/wp-content/uploads/2015/07/bp.png); background-size: contain; background-repeat: no-repeat;background-position: 50% 50%; }
    #menu-item-5672:hover > a >.avia-menu-text { opacity: 0; }

    (without the upper part that went like this: #menu-item-3436 > a::before {
    content: “\e824”;
    font-family: entypo-fontello;
    opacity: 0;
    })

    I got the menu word to disappear (see https://aquaquestonline.com/ -> “Backpacks” – this is the menu item I applied the code to). But the icon doesn’t appear for some reason. I think I might be missing some small step?

    Thanks for your help!!

    #478349

    Hey!

    Sorry for the late reply!

    Icon is actually visible but your icon is white so white on white = not easily visible :)
    Please change the color of your icon or background color of your menu items on hover by editing “Main menu links” in Enfold theme options > Advanced Styling.

    Also, please change “background-size: contain;” to “background-size: inherit;” in the code i posted here

    Regards,
    Yigit

    #478359

    Hi Yigit,

    thank you! The size works perfect now. The only thing is: I only see the icon when I scroll the page down. I actually do see it on white, but when the menu is above the slider, I don’t. I feel like we are missing a tiny step here..

    Thank you!

    Gear Out Here

    #478362

    Hey!

    Please change your code to following and add !important rule
    [see private content field]

    Cheers!
    Yigit

    #478365

    Hi Yigit, thank you very much! Now it’s all working! I was wondering also if somebody has looked into this issue here with our front page slider – would you know? https://kriesi.at/support/topic/issues-with-front-page-slider/#post-476884

    Thank you,
    Gear Out Here

    #479112

    Hey Gear Out Here!

    Ismael already replied to you – https://kriesi.at/support/topic/issues-with-front-page-slider/#post-478551
    You are welcome, glad we could help. Let us know if you have any other questions or issues

    Best regards,
    Yigit

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Icons in the main menu’ is closed to new replies.