Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How to remove icons from NAV menu?How to remove icons from NAV menu?
Previous
 
Next
New Post
3/30/2009 2:33 PM
 

Thank you for introducing firebugs to me. It is impressive.

I think I understand what your solution. The problem as I see it that it depends of direct access to the tabs and it rely on their arbitrary IDs while the tabs are not available at the skin level.

My code is pasted above. I can paste the entire ascx if needed.

Thanks guys

 
New Post
4/3/2009 1:18 PM
 

I'm not sure why the example I provided is not working for you.  It works perfectly for me all the time with both DNN Nav and Solpart.  Another approach is to go for the ".icn" class using style cascades again to ensure you only hit the one menu and not the other.  Firebug should be able to help with that, doing something like described above with a wrapper class you could then have in your css #wrapper .icn { display: none; } or #wrapper IconHidden { display: none; } .  These should be going into your skin.css file, too.

There should be no reason why any of these examples wouldn't work unless there is something more to your skin that is not shown here or you are not implementing them properly ie wrong css file or typo somewhere.  Also, sometimes an error in a skin can cause domino effect in the skins functioning, affecting things you wouldn't expect, so be sure to check for errors or problems elsewhere in the skin that may be causing these valid examples to not work for you.


JOHN GIESY
DotNetNuke Hosting Expert

DotNetNuke 7 Hosting $70 /year
DNN4Less.com Team DotNetNuke  

New Post
4/3/2009 2:50 PM
 

Thank you Rick.

I tried to isolate the problem so I went back to DNN original skin - index full under MinimalExtropy.

This is what I did:

File Index full.ascx: Changed line: <dnn:NAV CSSIcon="IconHidden"runat="server"id="dnnNAV"ProviderName="DNNMenuNavigationProvider"IndicateChildren="False"ControlOrientation="Horizontal"CSSNodeRoot="main_dnnmenu_rootitem"CSSNodeHoverRoot="CSSNodeHoverRoot"CSSNodeSelectedRoot="main_dnnmenu_rootitem_selected"CSSBreadCrumbRoot="main_dnnmenu_rootitem_selected"CSSContainerSub="main_dnnmenu_submenu"CSSNodeHoverSub="main_dnnmenu_itemhover"CSSNodeSelectedSub="main_dnnmenu_itemselected"CSSContainerRoot="main_dnnmenu_container"CSSControl="main_dnnmenu_bar"CSSBreak="main_dnnmenu_break"/>

File Index full.css: Added line: .IconHidden {display:none;}

It sure took some effect: It removed all icons from all sub-items of the menu (e.g. the host menu sub-items) but did not affect the top level which is what I need.

I then went to FireBug and looked at the relevant HTML. This is what I've got:

<span class=""><img id="dnn_dnnNAV_ctldnnNAVicn57" src="/DNN/Portals/0/action_help.gif"/></span>

Note the the class field is empty. If I manually insert the correct class (IconHidden) then it indeed removes the unwanted icon. I wonder how I can change the skin files to make this change permanent.

 

Shaul

 
New Post
4/6/2009 10:00 AM
Accepted Answer 

Then go after the <img> tag using your menu css wrapper class:  #wrapper img {display:none}.  That should cause any and all <img> tags to not display in the menu. 


JOHN GIESY
DotNetNuke Hosting Expert

DotNetNuke 7 Hosting $70 /year
DNN4Less.com Team DotNetNuke  

New Post
4/6/2009 3:39 PM
 

This one did it! Thank you so much Rick.

Let me summarize the solution for the benefit of the other users.

The goal was to remove icons from the top-level entries of a NAV menu. Apparently, CSSIcon affect only the sub-menu items but has no effect over the top level. To remove the icons from the menu top level you have to do as follows:

In the .ascx file wrap the NAV entry with a <div> tag as in the following example:

                            <div id="menuwrapper">
                                <dnn:NAV ID="dnnNAV" runat="server" ControlOrientation="Horizontal"
                                    CSSBreadCrumbRoot="main_dnnmenu_rootitem_selected" CSSBreak="main_dnnmenu_break"
                                    CSSContainerSub="main_dnnmenu_submenu" CSSNodeHoverRoot="main_dnnmenu_rootitem_hover"
                                    CSSNodeHoverSub="main_dnnmenu_itemhover" CSSNodeRoot="main_dnnmenu_rootitem"
                                    CSSNodeSelectedRoot="main_dnnmenu_rootitem_selected" CSSNodeSelectedSub="main_dnnmenu_itemselected"
                                    ExpandDepth="1" IndicateChildren="False" PopulateNodesFromClient="False" ProviderName="DNNMenuNavigationProvider"
                                    StartTabId="-1" ToolTip="Description" >
                                </dnn:NAV>
                            </div>

Make sure to assign some 'id' ("menuwrapper" in this case) to the div tag.

In the corresponding .css file define an id selector class (I think this is what it's called)  corresponding to the above id:

#menuwrapper img {display:none;}

Note that the id (menuwrapper) must match the one in the .ascx file.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How to remove icons from NAV menu?How to remove icons from NAV menu?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out