Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1463811

    Hello,

    Here is a tip from a programmer who uses Enfold. It’s not me, I’m just passing the tip on.

    The following coding error Avia Layout Architect in the content element “Code Block”:
    Code block CSS with wrapper “style”.

    Selector .element > .child2 > span {}

    is parsed as “>” and therefore invalid:
    Selector .element > .child2 > span {}

    Best regards,
    Martin
    ———————————————————————————————————-
    Hallo,

    hier kommt ein Hinweis eines Programmierers, der Enfold verwendet. Ich bin es nicht, ich leite den Hinweis nur weiter.

    Folgender Codierfehler Avia Layout Architekt beim Inhalt-Element “Code-Block”:
    Codeblock CSS mit wrapper “style”.
    Selektor .element > .child2 > span {}

    wird geparst als “>” und damit ungültig:
    Selektor .element > .child2 > span {}

    viele Grüße,
    Martin

    #1463842

    Hey Martin,

    Thanks for sharing that, we’ll have a look at it.

    Best regards,
    Rikard

    #1463860

    ich verstehe nicht was du vor hattest.
    Du nutzt also ein codeblock element um inline css zu platzieren?
    innerhalb des Codeblock Element hast du also dann “add codeblock to content” gewählt,
    den Code im Inhaltsbereich dann mit

    <style>
    .element > .child2 > span { }
    </style>

    dort eingefügt. Das ergab dann nicht das gewünschte css rule?

    _____________

    I don’t understand what you had in mind.
    So you are using a codeblock element to place inline css?
    within the codeblock element you have selected “add codeblock to content”,
    the code in the content area with

    <style>
    .element > .child2 > span { }
    </style>

    This did not lead to the desired css rule?

    __________

    ich habe hier mal eingefügt: https://webers-testseite.de/custom-link-to-lightbox/

    div > .mfp-close {
     background-color: red !important;
    }

    und so wird auch das css erstellt.

    #1464513

    Antwort vom Programierer (nicht von mir):
    Ja, und der Inhalt vom codeblock wird im html-source gerendert:
    Childselektoren mit “>” werden “>” (im html!)
    Vermutung: htmlspecialchars($codeblockContent) wird angewendet?
    Anmerkung: sonst funktionieren Inline-CSS mit codeblock super.
    Nur nicht bei specialchars (dürfen nicht gerendert werden!)
    btw: der BlockContent selbst muss ohne Tag “<style>” eingegeben werden

    #1464515

    aber es ist doch genau das, das der Content dem Inhalt hinzugefügt werden soll. Daher eben auch mit dem Wrapper <style> … </style> damit es als inline css wirken kann – und damit hatte ich nie Probleme auf die Schnelle css nur für die entsprechende Seite einzubinden:
    ________
    but it is exactly that, to add the content to the content. Hence the wrapper <style> ... </style> so that it can act as inline css – and I’ve never had any problems quickly integrating css just for the corresponding page:

    see the inline css from my example page above:

    irgendwie muss doch unterschieden werden, ob ich styles oder scripte einfüge. Das geht ja auch mittels des code block elements.
    _______
    Somehow it has to be differentiated whether I insert styles or scripts. This is also possible using the code block element.

    #1464516

    vielleicht liegt der Unterschied darin:
    maybe that’s the difference:

    btw: der BlockContent selbst muss ohne Tag “<style>” eingegeben werden

    Ihr arbeitet mit dem Block Editior? was ich nicht mache
    You work with the block editor ? which I don’t do

    #1464589

    O-Ton Programierer: verstehe jetzt das Missverständnis…
    Anscheinend wandelt Ihr Emailprogramm bzw. das Kiesi-Forum die gerenderten “Entities” wieder zurück als “gößer-als” Zeichen.
    Das heisst es war gar nicht erkenntlich zwischen Selektor Gößer-als und Entity “&gt ;”
    Habe daher 2 Screenshot für das Forum.

    Anwort:
    Problem mittlerweile gelöst.
    siehe Screenshot.
    Codeblock CSS-Selektor
    _ rendered HTML source style-Block (entity)

    Lösung: das passiert nur im Preview.
    (also style codeblock im Preview fehlerhaft)
    Danke euch trotzdem!
    ——————–
    Wie kann man hier ein Bild rein laden, ohne es irgendwo auf nen Server zu packen?

    #1464634

    Hi,
    To add a screenshot please try using an Screenshot service and pasting the image URL in your post.

    Best regards,
    Mike

    #1464663

    1

    • This reply was modified 1 month, 2 weeks ago by Martin.
    • This reply was modified 1 month, 2 weeks ago by Martin.
    • This reply was modified 1 month, 2 weeks ago by Martin.
    • This reply was modified 1 month, 2 weeks ago by Martin.
    • This reply was modified 1 month, 2 weeks ago by Martin.
    #1464727

    Hi,
    Thanks, but I can not reproduce, I add this:
    Screen Shot 2024 08 15 at 5.17.02 PM
    and see this:
    Screen Shot 2024 08 15 at 5.16.05 PM
    Have you tried to disable all of your plugins?

    Best regards,
    Mike

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