• Resolved ranchnachos

    (@ranchnachos)


    I was wondering if it would be possible in a future version to strip out all the extra styles included within the plugin and have everything included into a CSS file? And make it so people can create a custom CSS file, also.

    example from /includes/class.output.php :

    <div class="phone_numbers" style="margin-bottom: 10px;">

    You assigned a class of phone_numbers to the DIV tag, but then have an added style which makes no sense. The reason for the CLASS is for styling the DIV tag, makeing the style redundant.

    What I’m starting to do myself is strip out all the cruft and copy it over to my WordPress CSS file. That way I maintain all the styles included within the plugin but it’s centralized in one location.

    Thoughts?

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Steven

    (@shazahm1hotmailcom)

    Yes stripping out the inline style is on my to do list. This was done to provide a consistent output no matter the template the user may have used whether it be one of the ones provided or one that they created themselves.

    The plan will be to dynamically load the CSS and JS needed for a particular template into the HEAD and only on pages that the plug-in is used on.

    When will this happen? Probably sooner than later.

    The other primary function of the output class is specific markup to support the hCard spec. So most of the “cruft” is required unless of course that doesn’t matter for you use.

    Thread Starter ranchnachos

    (@ranchnachos)

    I really had no idea at the time of posting what an hCard / vCard is. I’ve since googled and learned a bit. I suppose it’s not as simple as removing hCard markup unless you wanted to break support for the spec.

    Also, it does matter to me. 🙂 I’m attempting to create a regional business directory.. so I should probably follow the specifications created that way it outputs properly.

    So, with inline CSS built into the plugin, how do you over-ride what’s there? Use a bunch of Important! tags 😉

    Steven

    (@shazahm1hotmailcom)

    @mastoll

    Currently, yes. But really, there are not that many inline styles. I’ve used them very sparingly. For example, mail addresses output in the postal standard. You know, like you would address an envelope for mailing. I wonder, does anyone actually do that any more?

    Yes I’m very keen on custom css. Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Connections] suggestion for css’ is closed to new replies.