Custom Fields
Support MB Settings Page Settings Page Image Output Stuck in 150x150 Configuration

  • Creator
  • #26988
    Resolved jackp317


    I was following this tutorial and I'm having an issue with the image output. The png image that I'm testing is stuck in a 150x150 configuration.

    When outputted, the image source shows 150x150 when the image uploaded on the settings page is 1538x507 pixels. Not sure what is causing this. I noticed that the tutorial uses a square logo so it isn't affected, but my horizontal logo is.

    Code used:

    /* Get the URL of logo image from the settings page */
    function wpdd_get_mb_settings_logo_url( $field_id ) {
        $logo = rwmb_meta( 'company_logo', ['object_type' => 'setting'], 'company_options' );
        return $logo ? $logo['url'] : '';

    Here is the outputted page source:
    <img id="image-383-1283" alt="" src="" class="ct-image">

    Here is the logo added to the settings page:

    Any ideas how to not restrict the image output to 150x150 and remove that from the image file path?


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