Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ultimate Member

    (@ultimatemember)

    Hi,

    We only have those ratios built into plugin at moment. A portrait cover photo would not look good on tablets, laptops and larger devices.

    Thanks

    Thread Starter mycreativeway

    (@mycreativeway)

    Hi Thanks for the answer.

    Is there a way I can do it through any function or code?
    I really need it for my web app.

    Plugin Author Ultimate Member

    (@ultimatemember)

    If you want to modify core files you understand that this can be undone by our udpates.

    in um-config.php you need to extend the ratios here

    array(
    ‘id’ => ‘profile_cover_ratio’,
    ‘type’ => ‘select’,
    ‘select2’ => array( ‘allowClear’ => 0, ‘minimumResultsForSearch’ => -1 ),
    ‘title’ => __( ‘Profile Cover Ratio’,’ultimatemember’ ),
    ‘desc’ => __( ‘Choose global ratio for cover photos of profiles’,’ultimatemember’ ),
    ‘default’ => um_get_metadefault(‘profile_cover_ratio’),
    ‘options’ => array(
    ‘2.7:1’ => ‘2.7:1’,
    ‘2.2:1’ => ‘2.2:1’,
    ‘3.2:1’ => ‘3.2:1’,
    ),
    ‘required’ => array( ‘profile_cover_enabled’, ‘=’, 1 ),
    ),

    Thanks!

    Thread Starter mycreativeway

    (@mycreativeway)

    Okay. Thanks.

    Plugin Author Ultimate Member

    (@ultimatemember)

    You welcome!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to define custom "Profile Cover Ratio" ?’ is closed to new replies.