Visualizzazione 1 filone di risposte
Visualizzazione 1 filone di risposte
- Devi essere connesso per rispondere a questo topic.
Email: info@wpitaly.it
Home › Forum › Plugin e temi di WP › Come eliminare i link nei titoli ?
Salve a tutti, vorrei eliminare completamente i permalink, mi spiego meglio. Sto organizzando wordpress come una specie di cms che gestisce un catalogo. Non mi interessano né i commenti né altro, mi basta cliccare su una categoria e visualizzare tutti gli articoli presenti in quella categoria. Senza nulla, né i commenti, né tantomeno messaggi del tipo “comments are closed”, oppure “add a comment”, etc etc. Pensavo quindi di eliminare del tutto il link nei titoli dei post, in modo da non visualizzare proprio l’articolo con i commenti, visto che comunque visualizzo gli articoli per intero, quindi non ho neppure bisogno di ulteriori rinvii. Come posso fare ? Grazie.
per quello che riguarda i permalink, dovresti avere una cosa simile a questa:
< a title=”Permanent Link a: <?php the_title(); ?>” href=”<?php the_permalink() ?>” rel=”bookmark”><?php the_title(); ?></ a>
che deve diventare semplicemente
<?php the_title(); ?>
in modo da non creare il link al permalink.
per quello che riguarda l’eliminazione di tutto quello che riguarda i commenti ecc, devi editare i file index.php, archive.php, category.php e se ce l’hai anche in page.php togliendo la parte di codice che va a richiamare i commenti e tutte le cose che non vuoi vengano visualizzate.
per maggiori info su come fare leggi nel wiki dissezione di un tema.
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0