• Resolved Li-An

    (@li-an)


    Hello, I don’t know if it’s possible but I wish I could have by default an Image block with medium size for the image, aligncenter, and linked to media file.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author rock4temps

    (@rock4temps)

    Hello,

    for the moment it is not parameters that I will add to the plugin.
    You can add this code to a child theme’s functions.php file:
    `function options_default_img() {
    update_option( ‘image_default_align’, ‘center’ );
    update_option( ‘image_default_link_type’, ‘file’ );
    update_option( ‘image_default_size’, ‘medium’ );
    }
    add_action( ‘after_setup_theme’, ‘options_default_img’ );

    or all simply from the URL: https://yoursite.com/wp-admin/options.php
    modify the options for the following parameters:

    image_default_align: center
    image_default_link_type: file
    image_default_size: medium

    Thread Starter Li-An

    (@li-an)

    I did not know these tips – and did not imagine they can exist. Thanks a lot – I made a review of the plugin on l’écho des Plugins.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Size and Image alignment’ is closed to new replies.