Focus87
Odpowiedź forum utworzona
-
Forum: Używanie i konfiguracja WordPressa
W odpowiedzi na: Sidebar i wyświetlanie Facebook Like BoxOk problem rozwiązany. Musiałem dodać <?php get_sidebar(); ?> do pliku header.php, a właściwie do stworzonego tam przeze mnie diva. Następnie należało ustawić styl diva w css i dostosować odpowiednio jego tło do widgetu, jaki chciałem użyć. Tak czy inaczej, dziękuję za pomoc.
Można zamknąć.
Forum: Używanie i konfiguracja WordPressa
W odpowiedzi na: Sidebar i wyświetlanie Facebook Like BoxPrzepraszam, że post pod postem, ale doszedłem do czegoś. Mianowicie zauważyłem dziwną rzecz. Po edycji pliku pojedynczego posta i dodaniu pod przed <?php get_footer(); ?> kodu <?php get_sidebar(’Sidebar’); ?> pojawiła mi się zawartość widgetu wklejonego w tę strefę (niestety nad footerem a nie z boku, ale mniejsza). Natomiast, gdy próbuję robić identyczną rzecz dla Indexu, ten nie odnotowuję zmian. Dlaczego tak się dzieję i jak to naprawić?
Forum: Używanie i konfiguracja WordPressa
W odpowiedzi na: Sidebar i wyświetlanie Facebook Like BoxWitam,
w takim razie podam kod index.php (nie wiem czy dobrze ale domyślam się, że jest to właśnie wspomniany szablon strony) oraz pliku sidebar.php.
Być może to pozwoli rozjaśnić sprawę.
index.php
<?php get_header(); ?> <div id="content"> <div class="indent"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <header> <h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <div class="post-meta"> <div class="fleft">Posted in: <?php the_category(', ') ?> | <time datetime="<?php the_time('Y-m-d\TH:i'); ?>"><?php the_time('F j, Y'); ?> at <?php the_time() ?></time> , by <?php the_author_posts_link() ?></div> <div class="fright"><?php comments_popup_link('No comments', 'One comment', '% comments', 'comments-link', 'Comments are closed'); ?></div> </div><!--.post-meta--> </header> <?php echo '<div class="featured-thumbnail">'; the_post_thumbnail(); echo '</div>'; ?> <div class="post-content"> <div class="excerpt"><?php $excerpt = get_the_excerpt(); echo my_string_limit_words($excerpt,40);?></div> <a href="<?php the_permalink() ?>" class="button">Read more</a> </div> </article> <?php endwhile; else: ?> <div class="no-results"> <p><strong>There has been an error.</strong></p> <p>We apologize for any inconvenience, please <a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('description'); ?>">return to the home page</a> or use the search form below.</p> <?php get_search_form(); ?> <!-- outputs the default WordPress search form--> </div><!--noResults--> <?php endif; ?> <?php if ( $wp_query->max_num_pages > 1 ) : ?> <nav class="oldernewer"> <div class="older"> <?php next_posts_link('« Older Entries') ?> </div><!--.older--> <div class="newer"> <?php previous_posts_link('Newer Entries »') ?> </div><!--.newer--> </nav><!--.oldernewer--> <?php endif; ?> </div> </div><!--#content--> <?php get_footer(); ?>
sidebar.php
<aside id="sidebar" class="grid_6"> <?php if ( ! dynamic_sidebar( 'Sidebar' )) : ?> <div id="sidebar-search" class="widget"> <h3>Search</h3> <?php get_search_form(); ?> <!-- outputs the default WordPress search form--> </div> <div id="sidebar-nav" class="widget menu"> <h3>Navigation</h3> <?php wp_nav_menu( array('menu' => 'Sidebar Menu' )); ?> <!-- editable within the WordPress backend --> </div> <div id="sidebar-archives" class="widget"> <h3>Archives</h3> <ul> <?php wp_get_archives( 'type=monthly' ); ?> </ul> </div> <div id="sidebar-meta" class="widget"> <h3>Meta</h3> <ul> <?php wp_register(); ?> <li><?php wp_loginout(); ?></li> <?php wp_meta(); ?> </ul> </div> <?php endif; ?> </aside><!--sidebar-->
Dziękuję Ci za odpowiedź
Forum: Używanie i konfiguracja WordPressa
W odpowiedzi na: Ukrycie !more w tekścieSuper, bardzo dziękuję – problem rozwiązany. Pozdrawiam.