nerdess
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Add active class to custom Walker itemsI’ve added the active class to the walker like this:
1. copied the class Walker_Nav_Menu into functions.php
2. extended it (just like you did)
3. added an active class like this changing start_el a bit:$activeMenuItemClass = (in_array('current-menu-item', $item->classes)) ? ' class="nav-selected"' : ''; $output .= $indent . '<li'.$activeMenuItemClass.'>';basically, all you need to do is finding out if the key “current-menu-item’ appears in $item->classes and if so you know that this item is the active one and you can attach any class you like to it (or even just simply use the key itself as a class)
Forum: Plugins
In reply to: [Contact Form With Captcha] Warning: Illegal String Offset 'text_string'so i figured out: the issue is cos of sloppy code 😉 either switch off the display of php warnings or change cfwc-main.php so that you check in the affected lines if $options[‘text_string’] actually exists. like e.g. so in line 214:
before:
if ("parallel" == $options['text_string'])better:
if (isset($options['text_string']) && "parallel" == $options['text_string'])______
edit: you can also grab the modified cfwc-main.php file from my github account: https://github.com/nerdess/contact-form-with-captcha/blob/master/cfwc-main.php
Forum: Plugins
In reply to: [Contact Form With Captcha] Warning: Illegal String Offset 'text_string'I have the exact same problem as described by rivalarrival
Forum: Plugins
In reply to: [Slideshow Gallery LITE] Slideshow Gallery doesn't show uphad the same problem with slideshow gallery, adding wp_head() to header.php fixed it, see:
@nerdess Is it possible that wp_head() or wp_footer() tags are missing from the theme's header or footer files? That could be the cause
— Tribulant Software (@tribulant) August 6, 2013
Forum: Plugins
In reply to: [Slideshow Gallery LITE] tid is not definedhad the same problem, adding wp_head() to header.php fixed it, see:
@nerdess Is it possible that wp_head() or wp_footer() tags are missing from the theme's header or footer files? That could be the cause
— Tribulant Software (@tribulant) August 6, 2013
Forum: Installing WordPress
In reply to: Links won’t work after migrating from localhostAnd the same for the post_content table:
UPDATE wp_posts SET post_content = replace(post_content,"http://localhost/wordpress","http://blablabla.de")Forum: Installing WordPress
In reply to: Links won’t work after migrating from localhostErr… Edit the posts and fix the links? These are actually in your post content. There is no fix short of actually going in and fixing them.
@otto42: What about a database query?
Something like
UPDATE wp_posts SET guid = replace(guid,"http://localhost/wordpress","http://blabla.de"):o)
Forum: Fixing WordPress
In reply to: 2.5 editor not saving with FirefoxHeeey there….had the same issue, asaozz solution works just fine! thx :o)
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] – single image commentsBeing able to comment on a gallery would be cool to 🙂
Forum: Fixing WordPress
In reply to: Update Permalink Structure in 2.5yep, ericr23 is right. If you need to update your permalinks, just click the “save” button in Settings->Permalinks 🙂
This little hint helped me a lot to get the NextGen Gallery permalinks to work.