Помощник
|
Подчеркивание у ссылок |
dima-ua2010
|
Сообщение
#1
|
||
|
|
||
|
|||
un1name1d |
25.8.2011, 20:42;
Ответить: un1name1d
Сообщение
#2
|
|
<style type="text/css"> .readmore A:link {text-decoration: none} .readmore A:visited {text-decoration: none} .readmore A:active {text-decoration: none} .readmore A:hover {text-decoration: underline; color: red;} </style> Ссылке Read More присваиваем класс .readmore (class="readmore ") Сообщение отредактировал un1name1d - 25.8.2011, 20:42 |
|
|
dima-ua2010
|
Сообщение
#3
|
|
и куда это вставить
просто в шаблоне не было "реад море" и я добавил вот это function new_excerpt_more($more) { return '<a href="'. get_permalink($post->ID) . '">' . ' [ Read More ]' . '</a>'; } add_filter('excerpt_more', 'new_excerpt_more'); вышло <?php /***************************************************************************/ /* /* ---------------------------------------------------------------------- /* DO NOT EDIT THIS FILE /* ---------------------------------------------------------------------- /* /* Built by Darcy Clarke. http://themify.me /* Copyright © 2010 Themify /* /***************************************************************************/ require_once(TEMPLATEPATH . '/themify/themify-database.php'); require_once(TEMPLATEPATH . '/themify/themify-utils.php'); require_once(TEMPLATEPATH . '/themify/themify-config.php'); require_once(TEMPLATEPATH . '/themify/themify-modules.php'); if(is_file(TEMPLATEPATH . '/custom_modules.php')){ require_once(TEMPLATEPATH . '/custom_modules.php'); } if(is_file(TEMPLATEPATH . '/custom_functions.php')){ require_once(TEMPLATEPATH . '/custom_functions.php'); } require_once(TEMPLATEPATH . '/themify/themify-widgets.php'); function new_excerpt_more($more) { return '<a href="'. get_permalink($post->ID) . '">' . ' [ Read More ]' . '</a>'; } add_filter('excerpt_more', 'new_excerpt_more'); ?> это в файле functions.php |
|
|
un1name1d |
25.8.2011, 21:00;
Ответить: un1name1d
Сообщение
#4
|
|
return '<a href="'. get_permalink($post->ID) . '">' . ' [ Read More ]' . '</a>'; return '<a href="'. get_permalink($post->ID) . '" class="readmore">' . ' [ Read More ]' . '</a>'; А первый код в CSS <?php
/***************************************************************************/ /* /* ---------------------------------------------------------------------- /* DO NOT EDIT THIS FILE /* ---------------------------------------------------------------------- /* /* Built by Darcy Clarke. http://themify.me /* Copyright © 2010 Themify /* /***************************************************************************/ require_once(TEMPLATEPATH . '/themify/themify-database.php'); require_once(TEMPLATEPATH . '/themify/themify-utils.php'); require_once(TEMPLATEPATH . '/themify/themify-config.php'); require_once(TEMPLATEPATH . '/themify/themify-modules.php'); if(is_file(TEMPLATEPATH . '/custom_modules.php')){ require_once(TEMPLATEPATH . '/custom_modules.php'); } if(is_file(TEMPLATEPATH . '/custom_functions.php')){ require_once(TEMPLATEPATH . '/custom_functions.php'); } require_once(TEMPLATEPATH . '/themify/themify-widgets.php'); function new_excerpt_more($more) { return '<a href="'. get_permalink($post->ID) . '" class="readmore">' . ' [ Read More ]' . '</a>'; } add_filter('excerpt_more', 'new_excerpt_more'); ?> |
|
|
dima-ua2010
|
Сообщение
#5
|
|
ничо не вышло
кто может нормально сказать что вставить пишите |
|
|
BlueRay |
25.8.2011, 23:31;
Ответить: BlueRay
Сообщение
#6
|
|
Если рассматривается вариант убрать подчёркивание со всех ссылок, то надо убрать из style.css следующий код:
a:hover { text-decoration: underline; } Если же хотите оставить подчёркивание у остальных ссылок, то добавьте (код выше всё равно убрать из style.css) li a:hover {
text-decoration: underline; } .post-category a:hover { text-decoration: underline; } Сообщение отредактировал BlueRay - 25.8.2011, 23:36 |
|
|
dima-ua2010
|
Сообщение
#7
|
|
у меня стайл ксс находится в корне темы
там пробовал делать эти изменения без результатно |
|
|
LOAD |
26.8.2011, 1:46;
Ответить: LOAD
Сообщение
#8
|
|
un1name1d, сказал правильный вариант, но стиль нужно писать по-другому:
.readmore либо a.readmore Резюмируя.. Найти: return '<a href="'. get_permalink($post->ID) . '">' . ' [ Read More ]' . '</a>'; Заменить на: return '<a href="'. get_permalink($post->ID) . '" class="readmore">' . ' [ Read More ]' . '</a>'; В css добавить: a.readmore{text-decoration:none}
|
|
|
danisimo |
26.8.2011, 3:16;
Ответить: danisimo
Сообщение
#9
|
|
|
<a href="'. get_permalink($post->ID) . '">' . ' [ Read More ]' . '</a> заменить на <a href="'. get_permalink($post->ID) . '" style="text-decoration:none">' . ' [ Read More ]' . '</a> ну это если совсем с css возиться не хочется
-------------------- |
|
|
||
|
Похожие темы
Тема | Ответов | Автор | Просмотров | Последний ответ | |
---|---|---|---|---|---|
Быстрая индексация страниц сайта и обратных ссылок - 2Index | 39 | 2Index | 6697 | Вчера, 16:16 автор: 2Index |
|
GogetTop.net - сервис аренды ссылок с сети PBN адалт тьюбо | 1 | Crimean | 1441 | 11.4.2024, 10:05 автор: Crimean |
|
Ручное размещение вечных ссылок и статей на хороших площадках Опыт 10 лет! |
420 | leonidukg | 274729 | 8.4.2024, 12:06 автор: leonidukg |
|
Крауд-маркетинг. Ручное размещение ссылок под бурж с гарантией | 24 | seolink.orders | 12920 | 2.4.2024, 17:23 автор: seolink.orders |
|
Сайт не индексируется в Google без добавления ссылок в адурилку | 4 | Nekit | 1085 | 20.3.2024, 21:44 автор: MorKer |
Текстовая версия | Сейчас: 23.4.2024, 10:16 |