I'm currently trying to the Wordpress page of a friend.

He asked me that the footer section of the site shall contain to links with the names "AGB" and "Impressum" with lead to new tabs with the content.

At the moment the code looks like this but it has 2 problems: - The fonts of the 2 words are different - I don't know where to add the link address

echo '<div class="zerif-copyright-box"><a class="zerif-copyright" href="http://themeisle.com/themes/zerif-lite/"'.$attribut_new_tab.' rel="nofollow"></a>'.__('AGB','zerif-lite').'<a class="zerif-copyright" "'.$attribut_new_tab.' rel="nofollow"> Impressum</a></div>';

echo '</div>';

Hope you can help me :)

Cheers, Domi


I have improved your code to a new version as i have found that you have used text "AGB" out of anchor tag

Updated Code

$html = '';
$html .= '<div class="zerif-copyright-box">';
$html .= '<a class="zerif-copyright" href="http://themeisle.com/themes/zerif-lite/"'.$attribut_new_tab.' rel="nofollow">'.__('AGB','zerif-lite').'</a>';
$html .= '<a class="zerif-copyright" href="" "'.$attribut_new_tab.' rel="nofollow"> Impressum</a>';
$html .= '</div>';

$html .= '</div>';
echo $html;

Hope this helps!

protected by Community Oct 21 '16 at 11:09

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.