Home › Forum › Problemi Vari con WP › Eliminare una parte di un tema
-
AutorePost
-
-
4 Settembre 2015 alle 13:46 #30029cristianPartecipante
Salve a tutti, dopo aver letto il regolamento e sperando di non aver sbagliato vi chiedo l’aiuto per una modifica di un tema non premium come indicato nel regolamento.
Il mio tema (non premium ma free) dal nome “portra” quando creo delle gallerie mi mette automaticamente a sinistra della galleria un titolo e una descrizione. Io vorrei eliminare del tutto la descrizione e ridurre il titolo ( o anche eliminare se facilita la cosa) in modo da ottenere una semplice galleria…vi posto il link per farvi capire cosa vorrei ottenere, ma dopo aver provato a scovare il codice giusto ho dovuto abbandonare l’idea di farlo io..
al momento ecco come si presenta la galleria, per la precisione nella sezione fashion: http://wpshower.com/demo/?preview_theme=portra, invece preferirei averla(che poi nel sito è stato già fatto ma nelle impostazioni non trovo la funzione etc, quindi penso sia una modifica css)come quella della sezione sport.
scusandomi se ho violato il regolamento vi porgo i miei cordiali saluti
-
4 Settembre 2015 alle 17:05 #118612TittiModeratore
Per quanto riguarda il contenuto, semplicemente non scriverlo, e non apparirà . Quella che tu chiami descrizione è, infatti, il contenuto testuale della pagina.
Per il resto, devi creare un child theme.
Quando avrai il tema figlio attivato e funzionante, dovrai sovrascrivere il file che nel tuo tema si chiama content-page.php.
Per farlo, devi aprire un semplice file di testo e incollarci dentro questo:
<?php
/**
* The template used for displaying page content
*/
?>
<?php
the_content();
wp_link_pages(array(
'before' => '<div class="page-links"><span class="page-links-title">'.__('Pages:', 'portra').'</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
));
?>
<?php portra_formatted_gallery(); ?>Lo chiami content-page.php, lo salvi, e lo carichi via FTP nella cartella del child theme.
In questo modo la pagina sarà come vuoi tu, tieni però presente che saranno cosଠanche tutte le altre pagine – escluso la homepage.
-
4 Settembre 2015 alle 18:01 #118613cristianPartecipante
perfetto!!! sono arrivato al risultato desiderato…ho dovuto però fare delle modifiche, in quanto sto usando due temi differenti nel mio sito, uno per la home page e uno per le pagine,tutto usando il plug-in page theme che mi permette di scegliere il tema da usare per ogni pagina, unica pecca che se scelgo il child non funziona e quindi ho dovuto modificare il tema originale. Cosଠcome tema predefinito del sito ne uso uno, e per le pagine scelgo l’altro sempre tramite il plug in…
volevo chiederti un’altra cosa, se non si tratta di modificare troppe cose, nel tema da me linkato per fare scorrere le foto devi cliccare su ogni foto(non considerare la prima pagina che ho cambiato) e io preferirei girarle con il mouse(tipo rotellina) oppure che ci siano dei segnali che dove cliccare e fare scorrere, perchè nel modo attuale è un pò difficile da capire che si deve cliccare sulla foto per scorrere…
ringraziandoti cmq per l’aiuto devo dire che già il risultato è perfetto e questo sono solo sfizi da togliere…grazie mille
-
5 Settembre 2015 alle 7:51 #118615elmaniseroPartecipante
Nella demo del tema si vede chiaramente che tutte le pagine tranne la “sport” hanno un contenuto scritto ed una galleria di immagini mentre la “sport” ha solo la galleria.
Il plugin che usi per utilizzare due temi è obsoleto, non è aggoiornato da tre anni, usa questo.
Se avessi letto il link del child theme avresti capito che mai e poi mai si devono modificare i temi che si scaricano perche al primo aggiornamento perderai tutte le modifiche apportate.
Tranquillo che gli utenti capiranno che per far scorrere le immagini esiste anche la barra di scorrimento orizzontale inferiore del browser.
-
5 Settembre 2015 alle 10:51 #118624cristianPartecipante
no in realtà ho già fatto il child di entrambi e temi ma ho preso quella strada solo perchè il plugin da me usato non permetteva l’uso di entrambi, da dire anche che il plugin da te consigliato era già installato tra i miei plug in inattivi, e ho capito perchè, quello che usavo molto più facile da usare per me…cmq cercherò di fare delle ricerche e capire cosa mettere negli spazi da riempire…grazie cmq per il tuo aiuto…
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.