0
검색 창을 사용하면 검색 결과 페이지의 제목 ("당신은에 언급되었습니다 :")에 원치 않는 하이퍼 링크가 있습니다.이 하이퍼 링크는 수동으로 머리글에 삽입 한 소셜 미디어 하이퍼 링크 중 하나입니다.원치 않는 하이퍼 링크 - 제거하는 방법?
내 헤더에 대한 코드는 다음과 같습니다
<body <?php body_class() ?>>
<div id="container">
<div class="wrapper">
<div id="header">
<div id="logo"><h1>
<img src="/uploads/2013/08/LogoSpaced40.png" alt="Tell Him Her" />
</h1>
</div><!--/#logo -->
<div id="menu" class="dropdown">
<?php wp_nav_menu(array('container' => '', 'container_class' => '', 'menu_class' => 'dropdown', 'menu_id' => 'nav', 'sort_column' => 'menu_order', 'theme_location' => 'primary')); ?>
</div>
<div class="cleaner"> </div>
<?php if (function_exists('get_smooth_slider')) { get_smooth_slider(); } ?>
<div id="twitter_icon">
<a href="http://twitter.com/###" target="_blank" alt="Twitter"><img src="/uploads/2013/06/64x64-twitter.png" /></li></div>
<div id="facebook_icon">
<a href="http://facebook.com/###" target="_blank" alt="Facebook"><img src="/uploads/2013/06/64x64-facebook.png" /></li></div>
</div><!-- end #header -->
</div><!-- end .wrapper -->
그리고 소셜 미디어 링크에 대한 CSS는 다음과 같습니다
#twitter_icon {
position: relative;
float: right;
margin-top: -155px;
margin-right: 12px;
}
#facebook_icon {
position: relative;
float: right;
margin-top: -75px;
margin-right: 12px;
}
관련 검색 결과 코드는 다음과 같습니다 기본적으로
$output = '<div class="searc-output-comments">';
if(count($commenters) != 0) {
$output .= '<div class="fixtitle1">You have been mentioned in:</div>';
}else{
$output .= '<div class="fixtitle1">You have not been mentioned. Maybe you should mention someone yourself...</div>';
}
$cc = 1;
if ($paged > 1) $cc = ($count * $paged) - ($count -1);
for ($i = $start; $i < $end; $i++){
$comment = $commenters[$i];
$permalink = get_permalink($comment['comment_post_ID']);
$output .= '<div class="output-post">';
$output .= ' <div class="postcounter">'.$cc.'</div>';
$output .= ' <div class="s-p-wrap">';
$output .= ' <div class="s-p-w-top">';
$output .= ' <span class="author-name"><a href="'.$permalink.'#comment-'.$comment['comment_ID'].'">'.$comment['comment_author'].'</a></span>';
$output .= ' <div class="comment-date">'.time_ago($comment['comment_date']).'</div>';
$output .= ' </div>';
$output .= ' <div class="s-p-w-bottom">';
$output .= ' <p>'.$comment['comment_content'].'</a></p>';
$output .= ' </div>';
$output .= ' </div>';
$output .= '</div>';
$cc++;
}
코드 :
$output .= '<div class="fixtitle1">You have been mentioned in:</div>';
}else{
$output .= '<div class="fixtitle1">You have not been mentioned. Maybe you should mention someone yourself...</div>'
페이스 북 소셜 미디어 링크의 하이퍼 링크를 표시하고 있는데 그 이유를 파악할 수 없습니다.
죄송합니다.이 질문을하는 데 길어지는 바람이지만 아무것도 놓치고 싶지 않으면 죄송합니다. 누구든지 아이디어가 있습니까?
추가 정보 나 코드가 필요하면 문의하십시오!