also auf meiner Website Play-a-3 Play-a-3 unter der Seite Games hab ich eine Handvoll Unterseiten. Weil jedoch mein Theme die Unterseiten über ein Hover dann darstellt, wäre es unpraktisch wenn dann später die Liste länger wird. Ich dachte erst das ich die Posts einfach als Privat markieren müsste, jedoch hab ich gemerkt das sie dann für die meisten user nicht sichtbar sind. Wie kann ich die Seiten denn Verstecken/ den Hover wegmachen?
freshy 2 probleme
-
-
- Gerade eben
- Anzeige
Hallo!
Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.
- ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
- ✔️ Deutsche Server & DSGVO-konform
- ✔️ Persönlicher Support (kein 0815-Ticket-System)
-
Wenn Du Deine Navigation ganz normal mit <?php wp_list_pages('title_li='); ?> aufbaust, kann Dir der Codex helfen. Hier wird erklärt, wie man die Auflistung der Unterseiten beeinflussen kann.
-
würde das nicht die Navigationsleiste "verschwinden" lassen?
-
Was "das"?
-
<?php wp_list_pages('title_li='); ?> , ich kann mich auch irren.
-
Ist Deine Frage: "Würde <?php wp_list_pages('title_li='); ?> nicht die Navigationsleiste 'verschwinden' lassen?"?
Wie lautet denn der Code, mit dem Du Deine Navigationsleiste inklusive der Subpage-Auflistung erzeugst?
-
ok hat sich erledigt, hab die richtige codezeile gefunden. das heißt es wird dadurch nichts anders. nur, ich verstehe nicht ganz wie mir der Codex helfen soll, da dort steht wie man die Unter-seiten anzeigt. Ich will sie jedoch verstecken :S
-
Du kannst die Unterseiten mit folgendem Code modifizieren:
<?php wp_list_pages('title_li=&include=1,2,3'); ?>
oder
<?php wp_list_pages('title_li=&exclude=1,2,3'); ?>Für 1,2,3 nimmst Du die IDs der Unterseiten, die Du ein- bzw. ausschließen willst.
-
ah danke seh das immernochnet im Codex, aber das ist genau was ich gesucht habe. :-P
-
Also das Theme sieht zwar super aus, aber es ist einfach nicht verständlich :neutral:
Also ich habe aktuell folgendes Problem:
Wenn meine Leser auf meinen Blog kommen sollen sie sofort sehen können welcher Post von heute und welcher von gestern ist. deshalb wollte ich das Datum einfach immer ganz oben anzeigen lassen. (ähnlich wie hier: Playstation, PS3, PS2 und PSP News by play3.de )
Habe im Internet nichts hilfreiches gefunden, außer diesen Forenbeitrag :
http://forum.wordpress-deutschland.org/design/41151-b…mmenfassen.htmlLeider kann ich das ganze nicht bei meinem Forum anwenden/oder ich suche ganz falsch.
Meine index.php:
PHP
Alles anzeigen<?php get_header(); ?> <div id="content"> <?php include (ABSPATH . '/wp-content/plugins/fcs/gallery.php'); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Read',TEMPLATE_DOMAIN); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h2> <?php if ($freshy_options['author']) : ?><small class="author"><?php the_author(); ?></small><?php endif; ?> <?php if ($freshy_options['date']) : ?> <small class="date"><?php if ($freshy_options['author']) : ?>|<?php endif; ?> <?php the_date() ?></small> <?php endif; ?> <?php if ($freshy_options['time']) : ?> <small class="date"><?php if ($freshy_options['date']) : ?>|<?php endif; ?> <?php the_time() ?></small> <?php endif; ?> <div class="entry"> <?php the_content('<span class="readmore">'.__('Read the rest of this entry »',TEMPLATE_DOMAIN).'</span>'); ?> </div> <div class="meta"> <dl> <dt><?php _e('Comments',TEMPLATE_DOMAIN); ?></dt><dd><?php comments_popup_link(__('No Comments »',TEMPLATE_DOMAIN), __('1 Comment »',TEMPLATE_DOMAIN), __('% Comments »',TEMPLATE_DOMAIN)); ?></dd> <dt><?php _e('Categories',TEMPLATE_DOMAIN); ?></dt><dd><?php the_category(', ') ?></dd> <?php if(function_exists('the_tags')) : ?> <?php the_tags('<dt>Tags</dt><dd>', ', ', '</dd>'); ?> <?php endif; ?> <?php if(function_exists('the_bunny_tags')) : ?> <?php the_bunny_tags('<dt>Tags</dt><dd>', '</dd>', ', '); ?> <?php endif; ?> <?php if(function_exists('the_bookmark_links')) : ?> <dt><?php _e('Spread the word',TEMPLATE_DOMAIN); ?></dt><dd><?php the_bookmark_links(); ?></dd> <?php endif; ?> <?php if ('open' == $post-> comment_status) : ?> <dt> <?php comments_rss_link(__('Comments rss',TEMPLATE_DOMAIN)); ?></dt> <?php endif; ?> <?php if ('open' == $post->ping_status) : ?> <dt> <a href="<?php trackback_url(true); ?> " rel="trackback" title="<?php _e('Trackback',TEMPLATE_DOMAIN); ?>"><?php _e('Trackback',TEMPLATE_DOMAIN); ?></a></dt> <?php endif; ?> <?php if ($user_ID) : ?> <dt> <?php edit_post_link(__('Edit',TEMPLATE_DOMAIN),'',''); ?></dt> <?php endif; ?> </dl> </div> </div> <?php endwhile; ?> <p class="navigation"> <span class="alignleft"><?php next_posts_link(__('« Previous Entries',TEMPLATE_DOMAIN)) ?></span> <span class="alignright"><?php previous_posts_link(__('Next Entries »',TEMPLATE_DOMAIN)) ?></span> </p> <?php else : // nothing found ?> <div class="post" id="post-none"> <h2><?php _e('Not found',TEMPLATE_DOMAIN); ?></h2> <p><?php _e("Sorry, but you are looking for something that is not here",TEMPLATE_DOMAIN); ?></p> </div> <?php endif; ?> </div> <?php // sidebars ?> <?php if ($freshy_options['sidebar_right'] == true) get_sidebar(); ?> <?php if ($freshy_options['sidebar_left'] == true) include (TEMPLATEPATH . '/sidebar_left.php'); ?> </div> <?php get_footer(); ?> -
gibt es keine möglichkeit mir zu helfen?
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!