Jump to content

Archived

This topic is now archived and is closed to further replies.

circ2013

How do I prevent dms from inserting icon-down-angle

Recommended Posts

circ2013

I see in lib.theming.php that <span class="sub-indicator"><i class="icon icon-angle-down"></i></span> gets inserted if child pages are found just under line 117.  However, if I edit this file, how do I prevent updates from overwriting it?  This file isn't found in a section that I can add to my child theme.  Or is it?  I figured out how I could hide it with css, but it is still reserving 23 pixels to the right of every menu item that has a child page and this is making it so that I can't center my menu item within the <li>.  

 

Is there a function that I could add to my functions.php that would nuke this?  I added the function nuke_karma, could something like this be done to block/prevent this from getting added?

 

// Adds arrows and classes
class PageLines_Walker_Nav_Menu extends Walker_Nav_Menu {
...
 
if (!empty($children_elements[$element->$id_field]) && $element->menu_item_parent == 0) {
 
            $element->title =  $element->title . '<span class="sub-indicator"><i class="icon icon-angle-down"></i></span>';
$element->classes[] = 'sf-with-ul';
 
        }
 
if (!empty($children_elements[$element->$id_field]) && $element->menu_item_parent != 0) {
            $element->title =  $element->title . '<span class="sub-indicator"><i class="icon icon-angle-right"></i></span>';
        }
 
Thanks,
Scott
 
 

 

Share this post


Link to post
Share on other sites
Danny

Hi Scott,

 

There is likely a function you can use, I'll speak to our devs and see if this is possible. Also, please be aware that we do not recommend nor support amendments to core files.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
circ2013

Hi Danny,

 

Thank you and I understand that it is not recommended, but my client doesn't want the drop down arrows.  I know I could do the nav in several different ways, but I am trying really hard to use a few external plugins as possible, so I thought I would ask this question here before I abandon the Navi option for my primary menu.

 

Thank you again,

Scott

Share this post


Link to post
Share on other sites
Danny

OK, Scott. I have spoken to our developers and he has informed me that it's not possible unfortunately without using PHP that is serious overkill and isn't recommended. The best solution is to use CSS.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • Lisa Haran
      By Lisa Haran+
      Hi 
      I have a map here http://www.iloveoffset.com/maps/
      I want to add several pointer locations to the map, but when I do they do not appear.
      On this map there are 2 pointer locations and as you can there is only one visible.
      Earlier today I added 7 and could only see 4 so there is something odd going on.
      My theme is up to date
    • clj182
      By clj182+
      Hello,
      I've been having trouble unlocking the template section for past couple of weeks. When I try clicking nothing happens. 
      I've deleted my custom css and removed plugins. Im down to having only the following plugins:
      Akismet
      Contact Form 7
      DMS Professional Tools
      Pagelines Updater
      WooCommerce
      It was working fine before i have no idea what's going on with it.
    • flourishdesignstudio
      By flourishdesignstudio+
      My DMS 2 site http://www.heart-stone.com/ will not save any new custom css... I can still edit templates and publish those but any custom css that I enter never saves.
      All WP files, themes, and plugins are up to date. 
      Any thought about what might be causing this?
    • flourishdesignstudio
      By flourishdesignstudio+
      Is there a way to edit the custom CSS via FTP? I know I can edit the custom code in the Chrome editor but is there a file path I can use to find and edit the CSS directly from our FTP?
      Thanks in advance for the help!
    • nizami
      By nizami+
      Using navbar section with correctly configured WP menu to display main navigation at https://elenaangel.com. 
      All fine in desktop viewport. Menu displays twice in hamburger mode. How to fix this please? 

×