whothephuc
Forum Replies Created
-
With the latest update this fix doesn’t work anymore
I found the problem in mt-reports.php in the mt_get_report_data_by_time function.
There’s following if condition:
if ( absint( $v[‘event_id’] ) === absint( $post->ID ) ) {}If I remove that, I get the data of the custom fields. Not sure, why it’s needed, so I removed it.
I also figured how to show the amount of tickets in the date view of the report. I think it would be nice to implement it. I guess I’m not the only person who would like to know how many bought tickets in this view and in the csv.
Forum: Fixing WordPress
In reply to: Font Size Selection not working in 5.6.1Not sure if I should open a new ticket, but I think it’s related to the same problem.
When you have a gallery block and want to set the size of the image, the select box doesn’t show what you’ve selected. Just like the Font Size problem.The value is saved though, even if it doesn’t show in the select field.
Forum: Fixing WordPress
In reply to: Font Size Selection not working in 5.6.1Yes. I didn’t test the custom font size because I deactivated this feature in my theme.
And it looks like to work fine. But the selection is broken.Forum: Fixing WordPress
In reply to: Font Size Selection not working in 5.6.1Here’s a screen: https://paste.pics/4f0745eec7441ef5324bd6acc6f1c762
Couldn’t find a way to post the screenshot directly into the message ??I’m talking bout the Font Size Select in the Typography Settings of the paragraph/heading.
Where you can also set the line height or a custom font size.
Can’t select any value like- extra small
- small
- normal
etc.
Forum: Fixing WordPress
In reply to: Images Not Lazy LoadingImages need a width and height for lazyload to be activated.
wprocket has a function to add the image width and height.
I’m not sure why some images don’t get these attributes by default.I guess @razor90 is talking about the changes in wordpress 5.4, where some div’s got removed in the gutenberg editor view. Which is actually a good thing, because that’s what makes styling the backend for the authors difficult.
But of course also breaks, when people put a lot of effort in styling the editor view before that change.And I love to see, that the dev’s are getting of additional markup in the editor. But I will not style the editor, until all of them are gone and I don’t have to write CSS twice. Hope that happen’s soon. It’s just bad for my customers, who can’t experience a real wysiwyg experience
Translatepress is amazing, except for exactly this problem. So even when I change a paragraph or just one word in the original file, the translation is “lost”.
Is there a way to at least see the lost translations, so that I can copy them and add it to the site again?
Or just a warning, that the original text changed but keep the translation in place?Sorry no, that got nothing to do with my problem.
My Problem looks like this. I’ve included a image. That Image is in a group.
The Frontend HTML looks like this:<div class="wp-block-group"><div class="wp-block-group__inner-container"> <figure class="wp-block-image size-large"><img data-opt-src="https://mlvty31gnnoe.i.optimole.com/pc7YPA-gdBFEzuc/w:1024/h:683/q:auto/https://generatepress.local/wp-content/uploads/99-films-HpDYONyUSYI-unsplash.jpg" src="https://mlvty31gnnoe.i.optimole.com/pc7YPA-gdBFEzuc/w:952/h:635/q:auto/https://generatepress.local/wp-content/uploads/99-films-HpDYONyUSYI-unsplash.jpg" alt="" class="wp-image-100" data-opt-lazy-loaded="true" data-opt-otimized-width="952" data-opt-optimized-height="635"><noscript><img src="https://mlvty31gnnoe.i.optimole.com/pc7YPA-gdBFEzuc/w:1024/h:683/q:auto/https://generatepress.local/wp-content/uploads/99-films-HpDYONyUSYI-unsplash.jpg" alt="" class="wp-image-100"/></noscript></figure> </div></div>
While the backend HTML looks like this:
<div id="block-b82f19fd-03f2-4546-8980-2b0d433bdba0" class="wp-block editor-block-list__block block-editor-block-list__block is-selected" data-type="core/group" tabindex="0" aria-label="Block: Gruppe" style="transform-origin: center center; transform: none;"><div class="editor-block-list__insertion-point block-editor-block-list__insertion-point"><div tabindex="-1" class="editor-block-list__insertion-point-inserter block-editor-block-list__insertion-point-inserter"><div class="editor-inserter block-editor-inserter"><button type="button" aria-label="Block hinzufügen" aria-haspopup="true" aria-expanded="false" class="components-button components-icon-button editor-inserter__toggle block-editor-inserter__toggle"><svg aria-hidden="true" role="img" focusable="false" class="dashicon dashicons-insert" xmlns="https://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"></path></svg></button></div></div></div><div class="components-drop-zone editor-block-drop-zone block-editor-block-drop-zone"></div><div class="editor-block-list__block-edit block-editor-block-list__block-edit"><div class="editor-block-mover block-editor-block-mover is-visible"><button type="button" aria-label="Nach oben" aria-describedby="block-editor-block-mover__up-description-1" aria-disabled="false" class="components-button components-icon-button editor-block-mover__control block-editor-block-mover__control"><svg width="18" height="18" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 18 18" role="img" aria-hidden="true" focusable="false"><polygon points="9,4.5 3.3,10.1 4.8,11.5 9,7.3 13.2,11.5 14.7,10.1 "></polygon></svg></button><div class="editor-block-mover__control-drag-handle block-editor-block-mover__control-drag-handle editor-block-mover__control block-editor-block-mover__control" aria-hidden="true" draggable="true"><svg width="18" height="18" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 18 18" role="img" aria-hidden="true" focusable="false"><path d="M13,8c0.6,0,1-0.4,1-1s-0.4-1-1-1s-1,0.4-1,1S12.4,8,13,8z M5,6C4.4,6,4,6.4,4,7s0.4,1,1,1s1-0.4,1-1S5.6,6,5,6z M5,10 c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S5.6,10,5,10z M13,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S13.6,10,13,10z M9,6 C8.4,6,8,6.4,8,7s0.4,1,1,1s1-0.4,1-1S9.6,6,9,6z M9,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S9.6,10,9,10z"></path></svg></div><button type="button" aria-label="Nach unten" aria-describedby="block-editor-block-mover__down-description-1" aria-disabled="false" class="components-button components-icon-button editor-block-mover__control block-editor-block-mover__control"><svg width="18" height="18" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 18 18" role="img" aria-hidden="true" focusable="false"><polygon points="9,13.5 14.7,7.9 13.2,6.5 9,10.7 4.8,6.5 3.3,7.9 "></polygon></svg></button><span id="block-editor-block-mover__up-description-1" class="editor-block-mover__description block-editor-block-mover__description">Bewege Gruppe Block von Position 2 nach oben zur Position 1</span><span id="block-editor-block-mover__down-description-1" class="editor-block-mover__description block-editor-block-mover__description">Bewege Gruppe Block von Position 2 nach unten zur Position 3</span></div><div role="toolbar" aria-orientation="horizontal" class="editor-block-contextual-toolbar block-editor-block-contextual-toolbar" aria-label="Block-Werkzeuge"><div class="editor-block-toolbar block-editor-block-toolbar"><div class="components-toolbar"><button type="button" disabled="" aria-label="Block-Icon" class="components-button components-icon-button editor-block-switcher__no-switcher-icon block-editor-block-switcher__no-switcher-icon"><span class="editor-block-icon block-editor-block-icon has-colors"><svg width="24" height="24" viewBox="0 0 24 24" xmlns="https://www.w3.org/2000/svg" role="img" aria-hidden="true" focusable="false"><path fill-rule="evenodd" clip-rule="evenodd" d="M9 8a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-1v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h1V8zm2 3h4V9h-4v2zm2 2H9v2h4v-2z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M2 4.732A2 2 0 1 1 4.732 2h14.536A2 2 0 1 1 22 4.732v14.536A2 2 0 1 1 19.268 22H4.732A2 2 0 1 1 2 19.268V4.732zM4.732 4h14.536c.175.304.428.557.732.732v14.536a2.01 2.01 0 0 0-.732.732H4.732A2.01 2.01 0 0 0 4 19.268V4.732A2.01 2.01 0 0 0 4.732 4z"></path></svg></span></button></div><div class="block-editor-block-toolbar__slot"><div class="components-dropdown-menu components-toolbar"><button type="button" aria-label="Ausrichtung ?ndern" aria-haspopup="true" aria-expanded="false" class="components-button components-icon-button components-dropdown-menu__toggle has-text"><svg aria-hidden="true" role="img" focusable="false" class="dashicon dashicons-align-center" xmlns="https://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M3 5h14V3H3v2zm12 8V7H5v6h10zM3 17h14v-2H3v2z"></path></svg><span class="components-dropdown-menu__indicator"></span></button></div></div><div class="block-editor-block-toolbar__slot"></div><div class="components-toolbar"><div class="components-dropdown-menu block-editor-block-settings-menu"><button type="button" aria-label="Mehr Optionen" aria-haspopup="true" aria-expanded="false" class="components-button components-icon-button components-dropdown-menu__toggle"><svg aria-hidden="true" role="img" focusable="false" class="dashicon dashicons-ellipsis" xmlns="https://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M5 10c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm12-2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-7 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"></path></svg></button></div></div></div></div><div data-block="b82f19fd-03f2-4546-8980-2b0d433bdba0"><div class="wp-block-group"><div class="wp-block-group__inner-container"><div class="editor-inner-blocks block-editor-inner-blocks"><div class="editor-block-list__layout block-editor-block-list__layout"><div id="block-1b809f02-58c9-4f56-92d0-4acea0aa7087" class="wp-block editor-block-list__block block-editor-block-list__block" data-type="core/image" tabindex="0" aria-label="Block: Bild" style="transform-origin: center center; transform: none;"><div class="editor-block-list__insertion-point block-editor-block-list__insertion-point"><div tabindex="-1" class="editor-block-list__insertion-point-inserter block-editor-block-list__insertion-point-inserter"><div class="editor-inserter block-editor-inserter"><button type="button" aria-label="Block hinzufügen" aria-haspopup="true" aria-expanded="false" class="components-button components-icon-button editor-inserter__toggle block-editor-inserter__toggle"><svg aria-hidden="true" role="img" focusable="false" class="dashicon dashicons-insert" xmlns="https://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"></path></svg></button></div></div></div><div class="components-drop-zone editor-block-drop-zone block-editor-block-drop-zone"></div><div class="editor-block-list__block-edit block-editor-block-list__block-edit"><div data-block="1b809f02-58c9-4f56-92d0-4acea0aa7087"><figure class="wp-block-image size-large"><div><div class="components-resizable-box__container" style="position: relative; user-select: auto; width: auto; height: auto; max-width: 1450px; max-height: 967.139px; min-width: 29.9854px; min-height: 20px; box-sizing: border-box;"><img src="https://generatepress.local/wp-content/uploads/99-films-HpDYONyUSYI-unsplash-1024x683.jpg" alt="Dieses Bild hat ein leeres Alt-Attribut. Der Dateiname ist 99-films-HpDYONyUSYI-unsplash-1024x683.jpg"><span><div class="components-resizable-box__handle components-resizable-box__side-handle components-resizable-box__handle-right" style="position: absolute; user-select: none; cursor: col-resize;"></div><div class="components-resizable-box__handle components-resizable-box__side-handle components-resizable-box__handle-bottom" style="position: absolute; user-select: none; cursor: row-resize;"></div></span></div><div class="__resizable_base__" style="width: 100%; height: 100%; position: absolute; transform: scale(0, 0); left: 0px; flex: 0 1 0%;"></div></div></figure><div class="components-drop-zone"></div></div></div></div></div></div></div></div></div></div></div>
Now I add a style to the group and want to adjust the image inside the group. On the frontend everything is fine and easy to do, but not on the backend.
Simple example with CSS Grid or Flexbox. I cannot just use the same CSS on the frontend for the backend (editor view) because there are additional div’s between the group and the image.- This reply was modified 4 years, 8 months ago by whothephuc.
Forum: Fixing WordPress
In reply to: Core Spacer Gutenberg Block mobile spacing (again)thanks
@keraweb First I thought when you create a new content type and choose taxonomy. But that would be way too early. So the better place would be in the advanced options where you associate the post types. Because there you make the connection to the post type. I guess I would expect the information there.
@keraweb But when I’m using pods I’m not going to search for the solution in the Docs but in the plugin that I use. I would expect to find the answere somewhere in the plugin Settings.
I was already frustrated, why I didn’t see my custom taxonomies in my custom post type. Maybe you want to add a note, to activate rest api.
Forum: Reviews
In reply to: [Google Forms] Doesn’t work anymoreI can see the running man on my forms but it is disabled, so I can’t switch to the old Forms version. Are you going to upgrade the plugin to work with the new Google Forms?