Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

Bugfix for menus.php allowing icon customization in Menu 1

Old Aug 5, 2013, 04:26 PM
12 posts · Aug 2013

I just squashed a bug that was preventing me from styling the icons in Menu 1.

The issue is that I have my blog set up to use the http://site.com/?cat=1 style of URL. When your bfa_simplify_wp_nav_menu() function ran, it created class names of cat-?cat=1, which is not valid CSS and could not be matched (at least in Chrome).

Small-scale solution is to add the following line right before adding slugs to new_classes (line 175):
$slug = str_replace (array('=', '?'), '', $slug);
Obviously, for a wide-scale production you'd want to instead use a regular expression to exclude any characters that aren't CSS class-name safe, but this worked for me.

Best part is that fixing the issue there makes the generated code on the "Using Menu Icons" admin page generate properly.

In any event, thanks for the great theme and I look forward to further unpacking it.
Old Aug 5, 2013, 06:18 PM
juggledad's Avatar
23,700 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
there is a known bug with the way the theme handles the different forms of permalinks that has been passed onto the developer.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Child sub menus overlap parent menus on H-Page menu bar cainj99 Page & Category Menu Bars 0 Jan 6, 2012 02:12 PM
BUGFIX 364-09: Page/Post titles show double after installing BUGFIX 364-08 juggledad Old Version fixes and change logs 0 May 17, 2011 11:54 AM
BUGFIX 353-01: Fix styling when using the new WordPress menus juggledad Old Version fixes and change logs 13 Nov 8, 2010 03:20 AM
[SOLVED] BUGFIX - 343/344 - COMMENTS FEED ICON area of the css.php has an error juggledad Old Version fixes and change logs 0 Oct 15, 2009 03:54 PM

All times are GMT -6. The time now is 06:11 AM.

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.