.widget ol, .widget ul {
line-height: 1.5;
}
I have tried many other solutions from the forum but so far none gave me the result I need.
I am using Max Mega Menu plugin and do not see anywhere how to adjust this issue. All of my padding top and bottom are set at 0px and my other menus look fine.
Thank you for your help
When I create a menu, like a small submenu (4-5 items) and I try to add that submenu to a mega menu using the default custom menu widget by WordPress, the submenu isn’t displayed. If I check the page source code, I can see that the menu is actually there in the code but I can’t visibly/physically see the submenu inside the mega menu (frontend). I don’t get it. The menu is there but it’s not visible. I have played with every possible feature of the plugin and even disabled other plugins but still the custom menu widget doesn’t show up inside a mega menu only the custom menu widget title that is displayed.
Theme : Shop Isle
Plugin: Max Mega Menu
https://www.ads-software.com/plugins/megamenu/
]]>The problem occurs when I use is_active_sidebar() to test and it returns true, and the user hasn’t created a custom menu widget (only other widgets), so there needs to be a wp_list_pages() if there isn’t a custom menu widget, or some other function to create a default navigation.
Suggestions?
]]>I’m using the Genesis framework and the Education Pro child theme.
I created a Category called International Students Posts
I created 3 posts with this Category
I created a menu called International Students Posts, and put one item in it – the Category International Students Posts
I added the Custom Menu widget to my sidebar, and selected the menu I created
On my page, in my sidebar, I see a link to the title of the custom menu, and when I click it, I land on a page with the three posts from that Category. This is NOT what I expected, or what I am 99% sure it did when I first tested this functionality for this site.
The way I thought it worked before is that I would see the title of the custom menu, and then a link for each of the 3 posts listed below that in my sidebar. I could then click on each post, and see each page individually.
I feel as if I have gone crazy – or perhaps just spent too much time at my computer.
Have you seen this before?
Is this the expected behavior?
Is there something else I need to accomplish the desired state?
Thanks!
]]>https://www.ads-software.com/plugins/woosidebars/
]]>I’m on WP 4.4 running with a Twentysixteen child theme. I’m displaying a custom menu in my sidebar using the Custom Menu widget. I want to show a menu item only for Authors, Editors & Administrators in the menu. To do this, I have added a function in my child theme’s functions.php. The code for this function is as follows…
function add_dynamic_link ($items, $args) {
if (current_user_can ('publish_posts')) {
if ($args->menu == 'Sidebar') {
$items .= '<li><a href="/teamspace">Teamspace</a></li>';
}
}
return $items;
}
add_filter ('wp_nav_menu_items', 'add_dynamic_link', 10, 2);
However, this does not have the desired result. The menu remains unchanged. I tried debugging the function by adding the following line of code at different points in the function.
echo $items;
From the debugging process, I could gather that the filter is being executed. The problem seems to be that the execution flow is not entering the following “IF” construct…
if ($args->menu == 'Sidebar') {
$items .= '<li><a href="/teamspace">Teamspace</a></li>';
}
Now, there exists a custom menu called Sidebar on my install. So this should not be happening. I tried changing the $args properties being validated. Instead of $args->menu == ‘Sidebar’ I tried using $args->menu == ‘menu-sidebar’ (the ID of the custom menu) as well as $args->container_class == ‘menu-sidebar-container’ but none of them works.
If I remove the problematic “IF” construct, the menu item shows in all the active menus on the site…not only the one in the widget.
What could I be doing wrong and how do I rectify it?
Thanks
]]>How do I go about doing that?
Thanks!
]]>I am using page builder and other widgets and plugin with this theme.
I want to style the custom menu widget, but I am not sure how to go about it.
I want the font-color: blue and I don’t want the “>” to be “none”
Sorry for the short hand but this would make the most sense, I think.
Thanks for all your help in advance.
Enjoy,
Jan
<div id="sidebar">
<?php
$metadata = get_post_meta (get_post()->ID);
$template = $metadata['_wp_page_template']['0'];
?>
<?php if (get_post_type() == 'portfolios' || (get_post()->post_title == 'Portfolio' && get_post_type() == 'page')) { /* portfolios */ ?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Portfolip') ) : ?>
<?php endif; ?>
<?php } ?>
<?php if (get_post_type() == 'download' || (get_post()->post_title == 'Downloads' && get_post_type() == 'page')) { /* download */ ?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Downloads') ) : ?>
<?php endif; ?>
<?php } ?>
<?php if (get_post_type() == 'page' && $template == 'book.php') { /* page */ ?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Book') ) : ?>
<?php endif; ?>
<?php } ?>
<?php if (get_post_type() == 'post' || (get_post_type() == 'page' && $template == 'page-blog.php')) { /* blog */ ?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Blog') ) : ?>
<?php endif; ?>
<?php } ?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar') ) : ?>
<?php endif; ?>
</div> <!-- end sidebar -->
As I am controlling what sidebars display on what pages without using templates which I can’t control in some cases (using Pods for custom content types). The generated html in one case is:
<div id="sidebar">
<div id="nav_menu-9" class="widget widget_nav_menu">
<h3 class="title">Downloads</h3>
<div class="widget_content">
<div class="menu-downloads-container">
<ul id="menu-downloads" class="menu">
<li id="menu-item-783" class="menu-item menu-item-type-post_type menu-item-object-download menu-item-783"><a href="https://127.0.0.1/download/godaddy-reseller-plugin/">GoDaddy Reseller Plugin</a></li>
<li id="menu-item-784" class="menu-item menu-item-type-post_type menu-item-object-download menu-item-784"><a href="https://127.0.0.1/download/site-change-detection/">Site Change Detection</a></li>
<li id="menu-item-785" class="menu-item menu-item-type-post_type menu-item-object-download menu-item-785"><a href="https://127.0.0.1/download/php-compare-directories/">PHP Compare Directories</a></li>
<li id="menu-item-786" class="menu-item menu-item-type-post_type menu-item-object-download menu-item-786"><a href="https://127.0.0.1/download/larrys-form-generation/">Larry’s Form Generation</a></li>
<li id="menu-item-787" class="menu-item menu-item-type-post_type menu-item-object-download menu-item-787"><a href="https://127.0.0.1/download/db-schema-management/">DB Schema Management</a></li>
<li id="menu-item-788" class="menu-item menu-item-type-post_type menu-item-object-download menu-item-788"><a href="https://127.0.0.1/download/validation-javascript/">Validation Javascript</a></li>
</ul>
</div>
</div> <!-- end .widget_content -->
</div> <!-- end .widget -->
<div id="nav_menu-10" class="clearfix widget widget_nav_menu">
<h3 class="title">Hosting</h3>
<div class="wrapper clearfix">
<div class="widget_content">
<div class="menu-hosting-container">
<ul id="menu-hosting" class="menu">
<li id="menu-item-856" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-856"><a href="https://127.0.0.1/hosting/">Website Hosting</a>
<ul class="sub-menu">
<li id="menu-item-864" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-864"><a href="https://127.0.0.1/hosting-plans/">Hosting Plans</a></li>
</ul>
</li>
</ul>
</div>
</div> <!-- end .widget_content -->
</div> <!-- end .wrapper -->
</div> <!-- end .widget -->
</div> <!-- end sidebar -->
Both widgets are Custom Menu widgets but notice that the first one doesn’t have the <div class=”wrapper clearfix”> div. This is causing me issues as that div has the following css applied and this is causing a blank space near the bottom of the widget:
#sidebar .widget .widget_content {
background: rgba(0, 0, 0, 0) url("images/sidebar_widget_separator.png") no-repeat scroll 0 0;
padding: 10px;
}
]]>