New Landing How can we help? Themeforest Theme Support Dante Change default checkbox Post Meta for articles

Viewing 10 posts - 1 through 10 (of 10 total)
  • Posted in: Dante
  • #67774
    Roopos
    Member
    Post count: 2

    Hi,
    I would like to modify some checkboxes options in the articles options
    Everytime a user creates a new article, I would like the Dante theme to remember the custom post meta options
    For instance :
    author box : off
    Full Width Media Display : on
    In conclusion : I would like to change some default checkbox options in Dante theme, and would like the theme to remember these options, without modify the checkboxes eachtime I create a new article
    Which theme files / options do I have to edit ?
    Thanks in advance
    Julien

    #67932
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    You need to edit meta-boxes.php in the swift-framework folder

    You will need to change the

    'std' => 1, values

    0 = off
    1 = on

    – Kyle

    #67938
    Roopos
    Member
    Post count: 2

    Thanks a lot !
    It works fine, thanks for your precious help and fast reply
    Best regards
    Julien

    #67943
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem 🙂

    – Kyle

    #93333
    mrjWells
    Member
    Post count: 137

    Thanks for this Kyle, I was also looking all for this fix.

    Here is the the one that I haven’t been able to fix.
    I would like to set the default to image instead of none.

    Post Meta > Thumbnail Options > Post thumbnail type > (choices are none, image, video, slider)

    I tried changing the meta-boxes.php ‘std’ to ‘Image’ but that didn’t do it (see php settings below)

    // THUMBNAIL TYPE
    array(
    ‘name’ => ‘Post thumbnail type’,
    ‘id’ => “{$prefix}thumbnail_type”,
    ‘type’ => ‘select’,
    ‘options’ => array(
    ‘none’ => ‘None’,
    ‘image’ => ‘Image’,
    ‘video’ => ‘Video’,
    ‘slider’ => ‘Slider’
    ),
    ‘multiple’ => false,
    ‘std’ => ‘Image’,
    ‘desc’ => ‘Choose what will be used for the post item thumbnail.’,

    #93335
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,

    @mrjWells
    – I will provide you fix at your topic.
    Thanks

    #93361
    mrjWells
    Member
    Post count: 137

    Thanks Mohmmad, I appreciate it.

    #93364
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome.
    Thanks 🙂
    With Best Regards
    Swift Ideas

    #93423
    mrjWells
    Member
    Post count: 137

    Hey Mohammad,

    I figured out how to change the default for Post Meta > Thumbnail Options > Post thumbnail type >

    I just had to add ‘image’ (instead of ‘Image’) in the meta-boxes.php. See example below…
    // THUMBNAIL TYPE
    array(
    ‘name’ => ‘Post thumbnail type’,
    ‘id’ => “{$prefix}thumbnail_type”,
    ‘type’ => ‘select’,
    ‘options’ => array(
    ‘none’ => ‘None’,
    ‘image’ => ‘Image’,
    ‘video’ => ‘Video’,
    ‘slider’ => ‘Slider’
    ),
    ‘multiple’ => false,
    ‘std’ => ‘image’,
    ‘desc’ => ‘Choose what will be used for the post item thumbnail.’,

    #93512
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Brilliant! I’m glad that you managed to resolve the issue.
    Thanks 🙂
    With Best Regards
    Swift Ideas

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

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

License required for the following item
Login and Registration Log in · Register