Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [WP] Rozdzielenie postow i strony statycznej. Wyglad menu., WordPress 3.3.1
bercow
post
Post #1





Grupa: Zarejestrowani
Postów: 156
Pomógł: 11
Dołączył: 25.12.2005

Ostrzeżenie: (0%)
-----


Witam.

Wiem, ze potrzebuje trzy pliki index.php single.php i page.php. W single.php i page.php definiuje jak ma wygldac post i jak strona statyczna. Ale co umiescic w index.php, tak ma wygladac funkcj ktor bedzie wybierac ktory plik ma zostac wyswietlony.

Mamy single.php, page.php nie bedzie posidal pierwszych 8 linijek.
  1. <div id="site_kontakt">
  2. <div class="site_belka">
  3. 1
  4. </div>1
  5. </div>
  6. <div id="site_slider">
  7.  
  8. </div>
  9. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  10. <div class="site_pole">
  11. <div class="post" id="post-<?php the_ID(); ?>">
  12. <div class="site_belka">
  13. <div class="titlenews">
  14. <?php the_title(); ?>
  15. </div>
  16. </div>
  17. <div class="entry">
  18. <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
  19.  
  20. <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  21. </div>
  22. </div>
  23. </div>
  24. <?php endwhile; endif; ?>


Druga sprawa, mamy menu generowany w podpunktach, ale poziome za pomoca display: inline;, w jki sposob cos wyswietlic pomiedzy pozycjami, tzn. np. list-style ktory nie dziala przy tej opcji, a gdzial bym jakies oddzielacze.
Aby zamiast MENU1 MENU2 MENU3 MENU4
Uzyskac cos takiego Menu1 * Menu2 * Menu3 * Menu4

Ten post edytował bercow 31.03.2012, 15:37:02
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
bercow
post
Post #2





Grupa: Zarejestrowani
Postów: 156
Pomógł: 11
Dołączył: 25.12.2005

Ostrzeżenie: (0%)
-----


Mam utworze wlasnie takie menu.
Generuje takie cos
  1. <div id="menu">
  2. <div id="mainnav">
  3. <div class="menu-site-container">
  4. <ul id="menu-site" class="menu">
  5. <li id="menu-item-9" class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-9"><a href="http://www.optykwejherowo.pl">Home</a></li>
  6. <li id="menu-item-11" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-11"><a href="http://wp.pl">O firmie</a></li>
  7. <li id="menu-item-15" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-15"><a href="http://www.optykwejherowo.pl/lekarze/">Lekarze</a></li>
  8. <li id="menu-item-18" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-18"><a href="http://www.optykwejherowo.pl/oferta/">Oferta</a></li>
  9. </ul>
  10. </div>
  11. </div>
  12. </div>

A chce wstawic przerwy tak jak widac na zdjeciu
(IMG:http://img26.imageshack.us/img26/3510/menuprzerwy.png)
Moge to zrobic tak, ale wtedy po ostatniej pozycji tez sie wyswietla kreska, a chcial bym tylko pomiedzy wyrazami.
  1. background-image: url("img/menu_li.png");
  2. background-repeat: no-repeat;
  3. background-position: right;
  4. padding-right: 10px;
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 8.10.2025 - 13:20