• What file would I edit with the WP Plugin Editor to make the Large Card style the default setting for the Post editor Shortcode Generator.
    Where leaving that blank gives me a large card instead?

    I guess this could be a feature request also, unless I am missing something and it is a feature option already?

    Thanks for the awesome plugin.

    • This topic was modified 6 years, 11 months ago by Crssp.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Brice Capobianco

    (@brikou)

    Hi,
    I’m not sure if it will work but I think you can use this feature to achieve this

    You cane asily overload the plugin rendering. You need to create a new “wppic-templates” folder into your theme folder, then copy the template you want to overload from the WP Plugin Info Card “wppic-templates” folder.

    Try to copy the large template wppic-template-plugin-large.php and rename it to wppic-template-plugin.php.

    But with methode, you wouldn’t be able anymore to use the default template with the flipping effect.

    Another thing you can try is to hook the shortcode with shortcode_atts_shortcode and set new default values.

    Let me know if it works.

    Best,

    Thread Starter Crssp

    (@crssp)

    Thanks Brice, I might try working with the Shortcode attributes then.
    What file am I looking at trying to edit, if I go that route?
    Maybe I could write it so that field auto-populates the shortcode with Large card, would be another possibility.
    Hoping I could figure that one out, when I see the code structure.
    Thanks for your suggestions, so far. ??

    Thread Starter Crssp

    (@crssp)

    Would editing the selectable parameters in the UI here do the trick???
    Edit Plugins
    Editing wp-plugin-info-card/wp-plugin-info-card-ui.php
    ———————————————————-

    1. Add Large value as Default, and then add Card on its own selectable parameter line???

    
    //Define additionnal hookable MCE parameters
    $mceAddParam = array(
    		'types' => array(),
    		'layouts' => array(
    			array( 'text' => __( 'Card (default)', 'wp-plugin-info-card' ), 'value' => '' ),
    			array( 'text' => __( 'Large', 'wp-plugin-info-card' ), 'value' => 'large' ),
    			array( 'text' => __( 'WordPress', 'wp-plugin-info-card' ), 'value' => 'wordpress' )
    		)
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing default setting to Large for WP Plugin Info Card’ is closed to new replies.