Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • metafanmetafan
    Participant

    The "drag & drop" did the trick. After moving the boxes forth and back, the divider appears as it should.

    Thanks a lot.

    in reply to: add custom button to wsiwyg field #49495
    metafanmetafan
    Participant

    Say hello 5 years later,
    is there a solution for this problem?

    I'd like to add a custom list (ul with class) button to the wysiwyg field.

    Thanks.

    in reply to: Setting "Anchor" -> Error loading block #48428
    metafanmetafan
    Participant

    Hi Peter,

    any news about this issue / bug, please?

    Thanks!

    in reply to: Can't clone cloneable group and can't view wyswig 'Text' #47742
    metafanmetafan
    Participant

    I have the same problem with cloning.
    Activating the single plugin Meta Box along with Meta Box AIO works.

    in reply to: WYSIWYG adds line break to list element #47732
    metafanmetafan
    Participant

    Oh, yes!!
    Thanks for checking!

    in reply to: WYSIWYG adds line break to list element #47707
    metafanmetafan
    Participant

    Hi Peter,

    please have a look here:
    https://www.statmaps.com/screen_1.png
    https://www.statmaps.com/screen_2.png

    Theme GeneratePress,but the same on Twenty Twenty-Five.

    in reply to: WYSIWYG adds line break to list element #47689
    metafanmetafan
    Participant

    Hi Peter,

    please have a look at the output on the left of your screen. Need to wait a second to render the list (on your green background).

    Thanks.

    in reply to: Background image doesn't render in Gutenberg #47594
    metafanmetafan
    Participant

    Fixed in Version 1.7.4

    Thank You!

    in reply to: Missing 'Link field' #47570
    metafanmetafan
    Participant

    Yes, an url field with internal link suggestions would be great!

    Setting internal links by copy & paste is not very smart.

    Any news about that feature?
    Thanks.

    in reply to: Background image doesn't render in Gutenberg #47549
    metafanmetafan
    Participant

    Yes, would be nice to get an update soon!
    Any concrete time plan?

    Thanks

    in reply to: mb_blocks_preview not working #47213
    metafanmetafan
    Participant

    Hello Peter,

    is this issue already fixed?
    I ran into the same problem...

    My styles and scripts are enqueued with enqueue_assets. They show up on the frontend and on the backend (Gutenberg). But the function works/runs only on the frontend.

    ( function( $ ) {
        function init() {
    		baguetteBox.run('.gallery');
        }
    
        // Run when a document ready on the front end.
        $( document ).ready( init );
    
        // Run when a block preview is done loading.
        $( document ).on( 'mb_blocks_preview/gallery', init );
    } )( jQuery );

    Thanks.

    in reply to: Background image doesn't render in Gutenberg #47198
    metafanmetafan
    Participant

    Hello Peter, hello Tan,

    thanks for the quick fix!!

    in reply to: Background image doesn't render in Gutenberg #47189
    metafanmetafan
    Participant

    Hi Peter,

    this code also works for me in the frontend, but not in the backend (Gutenberg). The image isn't visible in the editor.

    I think, not the registration is the problem, cause the output of the variable ($image_url) is ok.

    I register the block with this code:

    <?php
    add_filter( 'rwmb_meta_boxes', 'custom_blocks_mc_teaser_boxes' );
    
    function custom_blocks_mc_teaser_boxes( $meta_boxes ) {
        $prefix = 'mc-';
    
        $meta_boxes[] = [
            'title'           => __( 'MC Teaser Boxen', 'custom-blocks' ),
            'id'              => 'mc-teaser-boxes',
            'description'     => 'MC Teaser Boxen',
            'icon' => [
                'background' => '#c2b7ae',
                'foreground' => '#fff',
                'src' => 'images-alt',
            ],
            'category'        => 'mc',
            'keywords'        => ['teaser', 'box', 'mc'],
            'supports'        => [
                'align' => ['left', 'right', 'center', 'wide', 'full'],
            ],
            'render_template' => plugin_dir_path( __FILE__ ) . 'template.php',
            'enqueue_assets' => function() {
                wp_enqueue_style( 'mc-teaser-boxes-styles', plugin_dir_url( __FILE__ ) . 'mc-teaser-boxes-styles.css' );
            },
            'type'            => 'block',
            'context'         => 'side',
            'fields'          => [
                [
                    'type' => 'group',
                    'id'   => 'teaser-boxes-rows',
                    'name' => 'MC-Teaser-Elemente',
                    'group_title' => 'Teaser {#}',
                    'clone' => true,
                    'sort_clone' => true,
                    'collapsible' => true,
                    'fields' => [
                    
                        [
                            'name'              => __( 'Bild', 'custom-blocks' ),
                            'id'                => $prefix . 'teaser-boxes-img',
                            'type'              => 'single_image',
                            'required'          => true,
                        ],
                        [
                            'name'              => __( 'Überschrift (fett)', 'custom-blocks' ),
                            'id'                => $prefix . 'teaser-boxes-headline',
                            'type'              => 'text',
                        ],
                    ],
                ],
            ],
        ];
    
        return $meta_boxes;
    }

    and this is the template:

    <div class="mc-teaser-boxes">
        <div class="mc-teaser-boxes-wrap">
            <?php
            $groups = mb_get_block_field( 'teaser-boxes-rows' );
            foreach ( $groups as $group ) {
                $image = RWMB_Image_Field::file_info( $group['mc-teaser-boxes-img'], ['size' => 'full'] );
                
                echo '<div class="teaser-boxes-sub">';
                    echo '<div class="mc-teaser-boxes-bg-box">';
                        echo '<div class="mc-teaser-boxes-img" style="background-image: url('.$image['url'].')"></div>';
                        echo '<div class="mc-teaser-boxes-border">';
                            echo '<div class="mc-teaser-boxes-txt-box">';
                                echo '<h3>'.$group['mc-teaser-boxes-headline'].'</h3>';
                                echo '<p>'.$image['url'].'</p>';
                            echo '</div>';
                        echo '</div>';
                    echo '</div>';
            }
            ?>
        </div>
    </div>

    I put $image['url'] in a paragraph tag for debugging. You will see, the url is ok.

    Thanks!

    metafanmetafan
    Participant

    Must have for good UX!!
    Any news?
    Thanks

    in reply to: MB Block with switch or radio buttons #36700
    metafanmetafan
    Participant

    Thank you!

Viewing 15 posts - 1 through 15 (of 16 total)