
-
AuthorPosts
-
September 18, 2019 at 1:20 pm #1139453
Good morning. I need to add 20px padding to the left and right of a specific text block. In the past it was enough for me to enter this code:
.my_custom_class
{padding-left: 20px; padding-right: 20px;}but after the last update it doesn’t work anymore. Why?
How can I solve this problem?September 18, 2019 at 7:59 pm #1139647Hey fabmcmull,
Please provide a link to the site/page in question so we can look into this issue further.
Best regards,
Jordan ShannonSeptember 18, 2019 at 8:55 pm #1139696famarvacanze.com
September 22, 2019 at 6:13 am #1140550Hi,
Thanks for the link, which element are you looking to apply this to?
Best regards,
RikardSeptember 22, 2019 at 9:12 am #1140599The elements are these:
.PaddingHomeNoleggioGommoniTitolo
{padding-left: 20px; padding-right: 20px;}
.PaddingHomeEscursioniGuidate {padding-left: 20px; padding-right: 20px;}
.PaddingHomeNoleggioGommoni {padding-left: 20px !important; padding-right: 20px !important;}
.PaddingHomeCharterPesca
{padding-left: 20px; padding-right: 20px;}
.PaddingHomeEventiOrganizzati{padding-left: 20px; padding-right: 20px;}In the past I used this code that worked perfectly, but since the last update it no longer works.
September 24, 2019 at 9:57 pm #1141621Hi,
Have u added those as custom classes? Those elements are not from Enfold.
Best regards,
BasilisSeptember 25, 2019 at 10:02 am #1141713What do you mean they are not from Enfold? They are custom css classes that have always worked until the last update. I simply need to add padding to these highlighted texts:
“Comode, veloci e facili da guidare, le nostre imbarcazioni sono la scelta ideale per chi desidera organizzare delle vere “escursioni fai da te” in totale privacy, senza soste o percorsi prestabiliti.”
“Un esperto Skipper vi condurrà per oltre 19 miglia di navigazione alla scoperta delle bellezze della nostra costa. Il servizio viene erogato solo in via esclusiva e non è condivisibile con altri gruppi di persone.”
“Tutta la nostra flotta al tuo servizio! Per un aperitivo tra amici, per una festa di laurea o di compleanno. È l’offerta dedicata a chiunque voglia festeggiare in grande stile un avvenimento speciale.”
“Un istruttore di pesca vi svelerà i segreti dello Spinning, l’arte della pesca sportiva con l’esca artificiale. È il servizio ideale per trascorrere una giornata originale e divertente per adulti e bambini.”
You can find them about halfway down the homepage of this site: famarvacanze.com
-
This reply was modified 5 years, 5 months ago by
fabmcmull.
September 25, 2019 at 6:59 pm #1141937Hi fabmcmull,
Which Enfold are you running? The custom classes did break in Enfold 4.6, but I think they were fixed in the later version.
Please have a look here:
Best regards,
Victoria-
This reply was modified 5 years, 5 months ago by
Victoria.
September 25, 2019 at 8:58 pm #1142010Well the rules are different to that what you post on top:
and one rule (.paddinghomenoleggiogommonititolo) is missing in your css.
These rules are in your code – and they do have effect on those p-tags..test-padding-testo-servizi-noleggio-gommoni { padding-left: 20px; padding-right: 20px; } .test-padding-testo-servizi-charter-di-pesca { padding-left: 20px; padding-right: 20px; } .test-padding-testo-servizi-charter-di-pesca { padding-left: 20px; padding-right: 20px; } .test-padding-testo-servizi-eventi-organizzati { padding-left: 20px; padding-right: 20px; }
you can shorten this code to( and add the missing one) :
.paddinghomenoleggiogommonititolo, .test-padding-testo-servizi-noleggio-gommoni, .test-padding-testo-servizi-escursioni-guidate, .test-padding-testo-servizi-charter-di-pesca, .test-padding-testo-servizi-eventi-organizzati { padding: 0 20px !important; }
by the way – the other headings have no such class (paddinghomenoleggiogommonititolo)
September 26, 2019 at 4:55 pm #1142393I don’t understand why, but it was enough to change the names of the custom css to make it work again. Do you know if there are new nomenclature rules?
September 28, 2019 at 12:51 pm #1142990 -
This reply was modified 5 years, 5 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.