[resolved] [Plugin: Connections] suggestion for css (6 posts)

  1. RanchNachos
    Posted 5 years ago #

    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.



  2. shazahm1
    Posted 5 years ago #

    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.

  3. RanchNachos
    Posted 5 years ago #

    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.

  4. mastoll
    Posted 5 years ago #

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

  5. shazahm1
    Posted 5 years ago #


    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?

  6. murrayac
    Posted 5 years ago #

    Yes I'm very keen on custom css. Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic