Hallo vielleicht kann mir ja jemand helfen
ich möchte das hier: http://www.energieblog24.de/ auf der linken Seite die Unterkategorie "test" eingeklappt ist und erst sichtbar wird wenn man auf "windenergie" klickt.
Habe dieses Plugin in den richtigen Ordner geladen.
http://www.texto.de/fold-page-menu…navigation-251/
Folgender Text soll ja in die Sidebar:
[COLOR=#000000]<?php[/COLOR] [COLOR=#B1B100]if[/COLOR] [COLOR=#009900]([/COLOR][COLOR=#990000]function_exists[/COLOR][COLOR=#009900]([/COLOR][COLOR=#0000FF]'fold_page_menus'[/COLOR][COLOR=#009900])[/COLOR][COLOR=#009900])[/COLOR] [COLOR=#009900]{[/COLOR] [COLOR=#000000]?>[/COLOR]
[COLOR=#000000]<?php[/COLOR] wp_list_pages[COLOR=#009900]([/COLOR]fold_page_menus[COLOR=#009900]([/COLOR][COLOR=#009900])[/COLOR][COLOR=#339933].[/COLOR][COLOR=#0000FF]'title_li=<h2>Seiten</h2>'[/COLOR][COLOR=#009900])[/COLOR][COLOR=#339933];[/COLOR] [COLOR=#000000]?>[/COLOR]
[COLOR=#000000]<?php[/COLOR] [COLOR=#009900]}[/COLOR] [COLOR=#B1B100]else[/COLOR] [COLOR=#009900]{[/COLOR] [COLOR=#000000]?>[/COLOR]
[COLOR=#000000]<?php[/COLOR] wp_list_pages[COLOR=#009900]([/COLOR][COLOR=#0000FF]'title_li=<h2>Seiten</h2>'[/COLOR] [COLOR=#009900])[/COLOR][COLOR=#339933];[/COLOR] [COLOR=#000000]?>[/COLOR]
[COLOR=#000000]<?php[/COLOR] [COLOR=#009900]}[/COLOR] [COLOR=#000000]?>
meine Sidebar sieht so aus:
[/COLOR]
<div id="nav">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?>
<h3>Kategorien</h3>
<ul>
<?php wp_list_categories('show_count=0&title_li=&hierarchical=1'); ?>
</ul>
<h3>Archiv</h3>
<ul><?php wp_get_archives('type=monthly'); ?></ul>
<h3>Seiten</h3>
<ul>
<?php wp_list_pages('title_li=&sort_column=menu_order' ); ?>
</ul>
<?php wp_list_bookmarks('category_before=&category_after=&title_before=<h3>&title_after=</h3>' ); ?>
<?php endif; ?>
<!--
<div class="box">
<h3>Suche</h3>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
</div>
<h3>Meta</h3>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
<?php wp_meta(); ?>
</ul>
-->
</div> <!-- nav -->
</div>
<div id="subnav">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?>
<div class="box">
<h3>Internet-Tipps</h3>
<p><strong>Ein Business-Portal zur Demonstration eines Wordpress-Themes für eine moderne <a href="/">Website.</a>
</strong><br/>
<img src="<?php bloginfo('template_directory'); ?>/bild/google-ad.jpg" alt="Google-Ad" />
</p>
</div>
<?php endif; ?>
</div> <!-- subnav -->
Alles anzeigen
Hatte den Code erst ans Ende eingefügt aber das funktioniert nicht :(
Wo muss ich den Code genau einfügen? Oder mach ich sonst was falsch?
Kann mir bitte jemand weiterhelfen?
Wäre sehr nett
Lieben Gruß