Jurnal

keep calm and conquer the world

Menu
  • Home
  • Plimbări
  • Echipamente
  • Recomand
  • Contact
Menu

CSS adițional în WordPress

Posted on 22.06.202323.06.2023 by GhitaB

Vrei uneori să schimbi o culoare, un spațiu, ceva legat de design-ul temei pe care ai instalat-o. WordPress e făcut să poți adăuga ușor cod CSS.

În cazul meu am vrut să:

  • nu arat imaginea de preview când deschid un articol
  • să am butoane mai mici (Read more)
  • să schimb culoarea liniilor
  • să adaug un spații deasupra liniei cu tags

Codul CSS arată așa (simpluț):

body.post-template-default.single-post div.featured-thumbnail {
  display: none;
}

body.archive article a.blogpost-button,
body.category article a.blogpost-button,
body.home article a.blogpost-button {
   padding: 5px 10px
}

body.archive article,
body.category article,
body.page article,
body.home article, main article,
.swidgets-wrap {
  border: 1px solid #eee !important;
}

div.tag-cat-container {
	margin-top: 1em;
}

Te autentifici, apeși pe Customize și apoi pe Additional CSS. Acolo am copiat codul CSS, am salvat și gaaataa.

Update (23.06):

Bonus și codul final de CSS, după ce l-am migălit să arate așa, superb:

body.post-template-default.single-post div.featured-thumbnail {
  display: none;
}

a.blogpost-button {
   padding: 3px 15px;
	 background: #e6e6e6;
	 color: #7f5a83;
	 border-radius: 20px;
}

body.archive article,
body.category article,
body.page article,
body.home article, main article {
	border-color: #e6e6e6;
  border-left: none !important;
	border-right: none !important;
	border-bottom: none !important;
}

.swidgets-wrap {
	border-color: #e6e6e6;
  border-left: none !important;
	border-right: none !important;
	border-bottom: none !important;
}

div.st-post-tags,
div.tag-cat-container {
	margin-top: 1em;
}

.featured-thumbnail img {
	max-height: 150px;
	width: auto;
}

a {
	color: #7f5a83;
}

div.post-data-positioning span.byline {
  display: none;	
}

span.posted-on {
    font-size: 0;
}

span.posted-on a {
    font-size: initial;
}

.post-data-divider  {
	background: #e6e6e6;
}

#primary-menu a, .site-title a {
	color: #7f5a83;
}

div.entry-content {
	font-size: 1.3em;
  color: #668 !important;
}

button[type=submit] {
	background: #7f5a83 !important;
}

footer {
	display: none !important;
}
Tags: CSS, design, programare, solutions, wordpress
Category: Docs, Programare

Post navigation

← Au înflorit trandafirii.
Discuții nocturne cu ChatGPT →

Archives

  • May 2025 (4)
  • April 2025 (3)
  • March 2025 (19)
  • February 2025 (20)
  • January 2025 (33)
  • December 2024 (8)
  • November 2024 (4)
  • October 2024 (8)
  • September 2024 (4)
  • August 2024 (9)
  • July 2024 (21)
  • June 2024 (17)
  • May 2024 (13)
  • April 2024 (1)
  • March 2024 (7)
  • February 2024 (15)
  • January 2024 (24)
  • December 2023 (11)
  • November 2023 (53)
  • October 2023 (17)
  • September 2023 (20)
  • August 2023 (40)
  • July 2023 (39)
  • June 2023 (38)

Categories

  • 27 (4)
  • Acasă (64)
  • Amintiri (13)
  • Creștine (33)
  • Desen (8)
  • Design (1)
  • Docs (51)
  • Duldy & Țâcă (5)
  • Fotografie (42)
  • Gânduri (104)
  • Grădină (10)
  • Interesant (14)
  • Istorie (4)
  • Jurnal (163)
  • Limba română (8)
  • Mașină (2)
  • Muzică (46)
  • Personal (100)
  • Plimbări (24)
  • Programare (24)
  • Sport (12)
  • Știri (36)
  • Vegan (16)

Tags

2 mese pe zi (5) acasă (57) am auzit ceva nou (5) amintiri (8) am scris asta (7) biblice (11) Bihor (15) biserică (5) creștine (56) câine (12) câinele e prietenul omului (12) desen (8) docs (46) fotografie (45) funny (63) grădină (10) gânduri (122) interesant (8) istorie (7) jurnal (199) jurnal sportiv (11) Krita (5) limba română (10) momente (193) muzică (48) muzică preluată (28) natură (6) Padiș (11) personal (142) plimbare (22) plone (27) povești (6) programare (27) recomand (8) rețete vegane (10) România (29) Rusia (5) sketchbook (5) solutions (30) spam (5) sport (6) vegan (17) versuri (6) web development (15) știri (20)

RSS Feed Subscribe
© 2025 Jurnal | Powered by Minimalist Blog WordPress Theme