techgremlin
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: WP Minify] Mingle plugin collisionI’m having the same problem, seems to be adding a trailing slash using trailingslashit() on lines 571 and 669 to the document root, causing an incorrect path ie /path/to/site//path/to/folder/. I removed trailingslashit() from those 2 lines on mine.
Forum: Plugins
In reply to: [Plugin: Google XML Sitemaps] Doubt Regarding Generated XML Sitemap TimeI would also find that helpful, apart from that the plug-in works great.
Forum: Themes and Templates
In reply to: dynamic_sidebar WoesI’ve just realised this has been replaced by is_active_sidebar() in the new API, please disregard my above post
Forum: Themes and Templates
In reply to: dynamic_sidebar WoesDon’t know if anyone is still having this problem, but I got the above code that chaoskaizer posted working by adding in && dynamic_sidebar(1) to the code, previously the if statement would never return false, causing the sidebar to display nothing, instead of displaying the code inside the else statement.
Sidebar code:
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) && is_sidebar_active(1) ) { // there is active widgets for sidebar-1 // do something echo '<ul id="sidebar-1" class="xoxo">'.PHP_EOL; dynamic_sidebar(1); echo '</ul>'.PHP_EOL; } else { // no widget active for sidebar 1 // do custom sidebar stuff ... } ?>functions.php doesn’t need any further editing.