The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
17 views

Displaying Logged-In User Name in Wordpress Menu

I'm using Wordpress with UserPro, and want my menu to display the logged-in user's first name, linked to the user profile page. The problem is that in my menu structure, the "Profile" menu option is ...
0
votes
0answers
4 views

How to exclude categories as well as their respective thumbnails from custom prev-next navigation?

I added the following to my functions.php file: function wyrta_post_nav() { global $post; $exclude_cats = "8"; // Don't print empty markup if there's nowhere to navigate. ...
0
votes
0answers
12 views

How to direct the navigation bar into an iFrame?

I'm designing a small iFrame layout. In my layout, I already have my navigation bar created and working properly. Though I want to redirect the pages linked in my navigation bar into the iFrame or ...
0
votes
0answers
15 views

Need help to build a menu with WP_NAV_MENU function

I have a markup where using table tag for menu creation. This is quite simple but noticed when multiple submenu exist then structure is changed. In this case i don't get any appropriate way to build ...
0
votes
1answer
14 views

How to remove the word “Navigation” from the top of the mobile main menu?

How can I remove the word "navigation" from the top of www.kpvitamins.com? I also would like to remove the entire navigation because as you can see at the top, I have a different one.
0
votes
1answer
7 views

Exclude post format from navigation

I would like to exclude the post format "image" from the navigation at the bottom of my single posts. How would I be able to amend the following code to exclude the "images" post format? if ( ! ...
0
votes
0answers
18 views

Add default wp_nav_menu classes to my custom links

I'm adding custom menu items with wp_nav_menu_items filter. The structure is very simple, some "li"s with "a" inside. The point is, is there a way to have wordpress defaults menu calsses (like ...
0
votes
0answers
5 views

Have pre defined menus when developing a theme

I am trying to develop a theme with customizable menus, like a header with menu options and footer with menu options. In my theme menu page right now, in "Select a menu to edit" there are only 2 ...
0
votes
0answers
9 views

How to add checkbox in navmenu at frontend?

I have a query and want the solution for that. Can I add some checkbox in nav menu in frontend so can I perfome some ajax filter. Like this if yes then please show me the right way to do this.
0
votes
1answer
19 views

Check in walker if current page is descendant

I hope this isn't a dup -- I wasn't able to find it! My goal is to, in my custom walker, append the current-menu-ancestor class to a menu item if it's an ancestor (no matter how deep) of the ...
-1
votes
0answers
19 views

Change “Back” button text depending on where you came from? [on hold]

I have added a custom "Back" button to the product pages of a website I am working on. I used this code: <input type="button" value="Back" onclick="window.history.back()" /> However, I ...
0
votes
0answers
14 views

How to add show/hide in navigation setting for pages

I'd like to add a checkbox for each page's edit page that decides whether or not that page shows up in navigation. How can I achieve something like that in WordPress? Thank you!
0
votes
0answers
9 views

How to keep the sort order or filter applied in prev/next navigation?

I have an online shop (apartments for rent) using Woocommerce in Flatsome theme. The viewer can sort using the Woocommerce sort by dropdown menu, and filter items using Woocommerce filter widgets. ...
1
vote
0answers
18 views

Get Adjacent post by search query

I want to get previous/next post, but to keep that within the same search query (I keep the searched terms from the previous page via the URL.) Is there any way to do this? It doesn't seem to be in ...
1
vote
1answer
16 views

Programmatically (PHP) get the nr. of items in the primary navigation menu

I need to get the nr. of items in the primary navigation menu. I need this to determine the width in percentage of each list item. So I also need to change/add to the css width attribute of the list ...
0
votes
0answers
14 views

“Pagination” for Posts with next/Prev navigation outside loop

I would like to list all posts from a category or all posts on one Page and add a navigation on the right side, so outside the loop which loads my posts. i found this post whick has a similar ...
0
votes
1answer
61 views

'get_previous_post' in same category returning (!empty) when no previous post in category exists

I'm trying to use the Smarter Navigation plugin to work so that when I click on an individual post from the category page, the single post navigation only goes to the next post in the same category. I ...
0
votes
2answers
33 views

Page and Posts loading as index page? Not loading the content

I've been developing a website on wordpress for some time now and came across some issues but until now I could figure it out, not today... Yesterday I've worked some more on the website and today ...
0
votes
0answers
20 views

How to add class and span to

First of all this is my first wordpress theme where im making So i want to add class to <a> and <span> in navbar and want to looks like this <a class="menu_top" ...
0
votes
0answers
63 views

Help needed for custom walker menu

need a help. I developing a WordPress woocommerce template with yamm 3 megamenu . but i am having some problem with my complex navigation structure. can anyone help me how to convert following code ...
0
votes
0answers
56 views

Add custom menu item metabox in Navigation Settings

I've been imagining a piece of functionality that would extend the WordPress drag and drop menu creation. Essentially adding a custom menu item button that would be used to add different types of ...
0
votes
0answers
18 views

Add a menu to a specific page when specific page

I have a separate page. An additional menu should come in that page. How i can get this done? Any help or links which I can try would be a really help!
0
votes
0answers
6 views

Select a widget from appearance menu

i'm creating a mega menu in WordPress and i need to add a widget field to select a widget area form appearance menu than show the selected widget width the_widget( 'widget_name' ) function
0
votes
1answer
66 views

Full-Ajax Theme: parseJSON error while building a JSON object from a Wordpress custom template

Trying to make a full-ajax navigation on my new portfolio, I read online on a few different blog that building the templates using JSON would be easier in order to treat the datas however I want. It ...
0
votes
0answers
20 views

wordpress sub-menu (subpages) displayes in different columns

I'm working in Wordpress, and I'm having an issue, the sub-menus or sub-pages on the navigation, are displayed in columns of 2. So if I have the page Clients and the subpages client1, client2, client3 ...
0
votes
3answers
131 views

Add sidebars to navigation menu?

Is it possible to add a sidebar to navigation menu? I'd like to be able to add sidebars in Appearance > Menus, like I add pages. I have a way of creating extra sidebars, so that's not an issue (I ...
0
votes
0answers
12 views

How Can I Add Extra Div Tag On nav menu [duplicate]

hello I want To Add Extra Div tag On nav menu Like This div class="vce-wrap-left"> <ul id="vce_top_navigation_menu" class="top-nav-menu"><li id="menu-item-374" ...
0
votes
1answer
20 views

Forcibly show previous/next links

I want to design the previous/next links on a fresh WP install with only the one single post but cannot see them and therefore cannot control my design. How can I force WP to show the page navigation ...
0
votes
0answers
37 views

Next/Prev post with same multiple custom taxonomies

How can I link to the next and previous post only if they have the same terms in two different taxonomies? I can use get_adjacet_post, get_next_post and get_previous_post but they only let me ...
0
votes
1answer
29 views

Ecommerce Single Product Next Product Link

I have tried using the default wp next and previous link but when click it would go to another category post instead of the next post(product) previous_post('&laquo; &laquo; %', 'previous', ...
0
votes
0answers
56 views

How can I organize nav menu lists as columns in WordPress?

Here’s what I am having a hell of a time with. I'm working on a dev site (which is WordPress based) that can be seen here. You see the responsive navigation for the ‘Course Schedule’ section is ...
0
votes
1answer
39 views

Navigation for custom loop

I have a website I'm working on with 3 custom loops next to each other: Station LV I need separate navigation for older posts for each loop. But I'm having problems seting it up: <?php ...
0
votes
1answer
239 views

How to get a different mobile menu than desktop menu in the twentytwelve child theme

I would like to use a different menu for my mobile website than my desktop website. With different I mean the content not the layout. I just want to use the mobile menu of the twentytwelve theme. ...
1
vote
3answers
54 views

Benefits of using Nav Walker?

Are there any benefits to using a nav walker class over iterating through wp_get_nav_menu_items()? Nav walkers seem very clunky to me and iterating over an array feels easier and more re-usable but ...
0
votes
1answer
15 views

Mobile navigation is shown, but standard navigation does not disappear

I have setup that website berlin-permanent-makeup.de and the mobile navigation kicks in, as soon as the screen is smaller than 800 px wide. So far, so good. My problem is, the standard navigation ...
0
votes
0answers
62 views

How to identify the current page in a custom wordpress navigation menu code

I am building a custom navigation menu in WordPress, where I have 2 level of depth; parent and direct child sub items. Some items are leaf though. I want all parent items to have no url so that I can ...
0
votes
0answers
23 views

hide some nav menu items to non-localhost visitors, based on ip?

For a work extranet website i have a website that's fully accessible on premises. The website is now also fully accessible from outside as well. There are however some level 1 nav items with sub menu ...
0
votes
0answers
64 views

How can I add recent posts to menu like mashable

I would like create a mega menu that uses recent posts for hover state. Like When you hover a submenu you get a list of recent post relevant to that menu item like in Mashable. I I would like a menu ...
0
votes
0answers
35 views

How to create a mega menu with latest posts of certain categories per tag?

I have the following menu: -Category1 ----tag1 ----tag2 ----tag3 -category2 ----tag1 ----tag2 ----tag3 etc.. The category1,2,.. are empty placeholders to hold the submenu tags. Could someone ...
0
votes
0answers
36 views

Active class in primary Nav and Custom Post Types

On the following Dev site (http://fcr.betaforming.com/), a "current-menu-item" and/or "current-page-parent" type class isn't getting added to the nav for individual blog posts or any of my other ...
0
votes
1answer
88 views

How to display only posts assigned to a particular, isolated, subcategory

I am trying to set up my wp site where I use posts assigned to categories and subcategories (about 3 levels). I have a list of 1st level categories as my primary menu. When clicked, the intended ...
0
votes
0answers
20 views

How to echo text from higher level of nav

I'm building a site with three levels of nav. Primary is your standard nav in the header of the page. Second level of nav is below that primary header. Tertiary level of nav is on the sidebar. In ...
0
votes
1answer
23 views

Missunderstanding of Wordpress menus

I made my first Wordpress plugin and I have couple questions regarding menus. When I activate default Wordpress theme "Twenty Fourteen" I can see navigation menu on top of page. My plugin, upon ...
0
votes
1answer
14 views

Children Pages Displaying Only Intermittenty

Created a sidebar that lists WP's default pages' children. Yet there is some intermittent behavior where the sidebar lists the directory correctly on one page, but nothing on another. Live examples ...
0
votes
1answer
110 views

Display Menu Navigation Label

How to get Navigation Label as should be of the menu I'm using this code <?php $locations = get_registered_nav_menus(); $menus = wp_get_nav_menus(); $menu_locations = ...
0
votes
0answers
23 views

How to add scripts or attributes into wp_nav_menu?

This is my original list Menu which inlude the scripts. <li> <a href="/" data-start="color: rgba(255, 255, 255, 1);" data-300="color: rgba(160, 199, 52, 1); ">Home ...
0
votes
1answer
224 views

How to add schema.org SiteNavigationElement and property URL to navbar?

I would like to add the schema.org SiteNavigationElement and the relative url property to the links of the navbar. I have the following: <nav class="navbar navbar-default navbar-fixed-top" ...
0
votes
2answers
51 views

How to make an anchored page in a navigation menu tab

In my header navigation, I would like a menu tab to direct the user to open a page and directly take them to an anchored point in that page. Does any one know how I can accomplish this in WordPress? ...
0
votes
1answer
42 views

Target Internal Link Of Another Page On Website

In the Edit Menus page, you can select an internal page to link, or an external page. I am building a giant single page where the hyperlinks target internal page headings, for example I have one of ...
0
votes
0answers
14 views

Loop within category's posts

I'm trying to figure this out since a couple of days, and even though it should be a quick and easy thing, I couldn't find any workaround. I've 4 categories, and each of it has between 10 and 40 ...