Помощник
|
Вопрос по WP |
bmp104
|
Сообщение
#1
|
||
|
|
||
|
|||
Красавчег |
26.11.2012, 17:42;
Ответить: Красавчег
Сообщение
#2
|
|
как изменить дизайн краткой новости, которая на главной Открыть index.php или home.php и менять, менять, менять -------------------- |
|
|
bmp104
|
Сообщение
#3
|
|
Открыть index.php или home.php и менять, менять, менять Который в корне index.php лежит? Там ничего нет. Который в корне темы не изменяет саму новость. Только все вокруг нее. |
|
|
brome |
26.11.2012, 17:51;
Ответить: brome
Сообщение
#4
|
|
bmp104, нужно файлы темы смотреть, а то из ваших слов ничего не понятно. По идее, как сказал Красавчег, нужно изменять index.php. Если этот файл пустой поищите в папках внутри темы (если они есть).
Сообщение отредактировал brome - 26.11.2012, 17:53 -------------------- |
|
|
bmp104
|
Сообщение
#5
|
|
bmp104, нужно файлы темы смотреть, а то из ваших слов ничего не понятно. Да файлы во всех темах одинаковые! Мне надо на главной странице чтобы в каждой краткой новости или между ними поставить блок рекламы. |
|
|
arturios |
26.11.2012, 18:01;
Ответить: arturios
Сообщение
#6
|
|
|
|
|
bmp104
|
Сообщение
#7
|
|
Вот мой индекс из папки темы, что в нем надо изменить?
Развернуть/Свернуть
<?php get_header(); ?>
<div class="art-layout-wrapper"> <div class="art-content-layout"> <div class="art-content-layout-row"> <div class="art-layout-cell art-sidebar1"> <?php get_sidebar('default'); ?> <div class="cleared"></div> </div> <div class="art-layout-cell art-content"> <?php get_sidebar('top'); ?> <?php if(have_posts()) { /* Display navigation to next/previous pages when applicable */ if ( theme_get_option('theme_' . (theme_is_home() ? 'home_' : '') . 'top_posts_navigation' ) ) { theme_page_navigation(); } /* Start the Loop */ while (have_posts()) { the_post(); get_template_part('content', get_post_format()); } /* Display navigation to next/previous pages when applicable */ if (theme_get_option('theme_bottom_posts_navigation')) { theme_page_navigation(); } } else { theme_404_content(); } ?> <?php get_sidebar('bottom'); ?> <div class="cleared"></div> </div> <div class="art-layout-cell art-sidebar2"> <?php get_sidebar('secondary'); ?> <div class="cleared"></div> </div> </div> </div> </div> <div class="cleared"></div> <?php get_footer(); ?> |
|
|
brome |
26.11.2012, 18:52;
Ответить: brome
Сообщение
#8
|
|
/* Start the Loop */ while (have_posts()) { the_post(); get_template_part('content', get_post_format()); } Здесь функция get_template_part ссылается на шаблон content.php (в папке темы), вот его и нужно изменять. P.S. Все темы разные, общего решения не бывает, поэтому и спрашиваю про файлы. -------------------- |
|
|
bmp104
|
Сообщение
#9
|
|
content.php Развернуть/Свернуть
<?php
/** * * content*.php * * The post format template. You can change the structure of your posts or add/remove post elements here. * * 'id' - post id * 'class' - post class * 'thumbnail' - post icon * 'title' - post title * 'before' - post header metadata * 'content' - post content * 'after' - post footer metadata * * To create a new custom post format template you must create a file "content-YourTemplateName.php" * Then copy the contents of the existing content.php into your file and edit it the way you want. * * Change an existing get_template_part() function as follows: * get_template_part('content', 'YourTemplateName'); * */ global $post; theme_post_wrapper( array( 'id' => theme_get_post_id(), 'class' => theme_get_post_class(), 'thumbnail' => theme_get_post_thumbnail(), 'title' => '<a href="' . get_permalink( $post->ID ) . '" rel="bookmark" title="' . strip_tags(get_the_title()) . '">' . get_the_title() . '</a>', 'heading' => theme_get_option('theme_'.(is_single()?'single':'posts').'_article_title_tag'), 'before' => theme_get_metadata_icons( 'date,author,edit', 'header' ), 'content' => theme_get_excerpt(), 'after' => theme_get_metadata_icons( 'category,tag,comments', 'footer' ) ) ); ?> |
|
|
brome |
26.11.2012, 19:21;
Ответить: brome
Сообщение
#10
|
|
Если не ошибаюсь, код рекламы нужно вставить в самом низу, перед закрывающимся тегом "?>"
Сообщение отредактировал brome - 26.11.2012, 19:23 -------------------- |
|
|
|
Похожие темы
Тема | Ответов | Автор | Просмотров | Последний ответ | |
---|---|---|---|---|---|
Вопрос - платное размещение баннеров на сайте | 10 | WGN | 3190 | 14.12.2020, 14:20 автор: Peterson |
|
Вопрос по рекламе в "инстаграме" Только активные аккаунты могут создавать или редактировать рекламу |
8 | Zubkov | 16055 | 17.1.2020, 17:49 автор: Forumacc |
|
Вопрос-ответ о работе форума | 307 | dos1k | 43335 | 9.11.2019, 17:59 автор: heks |
|
Жена логопед, собрался ей приводить клиентов. Встал вопрос, куда приводить. В теме перечисление доступного мне продвижения, но с чего начать? |
9 | memeplex | 3729 | 16.2.2019, 15:45 автор: zyzy |
|
Предлагаю размещение качественных ссылок на форумах и сервисах вопрос ответ | 21 | ПроФФи | 5030 | 2.3.2018, 20:56 автор: ShowPrint |
Текстовая версия | Сейчас: 24.4.2024, 11:54 |