Mam problem, którego nie umiem rozwiązać. Otóż edytuję motyw arthemia wordpressa.
Chciałbym wykasować te trzy miejsca na stronie głównej oznaczone jako "Świeże, Ważne i przeglądaj kategorię". Gdy kasuję te elementy z kodu, strona przestaje działać. Proszę o pomoc.
Oto plik index.php Co usunąć żeby nie było tych trzech miejsc na stronie głównej?
Z góry dziękuję za pomoc!
<?php get_header(); ?> <?php if(!is_paged()) { ?> <div id="top" class="clearfloat"> <div id="headline"> <img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/headline.png" width="75px" height="21px" alt="" /> <?php query_posts("showposts=1&category_name=Headline"); ?> <?php while (have_posts()) : the_post(); ?> <div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div> <div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('Brak komentarzy', 'Jeden komentarz', 'Komentarzy: %');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div> <?php $values = get_post_custom_values("Headline");?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Stały link do wpisu <?php the_title(); ?>"> alt="<?php the_title(); ?>" class="left" width="300px" height="275px" /></a> <?php the_excerpt(); ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Stały link do wpisu <?php the_title(); ?>">Czytaj cały całość wpisu »</a> <?php endwhile; ?> </div> <div id="featured"> <img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/featured.png" width="72px" height="17px" alt="" /> <?php query_posts("showposts=4&category_name=Featured"); $i = 1; ?> <?php while (have_posts()) : the_post(); ?> <div class="clearfloat"> <?php $values = get_post_custom_values("Image"); <a href="<?php the_permalink() ?>" rel="bookmark" title="Stały link do wpisu <?php the_title(); ?>"> alt="<?php the_title(); ?>" class="left" width="100px" height="65px" /></a> <?php } ?> <div class="info"><a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php the_title(); ?></a> <div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('Brak komentarzy', 'Jeden komentarz', 'Komentarzy: %');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div> </div> </div> <?php endwhile; ?> </div> </div> <div id="middle" class="clearfloat"> <img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/category.png" class="clearfloat" alt="" /> foreach ($display_categories as $category) { ?> <?php query_posts("showposts=1&cat=$category")?> <span class="cat_title"><a href="<?php echo get_category_link($category);?>"><?php single_cat_title(); ?></a></span> </div> <?php $i++; ?> <?php } ?> </div> <?php } ?> <div id="bottom" class="clearfloat"> <div id="front-list"> <?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=-27,-28&paged=$page&posts_per_page=5"); ?> <?php while (have_posts()) : the_post(); ?> <div class="clearfloat"> <h3 class=cat_title><?php the_category(', '); ?> »</h3> <div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div> <div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('Brak komentarzy', 'Jeden komentarz', 'Komentarzy: %');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div> <div class="spoiler"> <?php $values = get_post_custom_values("Image"); <a href="<?php the_permalink() ?>" rel="bookmark" title="Stały link do wpisu <?php the_title(); ?>"> alt="<?php the_title(); ?>" class="left" width="150px" height="150px" /></a> <?php } ?> <?php the_excerpt(); ?> </div> </div> <?php endwhile; ?> <div class="navigation"> <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?> <div class="right"><?php next_posts_link('Następna strona »') ?></div> <div class="left"><?php previous_posts_link('« Poprzednia strona') ?></div> <?php } ?> </div> </div> <?php get_sidebar(); ?> </div> <?php get_footer(); ?>