WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Google Calendar Widget] Adding <p> to widget (3 posts)

  1. zeemy23
    Member
    Posted 4 years ago #

    What part of the plugin php could I edit to add a "click to expand" line under the header of the widget?

    Thanks,
    zeem

  2. Poco
    Member
    Posted 4 years ago #

    It sounds like you want to add just one line under the title.

    The title is in the following line in ko-calendar.php

    echo $before_title . '<div class="ko-calendar-widget-title" id="' . $title_id . '">' . $title . '</div>' . $after_title;

    The following line is is the div tag containing the gadget.

    echo '<div class="ko-calendar-widget-events" id="' . $event_id . '">';

    I would add something between the two, perhaps

    echo '<div id="instructions">Click To Expand</div>'

    And then you can update the css with any formatting you want to apply the the "instructions" block.

  3. zeemy23
    Member
    Posted 4 years ago #

    Thanks so much!

    One more question. Is it possible to change the format from:

    Date
    Title

    to

    Title
    Date, Time

    Thanks again,
    zeem

Topic Closed

This topic has been closed to new replies.

About this Topic