• hey there !

    I was using DIVI and im thinking of switching to Extra, but im having some issues and I can’t get your plugin to work, which would be a dealbreaker, your plugin is very important to me

    So basically I cloned my site and changed the theme to extra, and your plugin worked, but after making some changes to the menu and hitting save, it stopped working and your plugins options from the menu page don’t show up, im guessing it has to because extra has its own menu options for mega menus, divi and extra are from the same company “elegant themes” and essentially the same theme, so I think the problem is “just” that it doesn’t show the menu options, rather than it not working, this because it did work when I switched themes but not after hitting save on some menu edits I did

    Do you have any ideas on how I could fix this? I also posted it on the ET website but they will probably tell me that they cant provide support for a third party plugin, but maybe if you could provide more insight, they could fix it perhaps

    I guess I could sort out my menu in divi and then switch themes and not touch the menu options, but that could be messy if I need to make changes again later

    thanks in advance!

    • This topic was modified 8 years, 1 month ago by dlusionz. Reason: more clarity
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi dlusionz,

    in version 1.0.1 of my plugin, I noted in the changelog: “Added hook wp_nav_menu_item_custom_fields for compatibility with other plug-ins adding fields to the Appearances > Menus page.” and on my website I mentioned the change back then as well: https://blog.dianakoenraadt.nl/en/2015/04/category-posts-in-custom-menu-now-works-with-wp_nav_menu_item_custom_fields-hook/

    Reason: if everyone is editing the Appearance>Menus page, only the last plugin in line actually gets to edit that page.

    I cannot be 100% sure, but if Extra has options for Mega Menus, then yes that could be the case. If you contact them, please let them know that by adding the aforementioned hook, they are increasing their compatibility with multiple plugins out there.

    Kind regards,
    Diana

    Thread Starter dlusionz

    (@dlusionz)

    Hey there Diana ! thanks for the quick reply,

    Ive reached out to ET with the information you provided, their initial reply was commenting how it wasn’t part of WP Core that maybe they wouldn’t do it, which I guess I understand, but ill keep insisting, if not I guess ill stick to the divi theme, its a dealbreaker if I cant use your plugin ??

    Thread Starter dlusionz

    (@dlusionz)

    Hey there,

    Reporting back, here is the answer I got

    Hi, actually adding that custom hook to the Extra walker menu was discussed with the Dev team, and since that’s not a default wordpress hook, or it’s not the default functionality that come with Extra, I’m afraid you will have to try to customize it your self.

    Extra creates a custom menu walker, which is in the file called /wp-content/themes/Extra/includes/modules.php on line 1404.

    I don’t know much about this sort of thing, but heres whats on that line

    function init_extra_walker_categorydropdown() {
    	class Extra_Walker_CategoryDropdown extends Walker_CategoryDropdown {
    
    		function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) {
    			$pad = str_repeat( ' ', $depth * 3 );
    			/** This filter is documented in wp-includes/category-template.php */
    			$cat_name = apply_filters( 'list_cats', $category->name, $category );
    			$output .= "\t<option class=\"level-$depth\" value=\"".$category->term_id."\"";
    			$output .= '<%= typeof( data.' . $args['name'] . ' ) !== \'undefined\' && \'' . $category->term_id .'\' === data.' . $args['name'] . ' ? \' selected="selected"\' : \'\' %>';
    			$output .= '>';
    			$output .= $pad.$cat_name;
    			if ( $args['show_count'] )
    				$output .= '&nbsp;&nbsp;('. number_format_i18n( $category->count ) .')';
    			$output .= "</option>\n";

    Not sure how complicated it would be to make it work here, but hope you can help or point me in the right direction

    Thread Starter dlusionz

    (@dlusionz)

    I wouldn’t mind losing the custom mega menu that extra provides in order for this plugin to work, not sure if that makes it easier

    let me know if you have any ideas on how I could manage to pull this off

    Plugin Author Diana van de Laarschot

    (@anaid)

    Oof.. erm… I don’t have the Extra source code, so this is tough.
    What you can *try* is this:

    **Somewhere** in extra theme, there could be

    add_filter( ‘wp_edit_nav_menu_walker’, SOME_METHODNAME_FROM_THEME, SOME_PRIO, 2 );

    If so, try deleting that.

    Basically, calling add_filter with ‘wp_edit_nav_menu_walker’ tells WordPress that you want to substitute the default walker with your own. Both my plugin and the Extra theme could be doing that. (I expect so, but I’m being careful not to make assumptions on themes.)

    If not, you could consider replacing

    class Extra_Walker_CategoryDropdown extends Walker_CategoryDropdown {

    with

    class Extra_Walker_CategoryDropdown extends CPCM_Walker_Nav_Menu_Edit {

    and deleting all the code within the curly braces.

    BUT, I don’t know if that will work, because I don’t know if CPCM_Walker_Nav_Menu_Edit is accessible at that point in the code…

    Let me know if any of this works, ok?

    Kind regards,
    Diana

    Thread Starter dlusionz

    (@dlusionz)

    hey there !

    many thanks for your continued support !

    I couldn’t find the add_filter, so I went to the second tip you mentioned but it didn’t seem to work, going to take this back to the theme developers see if they are willing to help

    Im sending you a PM with the theme btw incase you want to give it a go, no pressure though im sure you have other things to do and at the end of the day I understand your plugin is free so I cant really ask for much

    thanks again !

    update !

    it seems these forums dont have a PM feature haha, let me know if you have an email where I could send you that

    • This reply was modified 8 years ago by dlusionz.
    Plugin Author Diana van de Laarschot

    (@anaid)

    Hi dlusionz,

    I try to keep an eye on the WordPress forums here, but yeah the plugin was an experiment way back in the day and all I do now is keep it running by checking it against the latest WordPress version.

    So anyway, in your WordPress profile you’ve indicated your website domain name. Can I reach you via info@thatdomain ?

    Kind regards,
    Diana

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Menu options hidden in Extra Theme (divi framework)’ is closed to new replies.