Blog URL incorrect in confirmation email

I just installed the 'Subscribe By Email' plugin, and used the widget to signup as a first test.

It sent the Confirmation email, but the Blog URL listed is to the folder where I have WP installed, which is one level down from the actual URL of the site.

WordPress Address: http://www.mydomain.com/wp
Site Address: http://www.mydomain.com

What is the best (and most maintainable) way of updating this?

If I do any CSS customization of the Widget input buttons, etc., what is the best way to do this?

Thanks!

Dave

  • aristath
    • Recruit

    It sent the Confirmation email, but the Blog URL listed is to the folder where I have WP installed, which is one level down from the actual URL of the site.

    WordPress Address: http://www.mydomain.com/wp
    Site Address: http://www.mydomain.com

    I have notified the plugin developer about this, perhaps we should consider changing the defaults to show the site address.

    If I do any CSS customization of the Widget input buttons, etc., what is the best way to do this?

    I would advise you to use this plugin: http://wordpress.org/plugins/my-custom-css/
    This way you can enter your custom CSS without changing any plugin core files and therefore your changes will not be affected by any future updates.

    I hope that helps!

    Cheers,
    Ari.

  • Dave
    • New Recruit

    Thanks for looking into it and letting the developer know of the issue.

    To make the plugin usable until the developer can make the needed changes, I'll probably edit the file for the confirmation email file with the correct URL, and make a note of my changes.

    As far as the CSS, I will add the style overrides in my child theme's style.css. I'm not a big fan of having a plugin inject style blocks to the front-end code. Better to keep it inside a CSS file that I have control over and not clutter the page code.

    I look forward to seeing the update to the URL sometime in the future.

    Thanks,

    Dave

  • Ignacio
    • HummingBird

    Hi @Dave.

    The plugin gets the blog URL using a WordPress function that extract the 'siteurl' option value from wp_BLOG_ID_options table. That's difficult to solve as it will work in your site but not in many others so in this case I think that you'll have to edit the mail template by yourself. Is not so difficult using the languages files (that, well, I forgot to include in the last version and I'm working on it).

    Fom the moment I recommend you to change it manually.

    About the CSS: Is always difficult to decide what's better for plugins styling. I'm with you and I don't like to insert CSS code in a Theme when trying to customize a plugin. I would like to hear from you what would be the best way to insert CSS in the plugin. Maybe a CSS text area in the widget settings?

    Regards.
    Ignacio.

  • Dave
    • New Recruit

    Hi Ignacio,

    I think that instead of getting the 'siteurl' from the wp_options table, you'd want to get the value of 'home'. That would point to the url location a user would see, which isn't necessarily where WordPress is installed.

    I'm ok with putting CSS overrides for the widget in my child theme. That seems cleaner than putting CSS in an input field in widget settings.

    If you were to put a CSS text area in the widget setting, then I think the plugin would then insert a set of style tags into the html, and that would be a lot harder to override (and clutters up the html). As a front-end developer, I'd never put style tags or inline styling in the html...always in a separate CSS file.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.