Twee kolommen in thema pixel
-
Ik heb het thema Pixel geïnstalleerd en daar zijn nu opeens twee kolommen verschenen met tekst.
Ik heb zelf te weinig verstand van php om dit op te lossen. Wie kan mij van dienst zijn.
4 reacties aan het bekijken - 1 tot 4 (van in totaal 4)
-
In de index.php moet je de regels 10 t/m 35 verwijderen:
<?php if (function_exists('wp_list_comments')): ?> <div <?php post_class(topPost); ?>> <?php else : ?> <div class="topPost"> <?php endif; ?> <h2 class="topTitle"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> <p class="topMeta">by <?php the_author_posts_link(); ?> on <?php the_time('M.d, Y') ?>, under <?php the_category(', '); ?></p> <div class="topContent"><?php the_content('(continue reading...)'); ?></div> <span class="topComments"><?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?></span> <span class="topTags"><?php the_tags('<em>:</em>', ', ', ''); ?></span> <span class="topMore"><a href="<?php the_permalink() ?>">more...</a></span> <div class="cleared"></div> </div> <!-- Closes topPost --><br/> <?php endwhile; ?> <?php else : ?> <div class="topPost"> <h2 class="topTitle"><a href="<?php the_permalink() ?>">Not Found</a></h2> <div class="topContent"><p>Sorry, but you are looking for something that isn't here. You can search again by using <a href="#searchform">this form</a>...</p></div> </div> <!-- Closes topPost --> <?php endif; ?>Over welke index.php hebben we het?
Ik heb die uit de dir van het thema gewijzigd maar toen deed hij niets meer.Ja, gaat om de index.php van het thema. Het bericht rechts is de topPost. Deze classes + inhoud moet je dus verwijderen.
Wat gebeurt er als je
display:nonetoevoegt aan .topPost in je style.css?Dit is het deel van de style.css aangaande de topPost. Display none toevoegen haalde alles weg!
.topPost { margin: 0; padding: 0; font-size: 9pt; } .topPost h2.topTitle a { font-size: 15pt; font-weight: normal; color: #fff; letter-spacing: -2px; } .topPost h2.topTitle a:hover { text-decoration: none; color: #abd1ea; } .topPost p.topMeta { padding: 0; margin: -10px 0 0 0; font-size: 9pt; color: #cdcdcd; } .topPost p.topMeta a { text-decoration: none; color: #fff; } .topPost p.topMeta a:hover { color: #ccc; text-decoration: underline; } .topPost div.topContent { font-size: 9pt; color: #efefef; margin: 8px 0; } .topPost div.topContent p { font-size: 1.05em; line-height: 1.6em; } .topPost div.topContent a { text-decoration: underline; color: #fff; } .topPost div.topContent a:hover { text-decoration: underline; color: #ff9933; } .topPost div.topContent ul, .topPost div.topContent ol { padding: 0 0 0 30px; } .topPost div.topContent ul li, .topPost div.topContent ol li { font-size: 1.05em; color: #eee; } .topPost span.topComments, .topPost span.topMore, .topPost span.topTags { font-size: 9pt; font-style: italic; background: url(images/bg-trans.png) repeat; padding: 8px 10px; margin-right: 5px; line-height: 27pt; color: #fff; border: 1px solid #111; } .topPost span.linkpages { font-size: 9pt; font-style: italic; color: #fff; margin-bottom: 10px; display:block; } .topPost span.linkpages a:hover { color: #ddd; } .topPost span.topComments:hover, .topPost span.topMore:hover, .topPost span.topTags:hover { background: #040404; } .topPost span.topComments a { color: #fff; background: url(images/comments.gif) left no-repeat; padding-left: 20px; line-height: 27pt; vertical-align: middle; } .topPost span.topMore a { color: #fff; background: url(images/more.gif) left no-repeat; padding-left: 20px; line-height: 27pt; vertical-align: middle; } .topPost span.topTags em { background: url(images/tags.gif) left no-repeat; padding-left: 20px; line-height: 27pt; vertical-align: middle; color: #0a0a0a; } .topPost span.topTags a { color: #fff; line-height: 27pt; vertical-align: middle; } .topPost span.topComments a:hover, .topPost span.topMore a:hover, .topPost span.topTags a:hover { color: #fff; text-decoration: underline; }
4 reacties aan het bekijken - 1 tot 4 (van in totaal 4)
Het onderwerp ‘Twee kolommen in thema pixel’ is gesloten voor nieuwe reacties.