Viewing 9 posts - 1 through 9 (of 9 total)
Author
Posts
  • #6354

    I noticed that I did not update the (userdefined) extra menu I made. So I just did that and decided to move 2 menu links from the standard “extra menu” to this userdefined menu I have. But the icon image files will not show.

    In the module I changed 3 lines (enclosed zip) and it actually works with the earlier links. But not with the 2 I moved!

    What did I do wrong?

    P.S. Only available in danish

    Regards, Jamie Jaconelli

    admin and owner of a user customized version of kiwitrees (contain 3 family trees)

  • #6359

    Hi
    Not much time right now, but looking at your attached image it seems you have used different css for that image compared to all the others. Apart from the icon file name the rest should be the same as the ones around it.

    Nigel
    My personal kiwitrees site is www.our-families.info
  • #6360

    You lost me! 🙁

    I copied the 2 image css lines from “extra_menu” to the userdefined “extra_menu_faq” in the (my)stylesheet!

    No rush Nigel!

    Regards, Jamie Jaconelli

    admin and owner of a user customized version of kiwitrees (contain 3 family trees)

  • #6363

    Ah, then I can understand the problem.
    The current version of extra-menus has NO css included in the module. I suspect you are looking at old files that should have been deleted. They are wrong, and not used anywhere by kiwitrees code now. An extra-menus module folder should only contain two files, module.php and a help file (which will also be removed soon).

    Copy your css for the images from the main colors theme /css/style.css file. Look at about line 1813.

    Nigel
    My personal kiwitrees site is www.our-families.info
  • #6364

    No I do not have any old css files in the module folder! The css I attached is from my style css!

    1) I uploaded a folder named extra_menus_faq (see enclosed)
    2) I edited this in the module.php in this new folder
    line 32:
    class extra_menus_WT_Module extends WT_Module implements WT_Module_Menu, WT_Module_Block, WT_Module_Config {
    to this:
    class extra_menus_faq_WT_Module extends WT_Module implements WT_Module_Menu, WT_Module_Block, WT_Module_Config {
    line 41:
    return /* I18N: Description of the “Extra menus” module */ WT_I18N::translate(‘Provides links to custom defined pages.’);
    to this:
    return /* I18N: Description of the “Extra menus” module */ WT_I18N::translate(‘Userdefined FAQ.’);
    line 114:
    $default_title = WT_I18N::translate(‘Menu’);
    to this:
    $default_title = WT_I18N::translate(‘FAQ’);

    3) I added 2 menu links in the modules administration page
    4) I edited mystyle.css where I just moved the 2 lines from the extra menu css to further down in the extra menu faq css (see enclosed image file)

    The result is as you can see in the encl. image file. Can only see 2 of the 4 icons.

    I did not add anything in the core css.

    Regards, Jamie Jaconelli

    admin and owner of a user customized version of kiwitrees (contain 3 family trees)

  • #6369

    4) I edited mystyle.css where I just moved the 2 lines from the extra menu css to further down in the extra menu faq css (see enclosed image file)

    Maybe I made a wrong assumption. But the advice remains the same

    Copy your css for the images from the main colors theme /css/style.css file. Look at about line 1813.

    Nigel
    My personal kiwitrees site is www.our-families.info
  • #6370

    OK.

    Now I can look not just on my phone 🙂 Yesterday I missed your ps:

    P.S. Only available in danish

    So now I can look at it and actually see what is happening. What I see is this:
    Screenshot-2016-05-09-07.50.56

    So, unless you have changed something since yesterday, the problem is not the icons, it is the two new FAQs. They are not appearing at all, at least not in Dutch language.

    Or have you set them to only show to members, or higher?
    ============================================================

    A separate issue, not major and not related to this problem. Above you say you changed line 114 of the file module.php. I can see that also in the copy you sent. You do not need to do this. Just set the name you want to use in the modules configuration (first tab).

    Nigel
    My personal kiwitrees site is www.our-families.info
  • #6373

    FINALLY – I can see the problem!!! A very small mistake, but very important. Use underscore (_) not dash/hyphen ()

    Screenshot-2016-05-09-08.10.04

    Nigel
    My personal kiwitrees site is www.our-families.info
  • #6376

    /Sigh I am blind!

    I knew it could not be done in any other ways! But old eyes that is another thing 😛 .

    Thank you for your time! As allways you are so kind! 🙂

    Regards, Jamie Jaconelli

    admin and owner of a user customized version of kiwitrees (contain 3 family trees)

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Menu icons’ is closed to new replies.