Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,876 through 1,890 (of 3,708 total)
  • Author
    Posts
  • in reply to: Composer update, nothing to update? #10964
    Anh TranAnh Tran
    Keymaster

    I think so. I did the same for Meta Box AIO (remove the vendor folder, clear cache and re-install).

    Anh TranAnh Tran
    Keymaster

    Hi Marge,

    Your code seems okay to me. You don't need anything else except Meta Box + the Integrator. Let me check it again and get back to you soon.

    in reply to: Conditional Logic and Gutenberg #10961
    Anh TranAnh Tran
    Keymaster

    Hi DrecDroiD,

    Gutenberg affects all plugins. In this case, both Conditional Logic and Show/Hide are affected.

    Anh TranAnh Tran
    Keymaster

    Hi Mauro,

    We're working on the Geolocation to make it work with OSM. When it's done, you can bind data to fields.

    Regarding the language, this is sadly the way it handles language. There's no way to change that :(. It shows language of the current being viewed country. You can see it on its homepage https://osm.org.

    in reply to: Display multiple items on the map? #10958
    Anh TranAnh Tran
    Keymaster

    Hi Mauro,

    Unfortunately, it's not possible at the moment. There were some users asked for the same thing and it's on our plan.

    Best,
    Anh

    in reply to: Disabling submit button in option page #10923
    Anh TranAnh Tran
    Keymaster

    Hi Bezzo,

    You can easily hide the submit button with CSS.

    This code below lets you enqueue a CSS file for the settings page:

    add_action( 'admin_enqueue_scripts', function() {
        $screen = get_current_screen();
        if ( 'your-screen-id' == $screen->id ) {
            wp_enqueue_style( 'your-file', 'http://url-to-your.css' );
        }
    } );

    To get the screen ID of the settings page, you can use the Inspector plugin. The screen ID is shown in the "Help" tab, like this:

    https://imgur.elightup.com/UAIRkbc.png

    In your CSS file, you can simply enter this:

    .wrap .submit { display: none; }

    If the process above is complicated, you can use a "quick and dirty" tip below:

    When you register a meta box for the settings page, add a custom_html field like this:

    $meta_boxes[] = [
        // Other fields
        [
            'type' => 'custom_html',
            'std' => '<style>.wrap .submit { display: none; }</style>',
        ]
    ];

    It will output the <style> to the page and hide the submit button.

    in reply to: Conditional Logic and Gutenberg #10922
    Anh TranAnh Tran
    Keymaster

    Hello,

    The Gutenberg plugin changes HTML markup and breaks the current code. We haven't updated the code for post format yet. Gutenberg can change the markup anytime until it's stable (merged into core). We'll keep working on that to make the conditional logic works.

    in reply to: Builder Questions #10921
    Anh TranAnh Tran
    Keymaster

    Hi Michael,

    We're working on this feature. When it's done, you'll be able to copy & paste the options into a textarea. No need to enter each option one by one.

    The tab requires MB Tabs extension. When you activated the extension, you can add tabs like in this screenshot:

    https://imgur.elightup.com/pQSMp7c.png

    And they will display like this:

    https://imgur.elightup.com/E33eTsk.png

    Anh TranAnh Tran
    Keymaster

    Thanks a lot for your code! It really helps. I've fixed it on Github.

    in reply to: Composer update, nothing to update? #10919
    Anh TranAnh Tran
    Keymaster

    Hi Mauro,

    Maybe Composer caches the packages. I always run these 2 commands together:

    composer clear-cache && composer install

    Anh TranAnh Tran
    Keymaster

    Hi Marge,

    I've just tested with The Events Calendar plugin and I see all custom fields for events are showing in the Themer. Here is my screenshot:

    https://imgur.elightup.com/K6Y6fAa.png

    How did you set it up?

    in reply to: Help with Background Field #10917
    Anh TranAnh Tran
    Keymaster

    Hi Thomas,

    The background field saves details into an array. If you use the helper function rwmb_meta() to get its value - you'll get an array.

    To get the generated CSS for the background, please use the function rwmb_the_value().

    This is the sample code:

    $bg = rwmb_meta( 'field_id' );
    echo $bg['color']; // Output a single background attribute
    
    // Get CSS for background
    $css = rwmb_the_value( 'field_id', '', '', false );
    echo $css;
    Anh TranAnh Tran
    Keymaster

    List of actions are available in the documentation.

    To add small HTML and JS just below a field, you can use the after param of the field. See field settings for more details.

    in reply to: Front-end validation messages #10895
    Anh TranAnh Tran
    Keymaster

    Hey guys. Thanks a lot for your details. Let me check Jason's code first. Looks like it's more complicated than I thought.

    Anh TranAnh Tran
    Keymaster

    Hi Dan,

    Can you please give me more details on how the $config can include all username, password? I'm quite confused how $config is related to the validation banner.

Viewing 15 posts - 1,876 through 1,890 (of 3,708 total)