We're merging with GenerateBlocks! Learn more here.

[Resolved] Default Settings for Lists

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Default Settings for Lists

  • This topic has 5 replies, 2 voices, and was last updated 4 years ago by Tom.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #9154
    Eric
    Participant

    Hi,

    The website I am working on will utilize a lot of lists using your plugin…

    Is there a way to change the default settings that appear whenever I create a new list?

    In particular, the most cumbersome and repetitive task I am doing right now is changing the main color and hover color for Social Media Icons and the Love icon.

    Is it possible to have a customized default setting for those icons…? and for other settings if needed?

    Thanks for your help,

    Eric

    #9164
    Tom
    Keymaster

    Hi there,

    Yes, all of the defaults are filterable. For options in WPSP Pro, you can find the list in inc/defaults.php

    For example, to change the social options:

    add_filter( 'wpsp_defaults', function( $defaults ) {
        $defaults['wpsp_twitter']	= false;
        $defaults['wpsp_twitter_color'] = '#737373';
        $defaults['wpsp_twitter_color_hover'] = '#0084b4';
        $defaults['wpsp_facebook'] = false;
        $defaults['wpsp_facebook_color'] = '#737373';
        $defaults['wpsp_facebook_color_hover'] = '#2d4372';
        $defaults['wpsp_pinterest'] = false;
        $defaults['wpsp_pinterest_color'] = '#737373';
        $defaults['wpsp_pinterest_color_hover'] = '#bd081c';
        $defaults['wpsp_love'] = false;
        $defaults['wpsp_love_color'] = '#737373';
        $defaults['wpsp_love_color_hover'] = '#ff6863';
    
        return $defaults;
    }, 20 );
    #9166
    Eric
    Participant

    Sweet! Thanks…

    Eric

    #9167
    Eric
    Participant

    Hi Tom,

    I guess I don’t know where to find the following location you pointed out:

    inc/defaults.php

    Where do I find that?

    Thanks,

    Eric

    #9168
    Eric
    Participant

    Hi Tom,

    Me again!

    I found it. Please disregard the above question.

    Eric

    #9199
    Tom
    Keymaster

    Glad you got it sorted 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.