Upon reviewing the admin toolbar generated by your plugin (frontend), I noticed the following:
To assist, the following file is affected:
/wp-content/plugins/wpdiscuz/class.WpDiscuzCore.php (Lines 2608-2625)
Also, until you decide to update your plugin, the code snippet provided below can be used to accomplish the same. Click here for result.
Cheers!
Code Snippet: (Change Admin Toolbar Sub-Menu Links)
function change_admin_toolbar_sub_links_frontend_wpdiscuz() {
if ( is_admin_bar_showing() && current_user_can('administrator')) {
global $wp_admin_bar;
$wp_admin_bar->remove_node('purgeAllCaches');
$args = array(
'parent' => 'wpdiscuz',
'id' => 'purgeAllCaches',
'title' => esc_html__( 'Clear Cache', 'wpdiscuz' ),
'href' => esc_url_raw( wp_nonce_url( admin_url( 'admin-post.php?action=purgeAllCaches' ), 'purgeAllCaches' ) ),
'meta' => [ 'title' => esc_html__( 'Clear Cache', 'wpdiscuz' ) ],
);
$wp_admin_bar->add_node($args);
global $wp_admin_bar;
$wp_admin_bar->remove_node('purgePostCaches');
global $post;
if ( ! empty( $post->ID ) ) {
$args = array(
'parent' => 'wpdiscuz',
'id' => 'purgePostCaches',
'title' => esc_html__( 'Clear Cache of this Page', 'wpdiscuz' ),
'href' => esc_url_raw( wp_nonce_url( admin_url( 'admin-post.php?action=purgePostCaches&post_id=' . $post->ID ), "purgePostCaches" ) ),
'meta' => [ 'title' => esc_html__( 'Clear Cache of this Page', 'wpdiscuz' ) ],
);}
$wp_admin_bar->add_node($args);
}}
add_action('wp_before_admin_bar_render', 'change_admin_toolbar_sub_links_frontend_wpdiscuz', 999 );
]]>I’m new to web design and am working on a WordPress site from a local docker environment I set up.
I’ve built a header navigation menu using your plugin but I don’t want any icons beside each menu item even when they have sub-menus. There is no “None” option in the “Submenu Icon” dropdown. I tried editing the frontend.css file as it’s the only one I can see that has the classes listed that show up when I inspect the arrow icons. Everything I’ve tried doesn’t appear to work and the arrows load every time.
Any advice you can offer would be appreciated. Thanks for your time and thanks for making this plugin!
]]>In mobile, when I click in the collapse to open the “Store” option, it doesn’t open.
https://ibb.co/cx0X81B
Otherwise, when I hover the same option in desktop version, it opens
https://ibb.co/SPtWc3L
Is there something I can do to solve this on my side, or is it a bug?
Thank you
]]>I recently added 3 new languages to my site while I already had 3 others and I wanted to add them to my main menu where i have this structure:
Current Language as the main menu item and then as sub items I have English, Language 1, Language 2
Now when I added Language 3, Language 4 and Language 5 and I drag them as sub items to the Current Language menu, after I save they refuse to become sub-items and show as Language 3 (Pending) instead.
Any idea why this might be?
The result of them not wanting to become sub-items is that they flooded now my actual main navigation of the website.
]]>This is fine, however I want the menus to open on click, rather than hover. To achieve this I select ‘open on click’ from options in the editor. Perfect!
Now on the front end, as expected the submenu opens fine on click, and then the next level sub menu opens fine on click. Now if I want to open up another submenu from the second level, I go to click it but the whole menu closes. This is because the “aria-expanded” label gets changed to “false” on all level of submenus when I click twice within the submenu, or try and change the focus to a different link.
I expect the first submenu to stay open, as I open and close the next level of links within it. Then if I clicked out of the entire nav, all submenus will close.
How can I change the how this functions?
I realise that may have got confusing so here is a screen recording of the issue – https://capture.dropbox.com/aI0dfUVZfYFsWzhv
Thanks
Ash
]]>Been trying to optimize a page but no matter what optimization level I choose, the sub menu in the header keeps messing up.
The styling is gone and the sub menu items stay visible all the time.
How can I fix this?
The header is created using a theme builder called Jupiter X and I’ve already tried to exclude the Jupiter X form optimization but that did not work.
]]>When looking at the Featured Work Page, before scrolling, you can see that the black Title Bar (“Featured Work”) hides the sub-menu items, when clicking on the Main Navigation. When scrolling down past the Title Bar this isn’t an issue, but Title Bar hides the sub-menu at the top of the page.
Is there a way for the Menu (and sub-menu items) to always appear “on-top”?
How can I fix this?
]]>