- This topic has 8 replies, 2 voices, and was last updated 7 years, 4 months ago by
jacoline.
Tags: Extra menus icons
-
8th May 2016 at 6:37 pm #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)
-
8th May 2016 at 6:49 pm #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 -
8th May 2016 at 7:13 pm #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)
-
8th May 2016 at 9:14 pm #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 -
8th May 2016 at 10:36 pm #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)
-
9th May 2016 at 12:03 am #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 -
9th May 2016 at 7:57 am #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:
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 -
9th May 2016 at 8:13 am #6373
FINALLY – I can see the problem!!! A very small mistake, but very important. Use underscore (_) not dash/hyphen (–)
Nigel
My personal kiwitrees site is www.our-families.info -
9th May 2016 at 4:08 pm #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)
- The topic ‘Menu icons’ is closed to new replies.