bitte löschen. Geht im Quellcode der Datei print.php
wp-print - wie nofollow in code einfügen?
-
-
- Gerade eben
- Anzeige
Hallo!
Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.
- ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
- ✔️ Deutsche Server & DSGVO-konform
- ✔️ Persönlicher Support (kein 0815-Ticket-System)
-
einfach dort einfügen oder wie ?
-
Upps, wusste nicht, dass das jemanden sonst interessiert.
Bei diesem Plugin, gibt es ja den print-Ordner, darin die print.php. Dort habe ich dann das nofollow im betreffenden Codeabschnitt eingefügt.
Code
Alles anzeigen### Function: Display Print Link function print_link($text_post = 'Artikel drucken', $text_page = 'Print This Page') { global $id; $using_permalink = get_settings('permalink_structure'); $permalink = get_permalink(); if(!empty($using_permalink)) { if(is_page()) { echo '<a href="'.$permalink.'printpage/" title="'.$text_page.'" ref="nofollow">'.$text_page.'</a>'; } else { echo '<a href="'.$permalink.'print/" title="'.$text_post.'" ref="nofollow">'.$text_post.'</a>'; } } else { echo '<a href="'.$permalink.'&print=1" title="'.$text_post.'" ref="nofollow">'.$text_post.'</a>'; } } ### Function: Display Print Image Link function print_link_image() { global $id; $using_permalink = get_settings('permalink_structure'); $permalink = get_permalink(); if(file_exists(ABSPATH.'/wp-content/plugins/print/images/print.gif')) { $print_image = '<img src="'.get_settings('siteurl').'/wp-content/plugins/print/images/print.gif" alt="Artikel drucken/Page" />'; } else { $print_image = 'Print'; } if(!empty($using_permalink)) { if(is_page()) { echo '<a href="'.$permalink.'printpage/" title="Diese Seite drucken" ref="nofollow">'.$print_image.'</a>'; } else { echo '<a href="'.$permalink.'print/" title="Artikel drucken" ref="nofollow">'.$print_image.'</a>'; } } else { echo '<a href="'.$permalink.'&print=1" title="Artikel drucken/Page" ref="nofollow">'.$print_image.'</a>'; } } -
[OT]
:-) zum glück gibts noch welche die die sufu nützen.
deshalb finde ich es wichtig, dass wenn ein 'problem' gelöst ist, die lösung im tread zu finden ist.
ist nicht auf dich, Gecko-1, bezogen - ganz allgemein. finde es schön, dass du die anfrage gesehen und beantwortet hast.
[/OT]
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!