Помощник
|
Подчеркивание у ссылок |
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 возиться не хочется
-------------------- |
|
|
||
|
Похожие темы
Тема | Ответов | Автор | Просмотров | Последний ответ | |
---|---|---|---|---|---|
Сайт не индексируется в Google без добавления ссылок в адурилку | 4 | Nekit | 984 | 20.3.2024, 21:44 автор: MorKer |
|
Быстрая индексация страниц сайта и обратных ссылок - 2Index | 32 | 2Index | 5807 | 18.3.2024, 16:33 автор: 2Index |
|
Оптимизация сайтов, продвижение, наращивание ссылок Большой опыт работы, отзывы |
304 | tario777 | 203061 | 13.3.2024, 14:01 автор: tario777 |
|
Ручное размещение вечных ссылок и статей на хороших площадках Опыт 10 лет! |
419 | leonidukg | 273820 | 12.3.2024, 15:17 автор: leonidukg |
|
Backlinks.su - генератор обратных ссылок Он позволяет разместить 1500+ внешних ссылок на ваш сайт бесплатно! |
0 | MihaylovRA | 1185 | 3.3.2024, 18:08 автор: MihaylovRA |
Текстовая версия | Сейчас: 28.3.2024, 14:05 |