Hey,
ich habe ein Frage bezüglich des Kontaktformulars. Ich versuche über einen Liquid ein Dateifeld in das Kontaktfeld zu intergrieren. Damit soll man Bilder oder andere Dateien hinzufügen können. Das Feld ist zwar anwesend, ist aber noch ohne Funktion und somit nutzlos, darüberhinaus wird dieses Formular nun auf jeder Seite angezeigt. Muss man eine extra Verknüpfung für dieses Feld machen? Könnte mir jemand bei diesen beiden Problemen helfen? ![]()
Liquid code:
/* CSS für das Formular-Layout */ .contact-form { padding: 0 20px; /* Innerer Abstand links und rechts für Mobilgeräte */ margin: 20px auto; /* Zentrierung und äußerer Abstand für Desktop-Bildschirme */ max-width: 600px; /* Maximale Breite des Containers */ } .contact-form label { display: block; /* Blockelement machen, um Labels unterhalb der Felder anzuzeigen */ margin-bottom: 10px; /* Abstand zwischen den Feldern und ihren Labels */ } .contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea, .contact-form input[type="file"], .contact-form button { width: 100%; /* Felder sollen die volle Breite des Containers einnehmen */ border-radius: 8px; /* Abrundung der Felder */ font-family: Arial, sans-serif; /* Ändern des Fonts */ padding: 15px; /* Innenabstand für Felder und Button */ box-sizing: border-box; /* Berechnung von padding und border innerhalb der Breite */ margin-bottom: 15px; /* Abstand zwischen den Feldern */ } .contact-form input[type="email"] { margin-top: 0px; /* Abstand zur oberen Kachel */ } .contact-form .split { display: flex; /* Flexbox verwenden, um Kacheln nebeneinander anzuordnen */ margin-bottom: 0px; /* Abstand zwischen den Kacheln */ } .contact-form .split input[type="text"], .contact-form .split input[type="email"], .contact-form .split textarea, .contact-form .split input[type="file"] { flex: 1; /* Gleiche Breite für alle Kacheln */ border-radius: 8px; /* Abrundung der Felder */ font-family: Arial, sans-serif; /* Ändern des Fonts */ padding: 10px; /* Innenabstand für Felder und Button */ box-sizing: border-box; /* Berechnung von padding und border innerhalb der Breite */ } .contact-form .split input[type="text"] { margin-right: 5px; /* Abstand zwischen dem Namen- und E-Mail-Feld */ } .contact-form button { background-color: #000; /* Hintergrundfarbe des Buttons */ color: #fff; /* Textfarbe des Buttons */ border: none; /* Keine Rahmen um den Button */ cursor: pointer; /* Zeiger beim Überfahren des Buttons */ } /* Media Queries für Mobilgeräte */ @media only screen and (min-width: 600px) { .contact-form { padding: 0; /* Innerer Abstand für Desktop-Bildschirme aufheben */ margin: 20px auto; /* Zentrierung und äußerer Abstand beibehalten */ max-width: calc(100% - 700px); /* Maximale Breite des Containers für Desktop-Bildschirme */ } }Senden
