andreiluca / lightword Goto Github PK
View Code? Open in Web Editor NEWFree Wordpress Theme
Home Page: http://wordpress.org/extend/themes/lightword
License: GNU General Public License v2.0
Free Wordpress Theme
Home Page: http://wordpress.org/extend/themes/lightword
License: GNU General Public License v2.0
On Lightword 1.9.x I had a custom menu at the top of the site. I have one page, many top-level categories. Several of the top-level categories have sub-categories.
In the WP admin editor it looks something like this, where PX is a page, CX a category and CX-Y a subcategory.
P1
C1
C2
C2-1
C2-2
C2-3
C3
C3-1
C3-2
C3-3
C4
On LW 1.9.x this worked fine. Since upgrading to 2.x, the menu stops rendering everything after the first indent. In the above example, you wouldn't see C3 or its subcategories, nor C4.
If you move C3 so that it follows C1, it would appear but then C2 would dissapear. Starting again from the above, if you move C4 to follow C2 then it will appear in the menu, but C3 will still be missing.
I applied the patch suggested in your tweet (d719eca) and it helped, but didn't fix things.
To expand on the example I gave above, my exact menu is this:
A
B
C
+C1
+C2
+C3
+C4
+C5
+C6
+C7
+C8
+C9
D
+D1
+D2
+D3
+D4
+D5
+D6
E
+E1
+E2
+E3
+E4
F
+F1
+F2
G
H
+H1
+H2
+H3
+H4
With the fix applied, all the menus up to G appear on the top bar. H is missing. This happens to be the width of the page, but if I recall correctly LightWord 1.x wrapped the menus to a second row.
If I swap G and H, then H appears and G dissapears.
The bigger issue is that the sub-menus for C and D work properly, but E F just show the top-level, not the sub-categories. If I swap G and H around so that H renders the top-level category, it also fails to render subcategories.
I've looked at the generated source and things look fine in that there are no syntactic or structural differences between the submenus of C and D and the submenus of E, F or H.
I have uploaded the menu div section to https://s3-eu-west-1.amazonaws.com/nadtmisc/lightword_2_menu_bug_div.html if you want to take a look at it. Let me know if I can provide further config information to help debug.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.