All Questions
43 questions
0
votes
0
answers
21
views
Is there any difference between widgets (used in order to manage menus) and register_nav_menus() in terms of performance?
I plan to add in the footer of my website 4 menu areas (such as "About us", "Services", etc.), each area with 3 or 4 links.
In terms of performances, should I use widget ...
1
vote
1
answer
87
views
Prev / Next menu item
I have a menu on the right-hand side of my website https://blazor-university.com/
Above the menu I want a link for the previous menu item, and the next menu item. I can't find anything that does this....
0
votes
1
answer
1k
views
Adding widget to sidebar which contains current page's submenu
Need to insert the sub menu of the current page into the current page's sidebar.
Is this possible?
What I'm interested in developing would be a menu that looks like this:
menuItem1 => subitem1, ...
0
votes
1
answer
13
views
How to point menu to my homepage
So basicially i have a long-long homepage where you can scroll down and find a services section, if you scroll down more you see important informations and etc. but i have a menu. I want to make the ...
1
vote
3
answers
2k
views
How to add class to <ul> and childs <li> of sidebar widget - Wordpress
Note : Please note that I create this theme to re-sell, so I need little bit good way to add it.
This is how I register the menus on my right sidebar:
if(function_exists('register_sidebar')){
...
1
vote
1
answer
769
views
PHP 7 - Class Method Compatibility Issue
Can anyone help me to determine what function/statement in this file causes the fatal error after upgrading to php 7.0? On php 5.6 everything works fine.
Error: "Declaration of theme_navigation::...
2
votes
1
answer
59
views
Wordpress menu deletes when trying to add a hook
I'm trying to customize the default Wordpress menus. Added this to my functions.php file and it makes my menus disappear. What is wrong?
function custom_novice_menu($args) {
$defaults = array(
...
1
vote
1
answer
7k
views
How to add widget in main menu
I want to display widgets in main menu. There are few plugins to do this and i already used in my previous projects. But now i want do without any plugin. I can create a custom sidebar and call this ...
1
vote
1
answer
4k
views
How to give custom classes to the WordPress Menu widget
I have created a custom menu widget, which is, in fact, a replica of the default widget provided by the core WordPress files.
But I am facing few challenges it is not able to accommodate my custom ...
0
votes
1
answer
490
views
Widget Logic - display on page and all child
I have problem with condition function in Widget Logic (worpdress).
I would like to display menu on subpage and all child set to it.
I use this:
global $post; return (in_array(1959,...
0
votes
0
answers
1k
views
Add Class to Custom Menu Widget ul
I'm trying to add a class to the built-in WordPress Custom Menu Widget. All I need to do is add a class to the ul, which has a default class of startup-list.
I've added the classes with jQuery but ...
0
votes
1
answer
93
views
Beyond widget side menu editing, with the php page, custom template
Looking to reorder the side sub navigation to match the postings.
How would I do this?
Here is the page:
http://www.testdevices.com/about-test-devices/staffexperts/
This is NOT controlled in the ...
0
votes
1
answer
107
views
How to list categories by page id in wordpress
I want to create a sidebar with below hierarchy.
All courses,
padi courses (these are pages)
---divetravel (these are categories)
---suba courses (these are categories)
Can someone help me out ...
1
vote
1
answer
66
views
Replace a menu with widget or a custom template file programmatically
I am using the child theme for customization and now I want to replace the top menu with a custom widget or a file that contains custom content, but the theme does not support hooks, filters and ...
1
vote
1
answer
662
views
How to add #navbar to all page links?
I have several Wordpress websites with large images at their tops, using 2013 child theme.
How to add #navbar anchor to all page links, so that the browser scrolls down a bit, when a user clicks a ...
2
votes
1
answer
72
views
'Pages' widget alternative for custom post types?
I want to make a menu from a hierarchical custom post type.
There is a default WordPress widget called 'Pages' that give you list of all the pages preserving their hierarchy.
Is there a way to use ...
0
votes
1
answer
228
views
How to add a toggle on the left side of my page?
How to add a toggle on the left side of my page and the content on the right side of my wordpress page.
The toggle should behave like a menu on the left side(the arrangement)and each heading would ...
0
votes
1
answer
549
views
wp_nav_walker that interacts with widgets to setup mega menu
I'm a newbie WordPress developer working on a WordPress theme project that demands mega menus as part of the main navigation.
I'm done with the front-end stuff, and now I'm trying to explore the ...
0
votes
2
answers
3k
views
How to Sync Menu, Widgets and other masters from Main Website to its Sub Site
I am using Wordpress Multisite Network and i am having problems regarding masters to its subsite. I am not able to see the widgets or Menus which were created on Main website to its Sub-site. When i ...
0
votes
0
answers
23
views
Any reason why widgets/menus get emptied when I updated custom theme code?
Deployed my site over git last nite, and client came back saying some menus in the the footer widgets had disappeared. I looked in the admin, and the widgets were still available but all the items ...
2
votes
2
answers
2k
views
Change HTML structure for custom menu in sidebar
I've been digging for documentation on how to change HTML output for the "Custom menu" which you place in optional widget. So its clear what I meen I have attached an image of the widget block here:
...
3
votes
1
answer
184
views
Which settings/options are saved on a theme-basis and how does this affect theme-switching?
I realized that when switching the theme (in my case to a child theme) some things don't stay the same:
Widgets
Menus
At least this is what I found out so far:
Widgets
Don't lose widgets when ...
2
votes
2
answers
5k
views
Override custom menu widget
I would like to override some mark-up and css (like <div class="soma_container"><ul class=""></ul></div>)styling on a chosen custom menu widget. How would I do that? Should be ...
0
votes
0
answers
32
views
What's the policy for building a theme that doesn't support widgets/menus?
I'm developing a minimalistic theme, and my plan is not to include menus or widgets in it.
The Theme Review page on wordpress.org states:
Whether implementing required, recommended, or optional ...
0
votes
0
answers
305
views
how to override menu widget?
I would like to customize the menu widget in sense to add some classes which would make it responsive. How do I override the default widget for menus?
I use a custom template which supports bootstrap ...
0
votes
1
answer
3k
views
How to avoid the <div> and <ul> which added when custon menu widget is used
I need to remove the custom menu widget
<div class="menu-main-container">
<ul id="main" class="menu">
from appearing above the <li>. Because of this two lines my menus are not ...
0
votes
1
answer
1k
views
"Widgets" menu doesn't appear
I'm developing a WordPress theme, which works great on my localhost and one of my live servers, but on my other live server the Widgets menu (from Appearance) doesn't appear. And yes, all 3 servers ...
0
votes
2
answers
838
views
Remove/Hide a Widget on a Custom Template
i want to make a custom template using Genesis..
I added a custom Menu just by adding a widget on WIDGETS section and placed it on the top right side of the page. But i want it to be removed in a ...
0
votes
1
answer
207
views
Simple form to add custom links to menu?
I currently have a menu set up called "sidebar links" with 5 custom URLs.
In my widgets section I have a Custom Menu which shows my "sidebar links" menu.
This basically gives my sidebar 5 links.
...
0
votes
1
answer
3k
views
Sticky menu for WP custom menubars
This seems simple, except that I am not able to figure it out.
In a wordpress theme, how can I make a custom menubar below the header image stick at the top after scrolling down the page?
Example ...
3
votes
1
answer
4k
views
How to register custom menu widget
I'm trying to register a custom menu widget programmatically with wp_register_sidebar_widget, but it doesn't appear in wordpress. I'm using remote call of that method (xml-rpc). Referring to codex I'm ...
1
vote
0
answers
126
views
Adding custom menu widget to sidebar programatically [duplicate]
I am trying to add custom menu widget to the sidebar. I am not working on wordpress directly, but I am using an xml-rpc calls to manage worpdress site (it is possible via http://wordpress.org/extend/...
2
votes
1
answer
743
views
Make compatible custom menu widget for Twitter Bootstrap
If I configure wp_nav_menu function, I can put the "items_wrap" option to achieve a nice navigation given by Twitter Bootstrap, thus: <ul class="nav nav-pills">%3$s</ul>. But, how to ...
1
vote
2
answers
6k
views
Creating a custom menu/widget area
I'm looking to create a /menu/widget area like the following site:
http://www.microsoft.com/en-gb/default.aspx
please see sections under downloads, security, support, about
is this considered a ...
0
votes
1
answer
5k
views
How to add social buttons like facebook and twitter in the footer of a theme?
Hi I own the blog camilamfotografia.com.br
and I'd like to add social buttons in the footer or in the navigation menu to link my site to facebook twitter flickr pinterest etc...
I have tried without ...
2
votes
3
answers
5k
views
Wordpress Custom Menu Widget Style
I am wondering if anyone knows the best method for splitting 1 custom menu widget (located in my sites footer) in to 2 columns. There are a total of 8 links, so I would like it to be split in to 2 ...
1
vote
1
answer
6k
views
Placing widget to menu
is there any way to display widget in menu. Actually what i want is "site stat" in the menu. (black area) At the right. link
11
votes
4
answers
11k
views
Add a custom walker to a menu created in a widget
I know how to add a Walker to a custom menu created by the theme (menu named primary in this example), but how can I target a menu thats created in a widget with the default wordpress custom menu ...
0
votes
1
answer
723
views
Recent Posts widget missing current_menu_item class
Unlike the (WP standard) Custom Menu widget, the Recent Posts widget does not add the current_menu_item class when a post is selected (being displayed).
This seems like a major oversight, am I ...
0
votes
1
answer
174
views
Catagorized hierarchy menu for PAGES!
Yes, I am a noob at all this so please excuse my ignorance! So, for the past couple of days, I've been searching for a drop down page menu widget, but I would like to have the pages separated into "...
-2
votes
1
answer
583
views
how to add multiple menu in custom menu widget?
how to add multiple menu in custom menu widget? i am using this theme. I am new to wordpress and i am unable to sort it out.
2
votes
1
answer
548
views
Custom Menus, Widgets & Conditional Statements
I'm employing custom widgets for my client because it's easy and they have several menus they need to create specific to site sections. I then want to allow them to add to the custom menu dynamically ...
0
votes
1
answer
178
views
menu in different page in different style
I have a one column page for the home page where I have a mega menu and in side the site there is another page called about us where the mega menu is present but it is in small format just like it ...