Home › Forum › Problemi Vari con WP › Includere google map nel footer
-
AutorePost
-
-
16 Marzo 2014 alle 15:02 #26872MedifocusPartecipante
Salve a tutti, sapreste indicarmi come inserire una pagina html contenete una mappa di google, nel footer.
Vorrei inserire una mappa nel footer con tanto di marker ecc, precedentemente impostata.
Grazie
-
17 Marzo 2014 alle 8:36 #110456yuri06Partecipante
Vai su google maps e centra la mappa sul posto che vorrai visualizzare, con il marker già sul posto che vuoi.
Poi se vedi nella colonna di sinistra dove c’è “Indicazioni stradali” “I miei luoghi” c’è anhce il simbolo della stampante e alla sua destra un altro bottone, clicca su quello e copiati il codice HTML che compare.
Ora vai nei widget di wordpress prendi un widget testo e lo copi nel footer, all’interno di questo widget testo ci incolli tutto il codice HTML che ti sei copiato prima dalla pagina di google maps..tutto chiaro?
-
17 Marzo 2014 alle 15:17 #110470MedifocusPartecipante
Provo e ti dico…
-
17 Marzo 2014 alle 15:22 #110472MedifocusPartecipante
Dunque… io vorrei che prendesse tutta l’area del footer come sfondo. La mappa l’ho già personalizzata in una pagina html che vorrei appunto inserire come sfondo nel footer…spero di essere stato chiaro.
-
17 Marzo 2014 alle 15:28 #110473yuri06Partecipante
Questa cosa non l’avevi specificata..allora quello che ti ho detto servirà a poco nulla! Se vuoi che prenda l’intero footer….prova a inserire il codice della mappa all’interno del file footer.php..il problema è dove e come! dovresti andare un po a tentoni..io cosଠnon sapendo che tema stai utilizzando e di conseguenza come è fatto il tuo footer posso darti poco aiuto
-
17 Marzo 2014 alle 15:32 #110474MedifocusPartecipante
Il tema in uso è Twenty Thirteen. Ti ringrazio molto per il tuo tempo e attenzione.
-
17 Marzo 2014 alle 15:34 #110476MedifocusPartecipante
In realtà non sarebbe il footer ma la sidebar prima del footer.
-
17 Marzo 2014 alle 15:35 #110477yuri06Partecipante
Riesci a linkarmi il sito?
-
17 Marzo 2014 alle 15:37 #110478MedifocusPartecipante
<?php
/**
* The sidebar containing the footer widget area
*
* If no active widgets in this sidebar, hide it completely.
*
* @package WordPress
* @subpackage Twenty_Thirteen
* @since Twenty Thirteen 1.0
*/
if ( is_active_sidebar( ‘sidebar-1’ ) ) : ?>
<div id=”secondary” class=”sidebar-container” role=”complementary”>
<div class=”widget-area”>
<?php dynamic_sidebar( ‘sidebar-1’ ); ?>
</div><!– .widget-area –>
</div><!– #secondary –>
<?php endif; ?>
-
17 Marzo 2014 alle 15:38 #110479yuri06Partecipante
Intendevo mandarmi il link per poter vedere il sito che stai costruendo
-
17 Marzo 2014 alle 15:39 #110480MedifocusPartecipante
Non è online ancora.
-
17 Marzo 2014 alle 15:41 #110481yuri06Partecipante
Allora prova a fare cosà¬:
<?php
/**
* The sidebar containing the footer widget area
*
* If no active widgets in this sidebar, hide it completely.
*
* @package WordPress
* @subpackage Twenty_Thirteen
* @since Twenty Thirteen 1.0
*/
if ( is_active_sidebar( ‘sidebar-1’ ) ) : ?>
<div id=”secondary” class=”sidebar-container” role=”complementary”>
//Scrivi qua dentro il codice della mappa…prova sia quello costruito da te che quello che ti ho detto di prendere da google maps e vedi quale funziona
</div><!– #secondary –>
<?php endif; ?>
Questa è una prima prova..vediamo se funziona
-
17 Marzo 2014 alle 15:50 #110484MedifocusPartecipante
Funziona in entrambi i modi, grazie infinite.
-
17 Marzo 2014 alle 18:23 #110492elmaniseroPartecipante
Se modifichi il tema senza child theme al primo aggiornamento sparisce tutto.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.