Risposte nei forum create
-
AutorePost
-
TittiModeratore
Se cambi titolo a un articolo o a una pagina (parlando di contenuti già pubblicati), non è necessario cambiare anche lo slug, anzi, sarebbe meglio non farlo per un URL già indicizzato.
Se vuoi cambiare comunque lo slug, ad es. per motivi di relazione con un titolo dall’argomento totalmente diverso, lo puoi fare tranquillamente e la procedura corretta è di modificarlo nell’editor della pagina con l’apposito bottone, salvare e aggiornare i permalink. WordPress effettua un redirect automatico e non c’è bisogno di fare nient’altro. Se è ciò che hai fatto e non funziona come dovrebbe, occorre come minimo vedere la pagina.
Eventualmente si può sempre aggiungere un redirect 301 nell’.htaccess, affinché il reindirizzamento avvenga più velocemente e sicuramente via server invece che via PHP ma, ripeto, WP lo fa già di suo quindi ci sarà qualcosa che glielo impedisce.
TittiModeratoreSu come sovrascrivere file che si trovano nelle sottocartelle del tema padre c’è un esempio nella nota pagina Codex dei temi child:
https://codex.wordpress.org/it:Temi_Child#Fare_riferimento_.2F_Includere_file_nel_proprio_Tema_Child
require_once( get_stylesheet_directory() . '/il_file_da_includere.php' );
Dipende anche da cosa vuoi modificare e dal tema. Se, ad esempio, si tratta di una funzione, basta copiarla e modificarla nel functions.php del tema child.
Altrimenti devi chiedere all’autore del tema.
TittiModeratoreNelle impostazioni di WP, scegli una struttura di permalink del tipo “nome articolo” o “mese o nome”.
TittiModeratoreManca l’URL al sito
TittiModeratoreAttiva un tema di default della serie Twenty e disattiva tutti i plugin e controlla se il problema sussiste.
TittiModeratoreURL alla pagina con il problema
TittiModeratoreàˆ vero che il CSS di un plugin può esser più difficoltoso da sovrascrivere rispetto a quello di un tema, e ciò può dipendere da vari motivi tra cui la posizione dei file, la maggior complessità della struttura e/o da quanto e come certi selettori debbano essere specificati, o da qualsiasi altra cosa che sbagli; che c’entra il copia incolla, non è che è sempre cosଠsemplice, e anche gli strumenti di analisi devono saper esser usati e letti nella loro completezza.
Puoi aver aggiunto anche 1500 righe, ma se ce n’è una sbagliata quella non funzionerà , oppure tu stesso hai inserito regole che vanno in conflitto, chi lo sa, rimane un discorso astratto non sapendo di cosa parli nello specifico. Il fatto che l’ispeziona non faccia vedere la tua modifica valida (con la riga sopra) significa appunto che non sovrascrive nulla perché è errata, se fosse giusta funzionerebbe (e poi, ancora, potrebbe anche funzionare ma non esser proprio tanto giusta o esser ridondante): non ti si può dire altro non vedendo niente (e comunque questo forum non è un forum di CSS).
L’unica è cercare informazioni nella documentazione o nei commenti al codice del plugin, nel supporto diretto del plugin o nel web in particolare a riguardo della cosa che vuoi modificare in quel determinato plugin, ognuno è un caso a sé aldilà dei selettori universali.
Se hai fatto il child allora perché cerchi di usare l’editor da bacheca (i non-esperti dovrebbero proprio dimenticare che esiste) o, peggio, perché vuoi cancellare parti del codice originale (come se questo fatto, poi, servisse a far funzionare il tuo codice), usando queste metodiche fai dei danni e ciò fa sospettare che non sai del tutto come e perché funziona un child theme. Studialo meglio e usa quello quando saprai come fare le modifiche, e ricordati di ripristinare tutti i file originali.
TittiModeratoreQui supportiamo WordPress e i suoi temi e plugin inseriti nella directory ufficiale, la tua domanda quindi è off-topic.
TittiModeratoreTemi e plugin non si modificano nei file originali, né tanto meno si devono cancellare parti di codice (e il discorso ovviamente vale anche per WP), ma occorre dapprima creare un child theme, il quale conterrà il foglio stile con le modifiche CSS del caso che andranno a sovrascrivere le regole originali corrispondenti.
Dovrai quindi rimettere tutti i file originali (scaricando di nuovo temi e plugin originali e caricandoli via FTP, o cancellandoli e reinstallandoli da bacheca) e poi, una volta creato il child-theme, imparare a usarlo nelle sue varie possibilità .
Le modifiche che non funzionano… che ti si può dire, se non funzionano è evidente che sono sbagliate. Anche usando gli strumenti offerti dai vari browser è chiaro che devi sapere quello che stai facendo: se vuoi mettere mano al codice dovrai imparare in generale un po’ di CSS, HTML e PHP – materie che esulano da WordPress e da questo supporto – e in particolare le parti di codice che ti interessano.
TittiModeratoreTi colleghi via FTP e cancelli la cartella del plugin broken link checker
-
AutorePost