Support » Plugins » Hacks » CSS for plugin

  • Demetrius Pop


    I have this simple plugin that creates a copyright in the footer section.
    `function add_copyright() {
    $copyright_message = “Copyright “. date(Y) . bloginfo(‘name’) . “, All Rights Reserved”;
    echo ‘<div id=”plugin-copyright”>’ . $copyright_message . ‘</div>’;

    My question is:
    How do I add the CSS so that the div can be positioned?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz


    Three possibilities. You can use wp_enqueue_style() to link to an external CSS file.

    You can output CSS in between <atyle> tags.

    You can add a style attribute to the <div> tag, something like:
    <div id="plugin-copyright" style="top: 30px; left: 100px; position: relative;">

Viewing 1 replies (of 1 total)
  • The topic ‘CSS for plugin’ is closed to new replies.