New Landing How can we help? Cardinal post meta, setting by default

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Cardinal
  • #106977
    benjamin
    Member
    Post count: 26

    Hi
    Atcualy for the singles posts, the post meta by default are “standard” for “Media display” and “500px” for “Title Overlay Min Height”. How can i change this setting by default because for each post i used “full width with title” overlay and “50px”.
    This will save me time

    Thank

    Ben

    #106994
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    1) Go to includes/meta-boxes.php and go to line 1085:

    // FULL WIDTH MEDIA
    			array(
    				'name' => __('Media Display', 'swift-framework-admin'),
    				'id'   => "{$prefix}fw_media_display",
    				'type' => 'select',
    				'options' => array(
    					'fw-media-title'		=> __('Full Width with Title Overlay', 'swift-framework-admin'),
    					'fw-media'		=> __('Full Width', 'swift-framework-admin'),
    					'standard-above'		=> __('Standard (Above content)', 'swift-framework-admin'),
    					'standard'	=> __('Standard', 'swift-framework-admin'),
    				),
    				'multiple' => false,
    				'std'  => 'standard',
    				'desc' => __('Choose how you would like to display your selected media - full width (edge to edge) with or without the title overlay, or standard. If you choose the title overlay option, it is recommended that you hide the page title in the page title meta options.', 'swift-framework-admin')
    			),
    

    edit line 1097:

    'std' => 'standard',

    to

    'std' => 'fw-media-title',

    2) Same method, go to line 1101 :

    // MEDIA IMAGE HEIGHT
    			array(
    				'name' => __('Title Overlay Min Height', 'swift-framework-admin'),
    				'id' => $prefix . 'media_height',
    				'desc' => __("If you are using the 'Full Width with Title Overlay' media display type, you can set a min-height for it here (no px).", 'swift-framework-admin'),
    				'clone' => false,
    				'type'  => 'text',
    				'std' => '500',
    			),

    change 500 to 50

    – Kyle

    #107065
    benjamin
    Member
    Post count: 26

    Yes!! it work !!
    Thank you Kyle !

    Ben

    #107066
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Great, no problem

    #155712
    jenny852
    Member
    Post count: 1

    Thanks for this info. I’ve changed the default media display and height for posts, but it only affects new posts.

    Is there a way to force update these meta options for existing posts?

    Thanks!

    Jenny

    #156026
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    To bulk update meta fields, try using this plugin: https://wordpress.org/plugins/custom-field-bulk-editor/

    -Rui

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register