Avisos
Vaciar todo

Asignar un CSS específico a dos o más entradas

2 Respuestas
2 Usuarios
0 Reactions
607 Visitas
Stefano
Respuestas: 62
Trusted Member
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Hola... tengo que asignar un CSS específico a dos posts y me estaba preguntando si hay una forma más breve que repetir para cada post la misma fórmula. Este es mi custom CSS:

.postid-12038 .socials.info-section h5.subheading {
display: none;
}

Para obtener lo mismo también en la entrada nº 12037 ¿tengo que repetir la misma fórmula?

.postid-12037 .socials.info-section h5.subheading {
display: none;
}

¿No hay algo más breve?

URL del sitio: Contenido solo visible a usuarios registrados


 
Respondido : 26/12/2016 5:26 pm
Jhon
 Jhon
Respuestas: 44954
Illustrious Member Moderator
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Hola

En algún archivo CSS que ya este cargando tu theme, por ejemplo el style.css , agrega al final el código CSS, como abmos tiene la misma instrucción puedes agruparlos separados por una coma.

.postid-12037 .socials.info-section h5.subheading,
.postid-12038 .socials.info-section h5.subheading{
display: none;
}

Saludos.


 
Respondido : 26/12/2016 5:56 pm