WordPress.org

Ready to get started?Download WordPress

Forums

wp2pgpmail
CSS edits retained after product upgrade? (6 posts)

  1. webmystery
    Member
    Posted 2 years ago #

    I'm making a lot of changes to wp2pgpmail-pro.css, which is loaded after my theme's style sheet in the page header and therefore cannot be overriden in my theme. Will this file be overwritten during a plugin upgrade? Any suggestions, besides keeping a backup copy and restoring it after the upgrade, to prevent this from happening

    Thanks!

    http://wordpress.org/extend/plugins/wp2pgpmail/

  2. webmystery
    Member
    Posted 2 years ago #

    Is it possible (aside from the obvious hacking of the plugin) to set the Address field for a default country? My form will be used only by US residents, so it is mostly usless to have them all scroll down to the 'U's.
    Thanks!

  3. belaich
    Member
    Posted 2 years ago #

    Could you send us a copy of the wp2pgpmail-pro.css file that you changed so we can take a look? you can use our support ticket system: http://wp2pgpmail.com/support/

    About the country list, we are trying to see if there is an easy solution to implement. Otherwise, we will send you the line of code to change!

  4. webmystery
    Member
    Posted 2 years ago #

    I see that many of my changes are now irrelevant, since you added the ability to position fields across the page left, middle and right (thanks), BUT - what if I don't want .wp2pgpmail .legend{background-color:#eeeeee;} (line 36), or
    .wp2pgpmail .legend h3{font-size:20px;} ? I suggest please letting the user's theme style sheet do the bulk if not all of the formatting. Or give us a way to override the plugin style sheet the way I can override a theme with a child theme. Thanks.

  5. belaich
    Member
    Posted 2 years ago #

    I suggest you to do the following steps to override the CSS plugin:

    • create a new file with your custom CSS code (for example wp2pgpmail-override.css)
    • upload this file to your server (at the root of WordPress for example, to be sure that it won't be not overwritten by a plugin update)
    • go to Appearance => Editor => Header to edit the header.php file
    • add the reference to the new style sheet after the wp_head() function:
    <head>
        <!-- all the usual preamble stuff goes here -->
    
        <?php wp_head(); ?>
        <link rel="stylesheet" href="/wp2pgpmail-override.css" type="text/css" />
    </head>
  6. belaich
    Member
    Posted 2 years ago #

    About setting the US as the default country, you can replace:

    <option selected="selected" value=""></option>';
    
    foreach ( $countries as $country ) {
    	$output .= "<option value='$country'>$country</option>";
    }

    by:

    <option selected="selected" value="United States of America">United States of America</option>';

    We will try to find a better solution in a next release. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags