Hey everybody !
I’m looking for applying this css style for a specific page:
.page-id-26 p {text-align:justify;}
but I would like it not apply to the sub-title “un peu de moi”
How can I do that ?
Thanks for helping (page link in attachement)
Hi,
Please refer to this post – https://kriesi.at/documentation/enfold/intro-to-layout-builder/#turn-on-custom-css-class-field-for-all-alb-elements and enable custom CSS field for ALB elements and then edit your element and give it custom CSS class and change your code to following one
.your-custom-class {text-align:justify;}
Regards,
Yigit
Thank you Yigit, I will try to use your solution but do you have an idea to exept an area (special header area “un peu de moi”) from my code
.page-id-26 p {text-align:justify;}
Hi,
Could you please rephrase? I am not sure if i understood you clearly.
Best regards,
Yigit
Hi Yigit, sorry for the language, my english isn’t very good but I try to improve it day after day…
I would like to apply my css for all the specific page id but I wuld like to exept the header subtitle “un peu de moi” from that css rule,
Regards,
Iceman
Hi,
My bad, i overlooked “not” part in your question :)
You can add following custom CSS code as well
.page-id-26 .av-subheading p {
text-align: inherit;
}
P element that contains “un peu de moi” title does not have any class or ID therefore we cannot exclude it with a single code. If it had a class, you could use following code but that is not the case
.page-id-26 p:not(.custom-class) {text-align:justify;}
Regards,
Yigit
Hey Yigit, thanks a lot, it works well now
Regards,
Iceman
Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon