Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 51 total)
  • Author
    Posts
  • in reply to: WYSIWYG Not Working Properly #40511
    Tobias HaasTobias Haas
    Participant

    I have the same error. Usually I could solve this by clicking "Save data in the raw format", but that doesn't work anymore.

    Bricks Builder always inserts an empty <p> tag at the beginning and end.

    <?php
    add_filter( 'rwmb_meta_boxes', 'your_prefix_function_name' );
    
    function your_prefix_function_name( $meta_boxes ) {
        $prefix = '';
    
        $meta_boxes[] = [
            'title'      => __( 'Single Post', 'your-text-domain' ),
            'id'         => 'single-post',
            'post_types' => ['service', 'post', 'prozess'],
            'fields'     => [
                [
                    'name'       => __( 'Single Post Sections', 'your-text-domain' ),
                    'id'         => $prefix . 'single-post-sections',
                    'type'       => 'group',
                    'clone'      => true,
                    'sort_clone' => true,
                    'fields'     => [
                        [
                            'name'    => __( 'Template', 'your-text-domain' ),
                            'id'      => $prefix . 'template-sections',
                            'type'    => 'select',
                            'options' => [
                                'grauebox-section' => __( 'Graue Box', 'your-text-domain' ),
                                'standard-content' => __( 'Standard Box', 'your-text-domain' ),
                                'pdf-section'      => __( 'PDF', 'your-text-domain' ),
                            ],
                        ],
                        [
                            'name'        => __( 'Graue Box', 'your-text-domain' ),
                            'id'          => $prefix . 'grauebox-section',
                            'type'        => 'group',
                            'collapsible' => true,
                            'fields'      => [
                                [
                                    'name' => __( 'Heading', 'your-text-domain' ),
                                    'id'   => $prefix . 'heading',
                                    'type' => 'text',
                                ],
                                [
                                    'name' => __( 'Subheading', 'your-text-domain' ),
                                    'id'   => $prefix . 'subheading',
                                    'type' => 'text',
                                ],
                                [
                                    'name'    => __( 'Wysiwyg', 'your-text-domain' ),
                                    'id'      => $prefix . 'wysiwyg_grauebox',
                                    'type'    => 'wysiwyg',
                                    'options' => [
                                        'media_buttons' => false,
                                    ],
                                ],
                                [
                                    'name' => __( 'Fußzeile', 'your-text-domain' ),
                                    'id'   => $prefix . 'fusszeile',
                                    'type' => 'textarea',
                                    'rows' => 6,
                                ],
                            ],
                            'visible'     => [
                                'when'     => [['template-sections', '=', 'grauebox-section']],
                                'relation' => 'or',
                            ],
                        ],
                        [
                            'name'        => __( 'Standard Content', 'your-text-domain' ),
                            'id'          => $prefix . 'standard-content',
                            'type'        => 'group',
                            'collapsible' => true,
                            'fields'      => [
                                [
                                    'name'    => __( 'Wysiwyg', 'your-text-domain' ),
                                    'id'      => $prefix . 'wysiwyg_standard',
                                    'type'    => 'wysiwyg',
                                    'options' => [
                                        'media_buttons' => false,
                                    ],
                                ],
                            ],
                            'visible'     => [
                                'when'     => [['template-sections', '=', 'standard-content']],
                                'relation' => 'or',
                            ],
                        ],
                        [
                            'name'        => __( 'PDF', 'your-text-domain' ),
                            'id'          => $prefix . 'pdf-section',
                            'type'        => 'group',
                            'collapsible' => true,
                            'fields'      => [
                                [
                                    'name' => __( 'Text', 'your-text-domain' ),
                                    'id'   => $prefix . 'text_pdf',
                                    'type' => 'text',
                                ],
                                [
                                    'name' => __( 'Button Text', 'your-text-domain' ),
                                    'id'   => $prefix . 'button_text_pdf',
                                    'type' => 'text',
                                ],
                                [
                                    'name'             => __( 'File Advanced', 'your-text-domain' ),
                                    'id'               => $prefix . 'file_advanced_pdf',
                                    'type'             => 'file_advanced',
                                    'max_file_uploads' => 1,
                                ],
                            ],
                            'visible'     => [
                                'when'     => [['template-sections', '=', 'pdf-section']],
                                'relation' => 'or',
                            ],
                        ],
                    ],
                ],
            ],
        ];
    
        return $meta_boxes;
    }

    Hope you can Help! Thanks
    Tobias

    in reply to: Fatal error when attempting to edit custom post type #39817
    Tobias HaasTobias Haas
    Participant

    had the same error on mutliple sites... reinstalling the AIO Plugin was my solution..

    in reply to: Critical error when updating to latest version of Meta Box AIO #39803
    Tobias HaasTobias Haas
    Participant

    got a critical error when trying to add a new CPT
    `Aktuelles Plugin: Meta Box AIO (Version 1.16.7) PHP-Version 7.4.30 Fehler-Details ============== Ein Fehler vom Typ E_ERROR wurde in der Zeile 111 der Datei /www/htdocs/w01b82fd/neu.caracciolo-olivenoel.de/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-custom-post-type/src/Edit.php verursacht. Fehlermeldung: Uncaught Error: Class 'RWMB_Update_Option' not found in /www/htdocs/w01b82fd/neu.caracciolo-olivenoel.de/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-custom-post-type/src/Edit.php:111 Stack trace: #0 /www/htdocs/w01b82fd/neu.caracciolo-olivenoel.de/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-custom-post-type/src/Edit.php(24): MBCPT\Edit->is_premium_user() #1 /www/htdocs/w01b82fd/neu.caracciolo-olivenoel.de/wp-includes/class-wp-hook.php(310): MBCPT\Edit->register_upgrade_meta_box('mb-post-type') #2 /www/htdocs/w01b82fd/neu.caracciolo-olivenoel.de/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #3 /www/htdocs/w01b82fd/neu.caracciolo-olivenoel.de/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #4 /www/htdocs/w01b82fd/neu.caracciolo-olivenoel.de/wp-admin/includes/meta-boxes.php(1599): do_action('add_meta_boxes', 'mb-post-type', Object(WP_Post)) #5 /www/htdocs/w01b82fd/neu.caracciolo-olivenoel.de/wp-admin/edit-form-advanced.php(271): register_and_do_post_meta_boxes(Objec

    in reply to: WYSIWYG height in Settings Page #37534
    Tobias HaasTobias Haas
    Participant

    Hey Long,
    it's been a while now.
    Are there any updates on this?

    in reply to: Change Favicon via CustomField in Settings Page #36368
    Tobias HaasTobias Haas
    Participant

    Thank you very much Long!
    It finally works! You saved my day

    in reply to: Change Favicon via CustomField in Settings Page #36356
    Tobias HaasTobias Haas
    Participant

    ok got it! Now it should work.
    But somehow it doesn't get any data... Am I not targeting the field correctly?

    <?php
    add_action('wp_head', function(){
        $favicon = rwmb_get_value( 'favicon', ['object_type' => 'setting'], 'site_option' );
    ?>
    <script type="text/javascript">
    var link = document.querySelector("link[rel~='icon']");
    if (!link) {
        link = document.createElement('link');
        link.rel = 'icon';
        document.getElementsByTagName('head')[0].appendChild(link);
    }
    link.href = '<?php echo $favicon; ?>';
    </script>
    <?php
    });

    Settings Page
    custom field
    custom field2

    Thank you for support!

    in reply to: Change Favicon via CustomField in Settings Page #36350
    Tobias HaasTobias Haas
    Participant

    Hey Long, thanks
    Yes, it is quite possible that this comes from ACF...

    I changed it in my code but still get an error - I forgot to mention it in my first post.

    Error Message:
    Call to undefined function rwmb_get_value()
    
    On line: 1
    <?php $favicon = rwmb_get_value( 'favicon', ['object_type' => 'setting'], 'site_option' ) ?>
    
    <?php
    add_action('wp_head', function(){
    ?>
    <script type="text/javascript">
    var link = document.querySelector("link[rel~='icon']");
    if (!link) {
        link = document.createElement('link');
        link.rel = 'icon';
        document.getElementsByTagName('head')[0].appendChild(link);
    }
    link.href = '<?php echo $favicon; ?>';
    </script>
    <?php
    });
    in reply to: WYSIWYG height in Settings Page #36325
    Tobias HaasTobias Haas
    Participant

    I wanted to ask carefully if you could find out something?

    in reply to: WYSIWYG height in Settings Page #36178
    Tobias HaasTobias Haas
    Participant

    Thanks Long! I've sent the credentials

    in reply to: WYSIWYG height in Settings Page #36167
    Tobias HaasTobias Haas
    Participant

    Do you have another idea? I disabled everything and loaded the default theme but still the same...

    in reply to: WYSIWYG height in Settings Page #36044
    Tobias HaasTobias Haas
    Participant

    Unfortunately still the same...
    theme
    plugins
    screenshot

    in reply to: WYSIWYG height in Settings Page #36026
    Tobias HaasTobias Haas
    Participant

    Hello thank you for your help
    I just noticed that it works too, but not perfectly. See screen capture.

    Do you have any idea?

    https://monosnap.com/file/v2ChLFnmM8vLjApujsU6NQgTaerT9t

    in reply to: Generate Post Title from Custom Fields/Taxonomy #34366
    Tobias HaasTobias Haas
    Participant

    Thanks Long!

    in reply to: Number field for prices #31117
    Tobias HaasTobias Haas
    Participant

    How can I show a comma instead of a period for numbers (price)?

    I want the price to look like this - 1,23 €

    Thanks

    in reply to: Result table with Select Advanced #30300
    Tobias HaasTobias Haas
    Participant

    ok thanks

Viewing 15 posts - 31 through 45 (of 51 total)