CSS edits retained after product upgrade? (6 posts)

  1. webmystery
    Posted 4 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



  2. webmystery
    Posted 4 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.

  3. belaich
    Posted 4 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
    Posted 4 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
    Posted 4 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:
        <!-- all the usual preamble stuff goes here -->
        <?php wp_head(); ?>
        <link rel="stylesheet" href="/wp2pgpmail-override.css" type="text/css" />
  6. belaich
    Posted 4 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>";


    <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

  • wp2pgpmail
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic