Diese Website wird mit WordPress betrieben. Das Thema hat eine Facebook-Schaltfläche, die in der Kopfzeile angezeigt wird.
Ich möchte die Facebook-Schaltfläche des Themas in die Seitentitelzeile verschieben.
Hier ist ein Bild von dem, was ich versuche zu tun. Ich dachte, ich könnte diesen Code irgendwo in das Child-Theme kopieren.
<a class="genericon_parent genericon genericon-facebook-alt" title="Facebook" href="https://www.facebook.com/karen.b.russell.54" onclick="javascript:window.open('https://www.facebook.com/karen.b.russell.54'); return false;"><span class="screen-reader-text">Facebook</span> </a>
Ich habe diesen Code in content.php, content-none.php, content-single.php, content-page.php kopiert, aber jetzt wird er nicht richtig angezeigt. So sieht es jetzt aus.
Ich denke, dass ich die CSS-Formatierung von der Themenschaltfläche in der Kopfzeile auf die neue in den Inhaltstiteln kopieren kann. Als ich versuchte, das CSS zu kopieren, funktionierte es nicht.
Wie passe ich die Schaltfläche (im zweiten Bild eingekreist) so an, dass sie wie die erste aussieht?
Der Live-Code kann unter eingesehen werden healthylifeadvisors.com
Ich sehe, dass die ursprüngliche Schaltfläche dieses CSS zu verwenden scheint:
.site .widget_catchadaptive_social_icons a.genericon {
background-color: #f2f2f2;
border: 1px solid #eee;
border-radius: 3px;
-moz-border-radius: 3px;
box-sizing: content-box;
-webkit-border-radius: 3px;
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
color: #404040;
margin: 0 0 5px 5px;
padding: 5px;}
und
healthylifeadvisors.com/media="all"
.genericon {
font-size: 16px;
vertical-align: top;
text-align: center;
-moz-transition: color .1s ease-in 0;
-webkit-transition: color .1s ease-in 0;
display: inline-block;
font-family: "Genericons";
font-style: normal;
font-weight: normal;
font-variant: normal;
line-height: 1;
text-decoration: inherit;
text-transform: none;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
speak: none;}
Das CSS, das angezeigt wird, wenn ich die neue Schaltfläche inspiziere, lautet:
.entry-title, .entry-title a {
color: #404040;
}
healthylifeadvisors.com/media="all"
.genericon {
font-size: 16px;
vertical-align: top;
text-align: center;
-moz-transition: color .1s ease-in 0;
-webkit-transition: color .1s ease-in 0;
display: inline-block;
font-family: "Genericons";
font-style: normal;
font-weight: normal;
font-variant: normal;
line-height: 1;
text-decoration: inherit;
text-transform: none;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
speak: none;
}
a {
font-weight: 700;
color: #00BB58;
}
healthylifeadvisors.com/media="all"
a {
color: #21759b;
text-decoration: none;}
healthylifeadvisors.com/media="all"
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
border: 0;
font-family: inherit;
font-size: 100%;
font-style: inherit;
font-weight: inherit;
margin: 0;
outline: 0;
padding: 0;
vertical-align: baseline;
}
Hallo Sean, wir brauchen ein bisschen mehr Informationen. Haben Sie versucht, dies zu tun, und es funktioniert nicht? Wo hast du es in dem beigefügten Screenshot eingefügt?
– Adam B
8. Januar 2016 um 1:16 Uhr
Der erste Screenshot ist nur die standardmäßige Themenplatzierung der Schaltfläche. Ich habe mein OP mit einem zweiten Screenshot aktualisiert und die Seiten erwähnt, auf denen ich den HTML-Code platziert habe. Das Problem ist jetzt CSS.
– SeanB
8. Januar 2016 um 1:36 Uhr
Es wäre viel schneller, wenn Sie ein reproduzierbares Minimalbeispiel Ihrer Anfrage bereitstellen würden. Wie im Code, nicht Bilder. Bilder kann ich nicht einsehen. Oder zumindest ein Link zur Live-Website.
– tao
8. Januar 2016 um 1:40 Uhr
Die Live-Website befindet sich unten im OP. Ich kann es nicht verlinken, weil ich nicht genug Stackexchange-Reputation für 3 Links habe. Ich werde das OP mit dem CSS aktualisieren, das ich sehe.
– SeanB
8. Januar 2016 um 1:45 Uhr