kre8tiv / urwahl3000

Freies Wordpress-Theme für GRÜNE Köpfe & Gliederungen
GNU General Public License v3.0
17 stars 14 forks source link

Schlagwortwolke mit Gewichtung #30

Closed Harry-von-Borstel closed 5 years ago

Harry-von-Borstel commented 5 years ago

Normalerweise hat die Schlagwortwolke in Wordpress eine angezeigte Gewichtung: Häufige Schlagwörter werden größer angezeigt, als weniger häufige.

In Urwahl3000 ist eine Gleichmacherei derart implementiert, dass alle Schlagwörter auf einheitliche Größe gezwungen werden. Ursache ist Zeile 686 in style.css, dort die Angabe font-size: 0.9em!important;.

Das !important verhindert das Überschreiben im Child-Theme, so dass ich keine andere Möglichkeit sah, als style.css lokal direkt zu ändern, um uns die Wolke schön zu machen (siehe z.B. http://www.gruene-wandsbek.de/gruenschnack/tag/fahrrad-stadt-hamburg/). Folge: Die Änderung geht bei jedem Update flöten.

Es wäre schön, wenn Urwahl3000 eine Schlagwortwolke mit Gewichtung ohne Hacks ermöglichen könnte.

Schöne Grüße aus Hamburg und vielen Dank für Euer Engagement für dieses großartige Projekt!

Harry

modulbuero commented 5 years ago

Hallo Harry,

guter Punkt, nehme ich sofort raus und veröffentliche ein Update.

Viele Grüße aus Siegen, Christian

Harry-von-Borstel commented 5 years ago

In unserem Childtheme habe ich das Styling für die Wolke überarbeitet, damit die Wolke an den Widget-Style angepasst und kompakter ist. Links ursprünglicher Style, rechts angepasst: grafik grafik

/* MINI (Mobile etc.) */
@media screen {

.widget_tag_cloud a, #footer .widget_tag_cloud a {
    display: inline;
    padding: 0 3px;
    background: transparent;
    color: #afdca7;
    border-radius: 0.3em;
    border-width: 1px;
    border-color: transparent;
    border-style: solid;
}

.widget_tag_cloud a:hover, #footer .widget_tag_cloud a:hover {
    background: transparent;
    color: #ffe000;
    border-color: #afdca7
}

}

/* DESKTOP */
@media only screen and (min-width: 770px) {

.widget_tag_cloud {
    background: #e6e6e6;
    padding: 1.5em;
}

.widget_tag_cloud h3.widgettitle {
    color: #0a321e;
    text-shadow: unset;
}

.widget_tag_cloud a, #footer .widget_tag_cloud a {
    display: inline;
    padding: 0 3px;
    background: transparent;
    color: #46962b;
    border-radius: 0.3em;
    border-width: 1px;
    border-color: transparent;
    border-style: solid;
}

#wrap .widget_tag_cloud a {
    background: transparent;
    color: #46962b;
}   

.widget_tag_cloud a:hover, #footer .widget_tag_cloud a:hover {
    color: #0a321e;
    border-color: #0a321e
}
#wrap .widget_tag_cloud a:hover {
    background: transparent;
}

}
modulbuero commented 5 years ago

Das würde ich einfach mal so hier stehen lassen, damit andere sich dran bedienen können. Für alle würde ich es eher nicht einbauen. Trotzdem danke fürs Teilen!