functions.php
-
не могу вставить не один скрипт, выдает ошибки
Parse error: syntax error, unexpected ‘{‘ in
пример кодовfunction share_this($content){ if(!is_feed() && !is_home()) { $content .= '<div> <a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a> <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> <div> <iframe src="http://www.facebook.com/plugins/like.php?href='. urlencode(get_permalink($post->ID)) .'&layout=button_count&show_faces=false&width=200&action=like&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:200px; height:21px;" allowTransparency="true"></iframe> </div> </div>'; } return $content; } add_action('the_content', 'share_this');
помогите
или подскажите правильный код для вставки соц кнопок внизу сстатьи
Просмотр 1 ответа (всего 1)
Просмотр 1 ответа (всего 1)
- Тема «functions.php» закрыта для новых ответов.