Avisos
Vaciar todo

EXPANDIR Y CONTRAER UN TEXTO EN EL MODULO TEXTO DEL TEMA DIVI

6 Respuestas
2 Usuarios
0 Reactions
14 Visitas
Respuestas: 3
New 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,

 

He añadido código a una web que estoy diseñando en la que necesito ocultar parte de un texto. Lo he hecho basándome en este artículo: https://alejandroberrio.com/wordpress/como-expandir-y-contraer-texto-en-divi-de-wordpress/

Todo ha ido bien, excepto en el caso de texto que tiene un fondo de color y no es blanco. ¿Me podéis ayudar a retocar código para que el fondo sea totalmente transparente?

Muchas gracias.

 

Esto es lo que he añadido a DIVI: 

 

/*collpse and set the height of the toggle text*/
 
.pa-toggle-text .et_pb_text_inner {
max-height: 300px;
transition: max-height 0.3s ease-out;
overflow: hidden;
}
 
/*agregar degradado al texto contraído*/
 
.pa-toggle-text .et_pb_text_inner:after {
content: "";
display: inline-block;
position: absolute;
pointer-events: none;
height: 100px;
width: 100%;
left: 0;
right: 0;
bottom: 0;
background-image: linear-gradient(0deg, #fff 10%, transparent);
}
 
/*aplicar estilo al enlace de ampliar texto*/
 
.pa-toggle-text .pa-text-expand-button {
padding: 0.5em;
text-align: left;
color: #E4E0DC!important;
}
 
/*cambie el cursor a puntiagudo al pasar el cursor sobre el enlace de expandir texto*/
 
.pa-toggle-text .pa-text-expand-button span {
cursor: pointer;
}
 
/*definir la familia de fuentes para el icono de alternancia*/
 
.pa-toggle-text .pa-text-expand-button .pa-text-toggle-icon {
font-family: ETMODULES, "sans-serif";
}
 
/*establecer la altura máxima y la transición de la palanca expandida*/
 
.pa-toggle-text .pa-text-toggle-expanded {
max-height: 2000px;
transition: max-height 0.3s ease-in;
}
 
 
y css:
 
/*collpse and set the height of the toggle text*/
 
.pa-toggle-text .et_pb_text_inner {
max-height: 200px;
transition: max-height 0.3s ease-out;
overflow: hidden;
}
 
 
/*add gradient to the collapsed text*/
 
.pa-toggle-text .et_pb_text_inner:after {
content: "";
display: inline-block;
position: absolute;
pointer-events: none;
height: 100px;
width: 100%;
left: 0;
right: 0;
bottom: 0;
background-image: linear-gradient(0deg, #fff 10%, transparent);
}
 
 
/*style the expand text link*/
 
.pa-toggle-text .pa-text-expand-button {
padding: 0.5em;
text-align: center;
color: #00d263!important;
}
 
 
/*change the curor to a pointed when hovering over the expand text link*/
 
.pa-toggle-text .pa-text-expand-button span {
cursor: pointer;
}
 
 
/*define the font family for the toggle icon*/
 
.pa-toggle-text .pa-text-expand-button .pa-text-toggle-icon {
font-family: ETMODULES, "sans-serif";
}
 
 
/*set the max height and transition of the expanded toggle*/
 
.pa-toggle-text .pa-text-toggle-expanded {
max-height: 2000px;
transition: max-height 0.3s ease-in;
}
 
 
/*hide the gradient when the toggle is expanded*/
 
.pa-toggle-text .pa-text-toggle-expanded.et_pb_text_inner:after {
background: none;
}

Contenido solo visible a usuarios registrados


 
Respondido : 10/04/2024 11:42 am
Karen Rios
Respuestas: 20085
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 Jespus, 

Entiendo que te refieres a este toggle: 

image

Si es así prueba con el siguiente código CSS

.et_pb_toggle_open {
background-color: transparent;
}

Verifícalo y nos comentas como va todo

Un Saludo


 
Respondido : 10/04/2024 12:14 pm
Respuestas: 3
New 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
 

@karen

No me refiero a eso que ocurre en tu captura de pantalla. Es arriba de la web, en el desarrollo del texto debajo del TÍTULO: TU WEB DE PILATES ONLINE, donde está el texto "Compartiremos rutinas de entrenamiento con las que mejorar...". Si te fijas hay un degradado con fondo blanco en la parte inferior cuando debería ser transparente.

 

Muchas gracias.


 
Respondido : 10/04/2024 12:31 pm
Karen Rios
Respuestas: 20085
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 Jesús, 

Entiendo, en este caso revisa si este código CSS te permite eliminar ese degradado

.pa-toggle-text .et_pb_text_inner:after {
background-image: none !important;
}

Revísalo y nos comentas como va todo

Un Saludo


 
Respondido : 10/04/2024 12:37 pm
Respuestas: 3
New 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
 

@karen

 

Gracias!


 
Respondido : 10/04/2024 5:04 pm
Karen Rios
Respuestas: 20085
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 Jesús, 

Gracias a ti, para nosotros en un placer poder ayudarte. 

Coméntanos si con esto podemos dar el tema como solucionado

Un Saludo 😊 


 
Respondido : 10/04/2024 5:34 pm