Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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?

    #1139647

    Hey fabmcmull,

    Please provide a link to the site/page in question so we can look into this issue further.

    Best regards,
    Jordan Shannon

    #1139696

    famarvacanze.com

    #1140550

    Hi,

    Thanks for the link, which element are you looking to apply this to?

    Best regards,
    Rikard

    #1140599

    The 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.

    #1141621

    Hi,

    Have u added those as custom classes? Those elements are not from Enfold.

    Best regards,
    Basilis

    #1141713

    What 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.
    #1141937

    Hi 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.
    #1142010

    Well 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)

    #1142393

    I 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?

    #1142990

    Hi,

    Thanks for the update, so everything is working as it should now then? What is nomenclature rules?

    Best regards,
    Rikard

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.